Skip to main content
Restate stores cluster configuration data in a dedicated metadata store. This page explains the available metadata backend options, and how to choose and configure the right one for your deployment.
To understand the terminology used on this page, it might be helpful to read through the architecture reference.

What is Metadata?

Metadata in Restate includes critical cluster coordination information:
  • Cluster membership: Which nodes are part of the cluster and their roles
  • Partition assignments: How partitions are distributed across worker nodes
  • Service deployments: Registered service endpoints and their versions
  • Log configuration: How the replicated log is configured and which nodes participate
The metadata store is essential for cluster operation. While metadata is updated relatively infrequently, its availability is crucial for cluster health.
Choose your metadata provider during initial deployment based on your infrastructure and requirements. While migration between providers is possible from replicated to external stores, this operation requires a maintenance window (downtime) and careful execution.

Metadata Storage Providers

Restate supports three metadata storage providers, each suited to different deployment scenarios:
  1. Replicated (Default) - Built-in Raft-based consensus metadata server
  2. Etcd - External etcd cluster integration
  3. Amazon S3 - We strongly recommend against using other S3-compatible stores for metadata

When to Use Each Provider

Replicated (Default)

The replicated metadata server uses Raft consensus to provide a highly-available metadata store built directly into Restate nodes. Use cases:
  • Standard production deployments
  • On-premises or multi-cloud environments
  • Deployments where you want minimal external dependencies
  • Environments where you already run stateful services
Requirements:
  • Nodes must run the metadata-server role
  • Persistent storage for metadata server nodes
  • Odd number of metadata-server nodes for quorum (typically 3 or 5)
Trade-offs:
  • ✅ No external dependencies - everything runs within Restate
  • ✅ Battle-tested Raft consensus for strong consistency
  • ✅ Works in any environment (cloud, on-prem, hybrid)
  • ⚠️ Needs careful attention to node placement for fault tolerance
  • ⚠️ Requires manual provisioning after majority of nodes are up to avoid split brain (other backends safely support auto-provisioning in a multi-node cluster)

Etcd

Use an external etcd cluster as the metadata store. This is ideal if you already operate etcd infrastructure or prefer to centralize metadata management. Use cases:
  • Organizations with existing etcd infrastructure
  • Environments with dedicated etcd operations expertise
  • Multi-tenant deployments with centralized control
Requirements:
  • External etcd cluster (v3.x) must be available
  • Network connectivity between Restate nodes and etcd
  • etcd cluster properly configured for production use
Trade-offs:
  • ✅ Leverage existing etcd infrastructure
  • ✅ Separate metadata concerns from Restate node management
  • ✅ Allows sharing metadata across clusters
  • ⚠️ Adds external dependency that must be separately managed
  • ⚠️ Network latency to etcd can affect cluster operations
  • ⚠️ Requires etcd operations expertise

Object Store (Amazon S3)

Use Amazon S3 as a metadata store. This provides a lightweight alternative to running metadata servers while keeping all data in object storage. Use cases:
  • AWS deployments with existing S3 infrastructure
  • Minimizing stateful components
  • Environments optimizing for S3 as primary storage
Requirements:
  • Amazon S3 bucket (not S3-compatible alternatives)
  • IAM permissions for S3 operations
  • Very low-latency access to S3 (same region recommended)
Trade-offs:
  • ✅ No metadata servers to manage
  • ✅ Integrates with existing S3 buckets
  • ✅ Simple backup and recovery
  • ⚠️ Only Amazon S3 is tested and supported (notably, MinIO is not supported for metadata)
  • ⚠️ Tied to a single region!
  • ⚠️ Network latency to S3 directly affects cluster operations
  • ⚠️ Must ensure very low-latency access (typically same region)
For object store metadata: Only Amazon S3 is currently tested and supported. Using S3-compatible alternatives is not supported and may lead to correctness issues. MinIO in particular is known to be incompatible as a metadata backend.

Configuration Examples

Replicated (Default)

This is the default configuration for multi-node clusters. Each node needs to know about all metadata server addresses.
restate.toml