[MDBF-84] Detect if there is a MariaDB Server running locally Created: 2020-05-25  Updated: 2022-02-01  Due: 2020-06-12

Status: Closed
Project: MariaDB Foundation Development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Kaj Arnö Assignee: Robert Bindar
Resolution: Unresolved Votes: 0
Labels: jupyter
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
PartOf
is part of MDBF-55 Development of Jupyter maria kernel, ... Closed

 Description   

detect if there is a MariaDB Server running locally;

  • if not, launch it,
  • and issue “Notification: MariaDB Server is installed in $xx-path (/home/robert/this/that) but not running; launching a MariaDB Server for testing purposes, and connecting to it”


 Comments   
Comment by Vicențiu Ciorbaru [ 2020-06-01 ]

Throwing out ideas, would a MariaDB started in a docker container be better? There is a Python SDK for docker to programmatically start containers

Comment by Kaj Arnö [ 2020-06-03 ]

Next step: Experimenting by Robert. Larger size of downloadable is a drawback, promoting the latest MariaDB 10.5 is an advantage. What are other considerations?

Comment by Robert Bindar [ 2020-06-03 ]

As far as I understand, using the SDK would require users to have docker installed or install it and go through a image building process when the kernel starts. This might eat a chunk of the easiness of use we want to promote for the project and a part of the users might already have an existing installation of mariadb and they'll have to go through the docker steps anyway. I don't know if this is the right move, can cvicentiu correct me if I'm wrong or maybe state some advantages for going with docker on this?

Comment by Kaj Arnö [ 2020-06-03 ]

Complexity seems to be a disadvantage!

Let's demote this to nice-to-have. We don't want to delay the release because of this. (We can still consider doing it later, because of the advantage of promoting MariaDB 10.5).

Comment by Robert Bindar [ 2020-09-09 ]

Because it was getting annoying to test things as I kept forgetting to start the server, I implemented this feature to make my development process more comfortable. It is currently implemented with Python subprocess framework, but it is isolated in the architecture of the kernel so it can easily be swapped later with some other solution that is more efficient, covers more platforms, etc.

Comment by Robert Bindar [ 2020-10-30 ]

Need some input before closing this issue. What does kaj mean when he says "Notification"?
At the moment the kernel just issues a message in the logs (which is quite visible because in the use cases when this feature is needed, the user is running jupyter from a terminal window). Does this sound ok to you?

Generated at Thu Feb 08 03:35:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.