Skip to main content

AWS Dynamodb backend tracking store for MLFlow

Project description

Dynaflow

Dynaflow implements a serverless AWS dynamodb tracking store and model registry for MLFlow. It allows to directly log runs and models to AWS Dynamodb using your AWS credentials. Further authorisation can be implemented using Dynamodb fine-grained access control.

Setup

Dynaflow includes a simple CLI that helps to easily provision the Dynamodb tables. To deploy the tables, run

dynaflow deploy

which will deploy two AWS Dynamodb tables. To delete the tables, run

dynaflow destroy

Configuration

To use the deployed Dynamodb tables as the backend to your tracking store and model registry, use a tracking store uri of the following format:

dynamodb:<region>:<tracking-table-name>:<model-table-name>

where is the name of the dynamodb table you want to use as tracking backend, is the name of the table used for the model registry and is the region in which the tables reside.

E.g. when using the python client, you can configure the client to use the dynamodb tracking backend by running the following statement:

mlflow.set_tracking_uri("dynamodb:eu-central-1:mlflow-tracking-store:mlflow-model-registry")

To use a table named "mlflow-tracking-store" for tracking and a table named "mlflow-model-registry" as the model registry backend. Note that these are also the default names you get when running dynaflow deploy.

If you want to log your artifacts to s3 by default, you can set the environment variable DYNAFLOW_ARTIFACT_BUCKET:

export DYNAFLOW_ARTIFACT_BUCKET=<artifact-bucket-name>

When running a tracking server, set the dynamodb tracking backend using the following command:

mlflow server
    --backend-store-uri dynamodb:<region>:<tracking-table-name>:<model-table-name>
    --default-artifact-root s3://<artifact-bucket-name>/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynaflow-0.0.3a0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynaflow-0.0.3a0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file dynaflow-0.0.3a0.tar.gz.

File metadata

  • Download URL: dynaflow-0.0.3a0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.6 Darwin/20.5.0

File hashes

Hashes for dynaflow-0.0.3a0.tar.gz
Algorithm Hash digest
SHA256 4aa6bb3a0f8cbe3d76c1552ea7db4da3659bdb96a3b2ed21381bbb544ec2976f
MD5 1bd81c4e3907f20c1c976278f093e887
BLAKE2b-256 6965d8f2b5f81a7fec3e8b20d593749b1e9c7735a13011ea24536aa1375f23cb

See more details on using hashes here.

File details

Details for the file dynaflow-0.0.3a0-py3-none-any.whl.

File metadata

  • Download URL: dynaflow-0.0.3a0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.6 Darwin/20.5.0

File hashes

Hashes for dynaflow-0.0.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 150be785052b5a968d93e8397e1704c2af04aa4d4df28378927efc539b4e72b8
MD5 b69b0aceee50758b8188a74780f889dc
BLAKE2b-256 86126689ef3b973af9e17264247621e588661f5382c1a7c2d1c140fc6e309219

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page