Production readiness checklist: Self-Managed
View as MarkdownWork through this checklist with your team before go-live, and again whenever your setup changes. Each heading links to the guide section that explains it. If you use Materialize Cloud, use the Materialize Cloud checklist instead.
To track this checklist in your own repository, wiki, or issue tracker, use View as Markdown at the top of this page and save the file.
Every deployment
These items come from Operating Materialize in production.
Define your targets
- Freshness and latency targets and outage thresholds are written down for each critical object
- Baseline freshness and latency have been measured for at least a week, including the busiest day
Control access and queries
- RBAC limits who can create objects on, query, resize, or drop production clusters
- Ad hoc users, BI tools, and AI agents have their own roles, their own cluster where possible, and a default cluster per role
- SSO or MFA is required for people where your deployment supports it
- A query policy protects each production cluster from ad hoc queries
-
idle_in_transaction_session_timeoutis set on application, BI, ad hoc, and agent roles - Application queries are served from clusters with the indexes they need
Isolate production and change it safely
- Production runs in its own environment, separate from dev, staging, and CI
- Changes deploy through dbt or mz-deploy, not by hand
- New views are tested in staging, and schema changes use blue/green deploys where possible
- Unused objects and clusters are cleaned up regularly
- Changes to production are recorded in a change log
Size your clusters
- Production clusters are sized for their peak memory use, including rehydration, typically staying at or below about 60% of memory in steady state
Verify upstream sources and downstream sinks
- Owners of each upstream and downstream system know what Materialize relies on and coordinate changes with you
- Upstream change retention covers an extended Materialize outage
- Source data is backed up on a schedule, with backups verified and stored securely
Set up monitoring and alerts
- Alerts cover memory, CPU, source and replica status, freshness, and query latency
- Sink status and lag are monitored
- Upstream systems are monitored for health, lag, and change retention
- Production alerts route to an on-call person
Make your applications resilient
- Applications retry, reconnect, and use connection pooling
-
SUBSCRIBEclients can resume after a reconnect - You’ve decided what applications do when data is stale
- The network path to Materialize has no single point of failure
- Materialize is part of your disaster recovery plan, including how you’d re-ingest from source data backups
Define your escalation path
- Incident contacts, including after hours and someone who can approve changes, are shared with Materialize
- Your team can pull query history from
mz_recent_activity_log, and every application, tool, and agent sets anapplication_name - Your team knows how to report a production outage in the Support Center
Self-managed
These items come from Operating self-managed deployments.
Assign ownership and access
- At least two people can act on Kubernetes, configuration, node pools, the metadata database, object storage, network, and metrics and logs, including after hours
- Your team knows what it’s allowed to share with Materialize during an incident
Plan Kubernetes and node capacity
- Node pools and autoscaler limits can fit your largest clusters, with room to resize
- Your team knows its cloud quotas and capacity for your instance types
- Kubernetes and node upgrades go through change review
Set up the metadata database
- The metadata database is dedicated to Materialize
- Your team understands its failover behavior and has tested failover in staging
- Someone can change its settings quickly in an emergency
Check object storage and network
- The storage bucket is in the same region as your Kubernetes cluster
- Every network path Materialize uses is documented, with redundancy for shared paths
- Certificate and credential expiry dates are tracked
Manage configuration and upgrades
- Configuration is managed as code and reviewed
- You’re on a supported version, with a plan to upgrade regularly
- Upgrades are tested in a staging deployment that matches production
Monitor the deployment
- The monitoring stack is running, or metrics and logs are forwarded to your own platform
- An alert receiver is configured and production alerts reach an on-call person
- Platform alerts cover Kubernetes, the metadata database, object storage, and network
- Logs and metrics are kept for at least 30 days
Practice mz-debug and submit your environment profile
- Your team has run
mz-debugsuccessfully and documented how - Your environment profile is submitted as a support ticket and saved in your runbook
- Someone owns keeping the environment profile current