/mlflow-systemd

MLFlow systemd service

Primary LanguageShell

MLflow setup

Install mlflow as systemd daemon under linux. This run with your regular linux user.

Requirements

  • miniconda
  • mariadb/mysql

Setup database

$ mysql -u root -e "CREATE DATABASE IF NOT EXISTS mlflow"

Setup mlflow

Step 1: Clone repo.

$ cd ~
$ git clone https://github.com/adrianmarino/mlflow-systemd.git
$ mv mlflow-systemd mlflow
$ cd mlflow

Step 2: Create conda environment required to run mlflow.

$ conda env update -f environment.yml

Step 3: Copy service file user level systemd config path:

$ cp mlflow.service ~/.config/systemd/user/

Step 4: Refresh systemd daemon with updated config.

$ systemctl --user daemon-reload

Step 5: Start service on boot.

$ systemctl --user enable mlflow

Step 6: Start mlflow as systemd daemon.

$ systemctl --user start mlflow