Sub topic 9
Hosting Models, Cost, and Data Governance
Assume you know basic Python, the command line, model training, hyperparameters, validation metrics, and client-server applications. This chapter focuses on where tracking data lives, who operates the service, and what controls a team needs before sending data to a tracker.
Choose a hosting model
A hosting model describes who runs the tracking service and where its data is stored. The main choices are self-hosted, managed, and hybrid.
With self-hosted MLflow, your team runs the tracking server. You choose the database, object storage, network controls, backups, and upgrades. This gives you control over data location and access. It also makes your team responsible for availability, monitoring, security patches, and capacity planning.
A managed service, such as Weights & Biases Cloud, runs the tracking application for you. The provider usually handles the user interface, upgrades, scaling, and backups. Your team spends less time operating infrastructure, but you must evaluate the provider's regions, contracts, security controls, retention rules, and export options.
A hybrid design keeps sensitive data inside your network while using a hosted interface or selected managed features. Hybrid designs can satisfy requirements that prohibit raw data from leaving a controlled environment, but they add integration and operational complexity.
Estimate the full cost
The subscription price is only one part of cost. Include:
- Compute for the tracking server, workers, and database.
- Object storage for model files, plots, checkpoints, and datasets.
- Database storage and backup retention.
- Network transfer, especially when jobs and storage use different regions.
- User or run-based service fees.
- Engineering time for deployment, upgrades, monitoring, support, and incident response.
- Migration and export work if the team changes tools later.
Self-hosting may look cheaper at small scale because MLflow is open source. However, a production deployment still needs reliable storage, authentication, backups, and an operator. A managed service may cost more per run but reduce engineering work and downtime risk.
Create a simple forecast before a trial. Estimate the number of runs per month, average artifact size, retention period, active users, and expected growth. Test the estimate with actual usage rather than relying on a vendor's default example.
| Cost area | Self-hosted MLflow | Managed Weights & Biases |
|---|---|---|
| Application operations | Your team pays in infrastructure and labor | Included in the service, subject to plan |
| Artifact storage | Your object storage and backup bill | Provider storage and plan limits |
| Scaling | You design and operate it | Provider manages most scaling |
| Exit effort | Export your database and artifacts | Export supported data and artifacts before leaving |
Apply data governance
Data governance is the set of rules and controls for collecting, storing, using, and deleting data. Treat experiment logs as potentially sensitive. Parameters may reveal business strategy. Tags may contain customer or project names. Artifacts may contain training data, source code, credentials, or personally identifiable information.
Define these controls before onboarding a team:
- Data classification: decide which parameters, metrics, and artifacts may be logged.
- Identity and access: use single sign-on, role-based access, and least privilege.
- Location: confirm the storage region and any cross-border transfer.
- Retention: set deletion periods for runs, artifacts, logs, and backups.
- Encryption: require encryption in transit and at rest, with suitable key management.
- Auditability: record access, changes, exports, and administrative actions.
- Isolation: separate development, test, and production workspaces.
- Secret handling: prohibit tokens, passwords, and connection strings in logs.
Use dataset identifiers and approved summaries instead of uploading raw sensitive data. A run can record a version such as claims-2026-11-01 while the dataset remains in a governed data store.
Compare governance trade-offs
Ask both self-hosted and managed providers how they handle backups, deletion requests, tenant isolation, incident response, subprocessors, and data export. Request documentation that matches your deployment plan, not only a general security page.
Self-hosting gives direct control but does not guarantee good governance. Managed hosting reduces operational work but requires trust in the provider and a careful contract review. The correct choice depends on regulatory requirements, data sensitivity, team capacity, and the cost of operating the service.
Exercise
Exercise
A team must keep raw customer records inside its private network, but it wants shared dashboards and automatic scaling. What should it evaluate first?
Show answer
It should evaluate a hybrid design. Keep raw records and sensitive artifacts in private storage, log only approved metadata, and verify that the hosted component supports the required region, access controls, retention, audit logs, and data export.