{"id":17594918,"url":"https://github.com/andreaconti/mlflow-server","last_synced_at":"2025-03-30T15:13:24.465Z","repository":{"id":63303806,"uuid":"501243663","full_name":"andreaconti/mlflow-server","owner":"andreaconti","description":"Dockerized MLFlow server along with a MySQL Backend for easier deploy","archived":false,"fork":false,"pushed_at":"2023-12-12T12:31:50.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T16:38:00.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreaconti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-06-08T12:35:43.000Z","updated_at":"2023-12-12T11:48:33.000Z","dependencies_parsed_at":"2023-12-12T13:47:21.221Z","dependency_job_id":null,"html_url":"https://github.com/andreaconti/mlflow-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaconti%2Fmlflow-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaconti%2Fmlflow-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaconti%2Fmlflow-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaconti%2Fmlflow-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreaconti","download_url":"https://codeload.github.com/andreaconti/mlflow-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246334430,"owners_count":20760644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T07:24:22.615Z","updated_at":"2025-03-30T15:13:24.444Z","avatar_url":"https://github.com/andreaconti.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MLFlow Server\n\nThis project bundles together\n\n- A MLFLow Server\n- A MySQL Database\n- A set of tools for backup/restore and removing deleted runs\n\nIn a simple way to deploy MLFlow easily on a single node.\n\n## Run the server\n\nTo run the server just\n\n```\n$ git clone https://github.com/andreaconti/mlflow-server\n$ cd mlflow-server\n$ docker-compose up --detach\n```\n\nThe previous commands will i) build the server image with the latest mlflow server version ii) downloads the mysql server image and lauch both. The server can be accessed under localhost:9999. It also creates two volumes:\n\n1. **mlflow-server_artifacts** containing all the artifacts that are stored in the server\n2. **mlflow-server_db** containing the MySQL Databases\n\n## Perform a Backup\n\nPerforming a backup basically means saving the content of the two volumes. To do so can be used the `backup-mlflow.sh` script as follows\n\n```\n$ cd mlflow-server\n$ utils/backup-mlflow.sh backups  # (it is the backup folder)\n```\n\nThis command creates a folder with the current date and dumps in it two .tar files containing the content of the two volumes.\n\n## Restore a Backup\n\nTo restore a backup can be used the `restore-mlflow.sh` script. **Pay attention: this will overwrite the volume content**,\nbefore restoring content shut down the server.\n\n```\n$ cd mlflow-server\n$ utils/restore-mlflow.sh backups/\u003cdate\u003e\n```\n\n## Garbage Collection\n\nWhen a run or experiment is deleted from MLFlow this latter is not really deleted but instead it is simply marked as removed. This means that the quantity of memory used always increases. To limit this issue garbage collection can be employed **to definitely remove the deleted runs**. To do so:\n\n```\n$ cd mlflow-server\n$ utils/garbage-collect.sh\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaconti%2Fmlflow-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreaconti%2Fmlflow-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaconti%2Fmlflow-server/lists"}