Has anyone deployed MLFlow alongside Metaflow in A...
# ask-metaflow
s
Has anyone deployed MLFlow alongside Metaflow in AKS? Any recommended guides, tips? I've deployed the Metaflow service using recommended outerbounds deployment. Now I am looking at the options of deploying MLFlow onto the same cluster with Azure postgres DB and Azure Blob Storage and then using the MLFlow from the Metaflow runs.
a
I deployed my MLflow server on K8s(but on AWS) using their docker image, you can refer to this guide on how to do it. In the dockerfile you will need to pass in the relevant args to set the server:
Copy code
CMD mlflow db upgrade postgresql://${USERNAME}:${PASSWORD}@${HOST}:${PORT}/${DATABASE} && \
  mlflow server \
  --host 0.0.0.0 \
  --port 8501 \
  --artifacts-destination ${BUCKET} \ 
  --serve-artifacts \
  --backend-store-uri postgresql://${USERNAME}:${PASSWORD}@${HOST}:${PORT}/${DATABASE}
Which is just the
PostgreSQL URL
and the
Blob Storage path
when building the container.
s
Thank you, I was able to set it up using this helm: https://artifacthub.io/packages/helm/community-charts/mlflow I had to build my own docker image in the end to use in this helm with a newer version of MLFlow
@ambitious-bird-15073 may I ask, do you have some kind of automation set up to run Metaflow workflow after adding tags/aliases to models?