# Production readiness checklist: Self-Managed
The production readiness checklist for self-managed Materialize deployments.

> For the complete documentation index, see [llms.txt](https://materialize.com/docs/llms.txt).


Work 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](https://materialize.com/docs/markdown-docs/production-readiness/checklist/cloud/index.md) 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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md).

### [Define your targets](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#1-define-what-down-means)

- [ ] 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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#2-control-what-runs-on-production-clusters)

- [ ] 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_timeout` is 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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#3-isolate-your-production-environment-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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#4-right-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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#5-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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#6-monitor-materialize)

- [ ] 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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#7-build-resilient-applications)

- [ ] Applications retry, reconnect, and use connection pooling
- [ ] `SUBSCRIBE` clients 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](https://materialize.com/docs/markdown-docs/production-readiness/operating-materialize/index.md#8-be-ready-to-escalate)

- [ ] 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 an `application_name`
- [ ] Your team knows how to report a production outage in the
      [Support Center](https://console.materialize.com/support)

## Self-managed

These items come from
[Operating self-managed deployments](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md).

### [Assign ownership and access](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#1-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](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#2-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](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#3-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](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#4-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](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#5-configuration-versions-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](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#6-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](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#7-practice-running-mz-debug) and [submit your environment profile](https://materialize.com/docs/markdown-docs/production-readiness/self-managed-operations/index.md#8-exercise-submit-your-environment-profile)

- [ ] Your team has run `mz-debug` successfully and documented how
- [ ] Your environment profile is submitted as a support ticket and saved in
      your runbook
- [ ] Someone owns keeping the environment profile current
