Repository navigation
set up mlflow on glcoud #35
Description
Activity
postgresql+psycopg2://${DB_USER}:${DB_PASS}@/${DB_DATABASE}?host=/cloudsql/${DB_CONNECTION}But
Environment variablesare not working forContainer arguments…mlflow Server: https://console.cloud.google.com/run/detail/europe-west1/mlflow-server/metrics?project=getml-playground&chat=true&inv=1&invt=Abr_og
sqlite as file-db in volume-mount
sqlite:////app/registry-store.sqlite.dbStore in sqlite in volume-mount:
(container entrypoint) -m mlflow server -h 0.0.0.0 --backend-store-uri sqlite:////app/backend-store.sqlite.db --registry-store-uri sqlite:////app/registry-store.sqlite.db --artifacts-destination gs://gcs-mlflow-server/artifactsStore in volume-mount:
(container entrypoint) -m mlflow server -h 0.0.0.0 --backend-store-uri file:///app/backend-store/ --registry-store-uri file:///app/registry-store/ --artifacts-destination gs://gcs-mlflow-server/artifactsStore in Cloud SQL (But environment variables won't work ...):
(container entrypoint) -m mlflow server -h 0.0.0.0 --backend-store-uri postgresql+psycopg2://${DB_USER}:${DB_PASS}@/${DB_DATABASE_BACKEND_STORE}?host=/cloudsql/${DB_CONNECTION} --registry-store-uri postgresql+psycopg2://${DB_USER}:${DB_PASS}@/${DB_DATABASE_REGISTRY_STORE}?host=/cloudsql/${DB_CONNECTION} --artifacts-destination gs://gcs-mlflow-server/artifactshttps://www.youtube.com/watch?v=cBrn5IM4mA8
https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#unix-domain-connections
Using "Environment variables" instead of passing via "Container arguments" with
MLFLOW_BACKEND_STORE_URI→postgresql+psycopg2://${DB_USER}:${DB_PASS}@/${DB_DATABASE_BACKEND_STORE}?host=/cloudsql/${DB_CONNECTION}
MLFLOW_REGISTRY_STORE_URI→postgresql+psycopg2://${DB_USER}:${DB_PASS}@/${DB_DATABASE_REGISTRY_STORE}?host=/cloudsql/${DB_CONNECTION}
MLFLOW_ARTIFACTS_DESTINATION→gs://gcs-mlflow-server/artifacts
MLFLOW_HOST→0.0.0.0
( https://mlflow.org/docs/latest/api_reference/cli.html#mlflow-server )For URIs, the variables must be replaced with real values. No recursive environment replacement is done automatically.
We'd like to have a mlflow server running internally for all to use.
It shall be living in the glcoud.
See also #34