> ## Documentation Index
> Fetch the complete documentation index at: https://docs.restate.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Restate Server Configuration

> Reference of the configuration options for Restate Server.

## Default configuration

The following is the default configuration. It does not include all possible configuration options, since some can be conflicting. Take a look at the configuration reference below for a full list of options.

Note that configuration defaults might change across server releases, if you want to make sure you use stable values, use an explicit configuration file and pass the path via `--config-file=<PATH>` as described above.

**Important changes in recent versions:**

* Restate now listens on both TCP and Unix sockets by default (`listen-mode = "all"`). Unix sockets are created under `restate-data/*.sock`.
* Advertised addresses are automatically detected based on your network configuration. You no longer need to explicitly set `advertised-address` for most deployments.
* The `metadata-client.addresses` field is now optional for single-node setups.

```toml restate.toml expandable {"CODE_LOAD::../docs/schemas/restate.toml"}  theme={null}
roles = [
    "http-ingress",
    "admin",
    "worker",
    "log-server",
    "metadata-server",
]
cluster-name = "localcluster"
auto-provision = true
default-num-partitions = 24
default-replication = 1
shutdown-timeout = "1m"
log-filter = "warn,restate=info"
log-format = "pretty"
log-disable-ansi-codes = false
disable-prometheus = false
rocksdb-max-write-rate-per-second = "7.0 GiB"
rocksdb-write-rate-limiter-mode = "auto-tuned"
rocksdb-total-memory-size = "2.0 GiB"
rocksdb-total-memtables-ratio = 0.85
rocksdb-perf-level = "enable-count"
metadata-update-interval = "10s"
metadata-fetch-from-peer-timeout = "3s"
initialization-timeout = "5m"
disable-telemetry = false
gossip-tick-interval = "100ms"
gossip-failure-threshold = 10
gossip-num-peers = 2
gossip-fd-stability-threshold = 3
gossip-suspect-interval = "5s"
gossip-loneliness-threshold = 30
gossip-extras-exchange-frequency = 10
gossip-time-skew-threshold = "1s"
hlc-max-drift = "5s"
default-journal-retention = "1d"
default-idempotency-retention = "1d"
default-workflow-completion-retention = "1d"

[metadata-client]
type = "replicated"
addresses = []
connect-timeout = "3s"
keep-alive-interval = "5s"
keep-alive-timeout = "5s"

[metadata-client.backoff-policy]
type = "exponential"
initial-interval = "100ms"
factor = 1.4
max-attempts = 10
max-interval = "1s"

[network-error-retry-policy]
type = "exponential"
initial-interval = "10ms"
factor = 2.0
max-attempts = 15
max-interval = "5s"

[default-retry-policy]
initial-interval = "500ms"
exponentiation-factor = 2.0
max-attempts = 70
on-max-attempts = "pause"
max-interval = "1m"

[worker]
internal-queue-length = 1000
cleanup-interval = "1h"
max-command-batch-size = 32
max-command-batch-bytes = "1.0 MiB"
trim-delay-interval = "10m"
data-service-memory-limit = "256.0 MiB"
rule-book-poll-interval = "30s"
self-proposal-queue-memory-limit = "64.0 MiB"

[worker.storage]
rocksdb-memory-ratio = 0.49
rocksdb-disable-auto-memory-reclaimer = false
rocksdb-max-sub-compactions = 1
rocksdb-max-file-size = "64.0 MiB"
rocksdb-writable-file-max-buffer-size = "1.0 MiB"
rocksdb-l0-num-compaction-trigger = 2

[worker.invoker]
inactivity-timeout = "1m"
abort-timeout = "10m"
message-size-warning = "10.0 MiB"
concurrent-invocations-limit = 24000
memory-limit = "1.5 GiB"
per-invocation-initial-memory = "32.0 KiB"
http2-keep-alive-interval = "40s"
http2-keep-alive-timeout = "20s"
http2-keep-alive-jitter = 0.2
connect-timeout = "10s"
http2-streams-per-connection-limit = 128
http2-idle-connection-timeout = "5m"
http2-initial-stream-window-size = "2.0 MiB"
http2-initial-connection-window-size = "5.0 MiB"
http2-max-frame-size = "16.0 KiB"
request-compression-threshold = "4.0 MiB"
request-identity-expiration = "1m"
max-awaited-future-depth = 1000

[worker.snapshots]
num-retained = 1
enable-cleanup = true

[worker.snapshots.object-store-retry-policy]
type = "exponential"
initial-interval = "100ms"
factor = 2.0
max-attempts = 10
max-interval = "10s"

[worker.shuffle]
inflight-memory-budget = "10.0 MiB"
request-batch-size = "50.0 KiB"

[worker.shuffle.connection-retry-policy]
type = "exponential"
initial-interval = "250ms"
factor = 2.0
max-interval = "3s"

[admin]
heartbeat-interval = "1s 500ms"
disable-web-ui = false
disable-cluster-controller = false

[admin.query-engine]
memory-size = "1.0 GiB"

[ingress]
http2-keep-alive-interval = "40s"
http2-keep-alive-timeout = "20s"
kafka-clusters = []

[ingress.ingestion]
inflight-memory-budget = "1.0 MiB"
request-batch-size = "50.0 KiB"

[ingress.ingestion.connection-retry-policy]
type = "exponential"
initial-interval = "250ms"
factor = 2.0
max-interval = "3s"

[ingress.ingestion-api]
disable = false
max-window-size = "128.0 KiB"
max-concurrent-streams = 1000

[bifrost]
default-provider = "replicated"
seal-retry-interval = "2s"
auto-recovery-interval = "15s"
append-retry-min-interval = "10ms"
append-retry-max-interval = "1s"
record-cache-memory-size = "250.0 MiB"
disable-auto-improvement = false

[bifrost.local]
rocksdb-memory-ratio = 0.5
rocksdb-disable-wal = false
rocksdb-disable-wal-fsync = false
writer-batch-commit-count = 5000
writer-batch-commit-duration = "0s"

[bifrost.replicated-loglet]
maximum-inflight-records = 1000
rpc-timeout = "250ms..1m"
store-timeout = "2s..1m"
sequencer-inactivity-timeout = "15s"
readahead-records = 20
read-batch-size = "32.0 KiB"
readahead-trigger-ratio = 0.5

[bifrost.read-retry-policy]
type = "exponential"
initial-interval = "50ms"
factor = 2.0
max-attempts = 50
max-interval = "1s"

[metadata-server]
request-queue-length = 32
rocksdb-memory-ratio = 0.01
raft-election-tick = 10
raft-heartbeat-tick = 2
raft-tick-interval = "100ms"
status-update-interval = "5s"
log-trim-threshold = 1000
auto-join = true

[networking]
connect-timeout = "3s"
handshake-timeout = "3s"
http2-keep-alive-interval = "1s"
http2-keep-alive-timeout = "3s"
disable-compression = false
data-stream-window-size = "4.0 MiB"

[networking.connect-retry-policy]
type = "exponential"
initial-interval = "250ms"
factor = 2.0
max-attempts = 10
max-interval = "3s"

[log-server]
rocksdb-memory-ratio = 0.5
rocksdb-disable-wal-fsync = false
rocksdb-max-sub-compactions = 1
rocksdb-enable-blob-separation = false
rocksdb-max-file-size = "128.0 MiB"
rocksdb-writable-file-max-buffer-size = "1.0 MiB"
rocksdb-l0-num-compaction-trigger = 8
rocksdb-partition-sst-by-log = true
rocksdb-partition-sst-by-loglet = false
```

## Configuration Reference

Each option shows its `toml:` key, the full path to write in your configuration file, and, for every option that has one, the `env:` [environment variable](https://docs.restate.dev/server/configuration.md#environment-variables) that overrides it.

## General options

Options set at the root of the configuration file, above any `[section]` header.

**advertised-address** `string | null`

Address that other nodes will use to connect to this service.

The full prefix that will be used to advertise this service publicly.
For example, if this is set to `https://my-host` then others will use this
as base URL to connect to this service.

If unset, the advertised address will be inferred from public address of this node
or it'll use the value supplied in `advertised-host` if set.

advertised address: An externally accessible URI address for tokio-console-server. This can be set to unix:restate-data/tokio.sock to advertise the automatically created unix-socket instead of using tcp if needed

Examples:
"http//127.0.0.1:6669/" or "[https://my-host/](https://my-host/)" or "unix:/data/restate-data/tokio.sock"

**advertised-host** `string | null`

Hostname to advertise for this service

**auto-provision** `boolean` (default: true)

Auto cluster provisioning: If true, then this node is allowed to automatically provision as a new cluster.
This node *must* have an admin role and a new nodes configuration will be created that includes this node.

auto-provision is allowed by default in development mode and is disabled if restate-server runs with `--production` flag
to prevent cluster nodes from forming their own clusters, rather than forming a single cluster.

Use `restatectl` to provision the cluster/node if automatic provisioning is disabled.

This can also be explicitly disabled by setting this value to false.

Default: true

**base-dir** `string | null` (default: null)

The working directory which this Restate node should use for relative paths. The default is
`restate-data` under the current working directory.

**bind-address** `string | null`

The combination of `bind-ip` and `bind-port` that will be used to bind

This has precedence over `bind-ip` and `bind-port`

Bind address: The local network address to bind on for tokio-console-server. This service uses default port 6669 and will create a unix-socket file at the data directory under the name `tokio.sock`

Examples:
"\[::]:6669" or "0.0.0.0:6669" or "127.0.0.1:6669"

**bind-ip** `string | null`

Local interface IP address to listen on

**bind-port** `integer | null`

Network port to listen on

**cluster-name** `string` (default: localcluster)

Cluster name: A unique identifier for the cluster. All nodes in the same cluster should
have the same.

**default-idempotency-retention** `string`

Default idempotency retention for all invocations carrying an idempotency key.

This default is used when neither the service nor the handler configures an idempotency retention,
and can be overridden per service/handler using the respective SDK APIs.

Since v1.7.0

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**default-journal-retention** `string`

Default journal retention for all invocations. A value of `0` means no retention by default.

In production setups, it is advisable to disable default journal retention,
and configure journal retention per service using the respective SDK APIs.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**default-num-partitions** `integer` (default: 24)

Partitions: Number of partitions that will be provisioned during initial cluster provisioning.
partitions are the logical shards used to process messages.

Cannot be higher than `65535` (You should almost never need as many partitions anyway)

NOTE 1: This config entry only impacts the initial number of partitions, the
value of this entry is ignored for provisioned nodes/clusters.

Default: 24

**default-replication** `string` (default: 1)

Default replication factor: Configures the global default replication factor to be used by the the system.

Note that this value only impacts the cluster initial provisioning and will not be respected after
the cluster has been provisioned.

To update existing clusters use the `restatectl` utility.

**default-thread-pool-size** `integer | null` (default: null)

Default async runtime thread pool: Size of the default thread pool used to perform internal tasks.
If not set, it defaults to the number of CPU cores.

**default-thread-stack-size** `string | null`

Default async runtime thread stack size: Stack size of the worker threads of the default async runtime.
If not set, it defaults to tokio's default stack size.

Since v1.7.1

**default-workflow-completion-retention** `string`

Default workflow completion retention for all workflow invocations.

This default is used when neither the workflow service nor the handler configures a workflow completion retention,
and can be overridden per service/handler using the respective SDK APIs.

Since v1.7.0

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**disable-config-sql-table** `boolean`

Disable the config table: Disables the `config` SQL table, which exposes the node's running
configuration via SQL queries.

Since v1.7.1

**disable-prometheus** `boolean` (default: false)

Disable prometheus metric recording and reporting. Default is `false`.

**disable-telemetry** `boolean` (default: false)

Disable telemetry: Restate uses Scarf to collect anonymous usage data to help us understand how the software is being used.
You can set this flag to true to disable this collection. It can also be set with the environment variable DO\_NOT\_TRACK=1.

**force-node-id** `integer | null` (default: null)

If set, the node insists on acquiring this node ID.

**gossip-extras-exchange-frequency** `integer` (default: 10)

Gossip extras exchange frequency: In addition to basic health/liveness information, the gossip protocol is used to exchange
extra information about the roles hosted by this node. For instance, which partitions are
currently running, their configuration versions, and the durable LSN of the corresponding
partition databases. This information is sent every Nth gossip message. This setting
controls the frequency of this exchange. For instance, `10` means that every 10th gossip
message will contain the extra information about.

**gossip-failure-threshold** `integer` (default: 10)

Gossip failure threshold: Specifies how many gossip intervals of inactivity need to pass before
considering a node as dead.

**gossip-fd-stability-threshold** `integer` (default: 3)

Gossips before failure detector is stable

**gossip-loneliness-threshold** `integer` (default: 30)

Gossip loneliness threshold: How many intervals need to pass without receiving any gossip messages before considering
this node as potentially isolated/dead. This threshold is used in the case where the node
can still send gossip messages but did not receive any. This can rarely happen in
asymmetric network partitions.

In this case, the node will advertise itself as dead in the gossip messages it sends out.

Note: this threshold does not apply to a cluster that's configured with a single node.

**gossip-num-peers** `integer` (default: 2)

Number of peers to gossip: On every gossip interval, how many peers each node attempts to gossip with. The default is
optimized for small clusters (less than 5 nodes). On larger clusters, if gossip overhead is noticeable,
consider reducing this value to 1.

**gossip-suspect-interval** `string` (default: 5s)

Suspect duration: How long to keep a node in a transient state (suspect) before marking it as available.
Larger values mean that the cluster is less prone to flaky nodes but extends the
time it takes for a node to participate.

A node becomes a suspect if it has been previously marked as dead for a given generation
number. If the node incremented its generation number, it will not be impacted by this
threshold.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**gossip-tick-interval** `string` (default: 100ms)

Gossip tick interval: The interval at which the failure detector will tick. Decrease this value for faster reaction
to node failures. Note, that every tick comes with an overhead.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**gossip-time-skew-threshold** `string` (default: 1s)

Gossips time skew threshold: The time skew is the maximum acceptable time difference between the local node and the time
reported by peers via gossip messages. The time skew is also used to ignore gossip messages
that are too old.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**hlc-max-drift** `string` (default: 0s)

HLC maximum drift: Restate uses an internal hybrid-logical-clock (HLC) to track causality between
different nodes in the cluster. This requires that the wall clock of all nodes
of the cluster to be synchronized (i.e. with NTP/PTP). This configuration option
allows you to configure the maximum allowed drift between nodes before the node
starts rejecting requests. The default value is `5000ms` which is sufficiently
large to cover the majority of cases.

However, cluster operators may prefer to reduce this value (e.g. to `1000ms`) if
they trust the clock synchronization between nodes to be reliable.

Setting this value to `0` disables the drift check entirely. This is not recommended
unless you are trying to recover a cluster from previous synchronization-related issues.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**initialization-timeout** `string` (default: 5m)

Initialization timeout: The timeout until the node gives up joining a cluster and initializing itself.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**listen-mode** `oneOf | null`

Listen on unix-sockets, TCP sockets, or both.

The default is to listen on both.

* `"unix"` : Exclusively listen on unix domain sockets

If set, all services will listen exclusively on unix sockets, each service
will create a socket file under the data directory.

* `"tcp"` : Exclusively listen on TCP sockets
* `"all"` : \[default] Listen on both Unix and TCP sockets

**location** `string`

Node Location: Setting the location allows Restate to form a tree-like cluster topology.
The value is written in the format of "region\[.zone]" to assign this node
to a specific region, or to a zone within a region.

The value of region and zone is arbitrary but whitespace and `.` are disallowed.

NOTE: It's *strongly* recommended to not change the node's location string after
its initial registration. Changing the location may result in data loss or data
inconsistency if `log-server` is enabled on this node.

When this value is not set, the node is considered to be in the *default* location.
The *default* location means that the node is not assigned to any specific region or zone.

Examples

* `us-west` -- the node is in the `us-west` region.
* `us-west.a1` -- the node is in the `us-west` region and in the `a1` zone.
* \`\` -- \[default] the node is in the default location

**log-disable-ansi-codes** `boolean` (default: false)

Disable ANSI in log output: Disable ANSI terminal codes for logs. This is useful when the log collector doesn't support processing ANSI terminal codes.

**log-filter** `string` (default: warn,restate=info)

Logging Filter: Log filter configuration. Can be overridden by the `RUST_LOG` environment variable.
Check the [`RUST_LOG` documentation](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html) for more details how to configure it.

**log-format** `string` (default: pretty)

Logging format: Format to use when logging.

* `"pretty"` : Enables verbose logging. Not recommended in production.
* `"compact"` : Enables compact logging.
* `"json"` : Enables json logging. You can use a json log collector to ingest these logs and further process them.

**max-idempotency-retention** `string | null`

Maximum idempotency retention duration that can be configured.
Applied when ingesting the invocation: values higher than this limit are clamped down to it.

Unset means no limit.

Since v1.7.0

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**max-journal-retention** `string | null`

Maximum journal retention duration that can be configured.
Applied when ingesting the invocation: values higher than this limit are clamped down to it.

Unset means no limit.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**max-retry-policy-max-attempts** `integer | null`

Max configurable value for retry policy max attempts: Maximum max attempts configurable in an invocation retry policy.
When discovering a service deployment with configured retry policies, or when modifying the invocation retry policy using the Admin API, the given value will be clamped.

`None` means no limit, that is infinite retries is enabled.

**max-workflow-completion-retention** `string | null`

Maximum workflow completion retention duration that can be configured.
Applied when ingesting the invocation: values higher than this limit are clamped down to it.

Unset means no limit.

Since v1.7.0

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**metadata-fetch-from-peer-timeout** `string` (default: 3s)

Timeout for metadata peer-to-peer fetching: When a node detects that a new metadata version exists, it'll attempt to fetch it from
its peers. After this timeout duration has passed, the node will attempt to fetch the
metadata from metadata store as well. This is to ensure that the nodes converge quickly
while reducing the load on the metadata store.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**metadata-update-interval** `string` (default: 10s)

Metadata update interval: The idle time after which the node will check for metadata updates from metadata store.
This helps the node detect if it has been operating with stale metadata for extended period
of time, primarily because it didn't interact with other peers in the cluster during that
period.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**node-name** `string | null` (default: null)

Node Name: Unique name for this node in the cluster. The node must not change unless
it's started with empty local store. It defaults to the node's hostname.

**rocksdb-block-size** `string | null`

RocksDB block size: Uncompressed block size

Default: 64KiB

**rocksdb-compaction-readahead-size** `string | null`

RocksDB compaction readahead size in bytes: If non-zero, we perform bigger reads when doing compaction. If you're
running RocksDB on spinning disks, you should set this to at least 2MB.
That way RocksDB's compaction is doing sequential instead of random reads.

**rocksdb-disable-direct-io-for-flush-and-compactions** `boolean | null`

Disable Direct IO for flush and compactions: Use O\_DIRECT for writes in background flush and compactions.

**rocksdb-disable-direct-io-for-reads** `boolean | null`

Disable Direct IO for reads: Files will be opened in "direct I/O" mode
which means that data r/w from the disk will not be cached or
buffered. The hardware buffer of the devices may however still
be used. Memory mapped files are not impacted by these parameters.

**rocksdb-disable-l0-l1-compression** `boolean | null`

Disable L0/L1 SST compression: When false (the default), L0 and L1 SST files are compressed with Lz4.
Higher levels (L2+) always use Zstd regardless of this setting.
Set to true to disable compression for L0/L1, which can improve write
throughput at the cost of higher disk usage since these files are
short-lived and frequently compacted.

Default: false (L0/L1 compression enabled)

**rocksdb-disable-statistics** `boolean | null`

Disable rocksdb statistics collection

Default: False (statistics enabled)

**rocksdb-disable-wal-compression** `boolean | null`

Disable WAL compression: When false (the default), the Write-Ahead Log is compressed with Zstd.
Set to true to disable WAL compression. Only applies when WAL is enabled.

Default: false (WAL compression enabled)

**rocksdb-high-priority-threads** `integer | null`

Rocksdb High Priority Background Threads: The number of threads to reserve to high priority Rocksdb background tasks.

Defaults to 1/4 of the number of CPU cores.

Since v1.7.0 (renamed from `rocksdb-high-priority-bg-threads`)

**rocksdb-log-keep-file-num** `integer | null` (default: null)

RocksDB log keep file num: Number of info LOG files to keep

Default: 1

**rocksdb-log-level** `string | null` (default: null)

RocksDB log level: Verbosity of the LOG.

Default: "error"

**rocksdb-log-max-file-size** `string | null` (default: null)

RocksDB log max file size: Max size of info LOG file

Default: 64MB

**rocksdb-low-priority-threads** `integer | null`

Rocksdb Low Priority Background Threads: The number of threads to reserve to lower priority Rocksdb background tasks.

Defaults to the remaining CPU cores not used by high-priority rocksdb threads

Since v1.7.0 (renamed from `rocksdb-bg-threads`)

**rocksdb-max-write-rate-per-second** `string` (default: 7.0 GiB)

Rocksdb global disk write rate limiter: This lets Rocksdb calibrates its IO operations to make the best use out of
the available IO bandwidth of the underlying storage device. By default, Rocksdb
auto-tunes the rate according to the actual background IO workload and uses this
value as an upper bound; see `rocksdb-write-rate-limiter-mode`.

You can use a tool like `fio` to measure the actual IO bandwidth of your storage
device (use block size of 64k, direct IO, and iodepth of 32 across 4 jobs to get a
reasonable estimate).

For instance, consider the output of the following command:

```text theme={null}
fio --name=c --directory=/restate-data --rw=write --bs=1m --size=8g --numjobs=4 --direct=1 --group_reporting
...
  WRITE: bw=601MiB/s (630MB/s), 601MiB/s-601MiB/s (630MB/s-630MB/s), io=32.0GiB (34.4GB), run=54560-54560msec
```

The default value assumes a fast NVMe with bandwidth of 7GiB (per second).

**rocksdb-perf-level** `string` (default: enable-count)

Rocksdb performance statistics level: Defines the level of PerfContext used internally by rocksdb. Default is `enable-count`
which should be sufficient for most users. Note that higher levels incur a CPU cost and
might slow down the critical path.

* `"disable"` : Disable perf stats
* `"enable-count"` : Enables only count stats
* `"enable-time-except-for-mutex"` : Count stats and enable time stats except for mutexes
* `"enable-time-and-c-p-u-time-except-for-mutex"` : Other than time, also measure CPU time counters. Still don't measure
  time (neither wall time nor CPU time) for mutexes
* `"enable-time"` : Enables count and time stats

**rocksdb-statistics-level** `oneOf | null`

RocksDB statistics level: StatsLevel can be used to reduce statistics overhead by skipping certain
types of stats in the stats collection process.

Default: "except-detailed-timers"

* `"disable-all"` : Disable all metrics
* `"except-histogram-or-timers"` : Disable timer stats, and skip histogram stats
* `"except-timers"` : Skip timer stats
* `"except-detailed-timers"` : Collect all stats except time inside mutex lock AND time spent on
  compression.
* `"except-time-for-mutex"` : Collect all stats except the counters requiring to get time inside the
  mutex lock.
* `"all"` : Collect all stats, including measuring duration of mutex operations.
  If getting time is expensive on the platform to run, it can
  reduce scalability to more threads, especially for writes.

**rocksdb-total-memory-size** `string` (default: 2.0 GiB)

Total memory limit for rocksdb caches and memtables.: This includes memory for uncompressed block cache and all memtables by all open databases.

The minimum supported is 256 MiB. Any value below this will be sanitized automatically to 256 MiB.

**rocksdb-total-memtables-ratio** `number` (default: 0.8500000238418579)

Rocksdb total memtable size ratio: The memory size used across all memtables (ratio between 0.1 to 1.0). This
limits how much memory memtables can eat up from the value in rocksdb-total-memory-limit.

The remaining memory will be dedicated to the block cache.

This value will be sanitized to 1.0 if outside the valid bounds.

**rocksdb-write-rate-limiter-mode** `string` (default: auto-tuned)

Rocksdb write rate limiter mode: How the global write rate limiter applies `rocksdb-max-write-rate-per-second`.

Takes effect on restart.

Since v1.8.0

* `"auto-tuned"` : Rocksdb adjusts the rate to the recent background IO demand, between 1/20 of
  `rocksdb-max-write-rate-per-second` and the full value. Under sustained demand the
  rate can increase by 5% roughly every 10 seconds, so after a quiet period a sudden
  write burst can start near the lower bound and take minutes to reach the full rate.
* `"fixed"` : Flushes and compactions share a fixed aggregate limit of
  `rocksdb-max-write-rate-per-second`, with no ramp-up. It does not guarantee throughput
  or reserve bandwidth for flushes. Use it when write bursts arrive faster than the
  auto-tuner ramps up, and set the limit to what the storage device can sustain.

**roles** `array` (default: \["http-ingress","admin","worker","log-server","metadata-server"])

Defines the roles which this Restate node should run, by default the node
starts with all roles.

* `"http-ingress"` : Serves HTTP ingress requests
* `"admin"` : Admin runs cluster controller and user-facing admin APIs
* `"worker"` : A worker runs partition processor (journal, state, and drives invocations)
* `"log-server"` : Serves a log-server for replicated loglets
* `"metadata-server"` : Serves the metadata store

**shutdown-timeout** `string` (default: 1m)

Shutdown grace timeout: This timeout is used when shutting down the various Restate components to drain all the internal queues.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**storage-high-priority-bg-threads** `integer | null`

Storage high priority thread pool

This configures the restate-managed storage thread pool for performing
high-priority or latency-sensitive storage tasks when the IO operation cannot
be performed on in-memory caches.

**storage-low-priority-bg-threads** `integer | null`

Storage low priority thread pool

This configures the restate-managed storage thread pool for performing
low-priority or latency-insensitive storage tasks.

**tokio-console-bind-address** `string`

Address to bind for the tokio-console tracing subscriber. If unset and restate-server is
built with tokio-console support, it'll listen on `[::]:6669`.

**tracing-endpoint** `string | null`

Tracing Endpoint: Default endpoint for user-invocation traces. Overridden by
\[`Self::tracing_services_endpoint`].

Specify the tracing endpoint to send user-invocation traces to.
Traces will be exported using [OTLP gRPC](https://opentelemetry.io/docs/specs/otlp/#otlpgrpc)
through [opentelemetry\_otlp](https://docs.rs/opentelemetry-otlp/0.12.0/opentelemetry_otlp/).

To configure the sampling, please refer to the [opentelemetry autoconfigure docs](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#sampler).

**tracing-headers** `object`

Additional tracing headers: Specify additional headers you want the system to send to the tracing endpoint (e.g.
authentication headers).

**tracing-services-endpoint** `string | null`

Services Tracing Endpoint: Overrides \[`Self::tracing_endpoint`] for services traces

Specify the tracing endpoint to send services traces to.
Traces will be exported using [OTLP gRPC](https://opentelemetry.io/docs/specs/otlp/#otlpgrpc)
through [opentelemetry\_otlp](https://docs.rs/opentelemetry-otlp/0.12.0/opentelemetry_otlp/).

To configure the sampling, please refer to the [opentelemetry autoconfigure docs](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#sampler).

**use-random-ports** `boolean | null`

Use random ports instead of the default port

## admin

Admin server options

Configuration file section `[admin]`, environment variable prefix `RESTATE_ADMIN__`.

**advertised-address** `string | null`

Address that other nodes will use to connect to this service.

The full prefix that will be used to advertise this service publicly.
For example, if this is set to `https://my-host` then others will use this
as base URL to connect to this service.

If unset, the advertised address will be inferred from public address of this node
or it'll use the value supplied in `advertised-host` if set.

advertised address: An externally accessible URI address for admin-api-server. This can be set to unix:restate-data/admin.sock to advertise the automatically created unix-socket instead of using tcp if needed

Examples:
"http//127.0.0.1:9070/" or "[https://my-host/](https://my-host/)" or "unix:/data/restate-data/admin.sock"

**advertised-admin-endpoint** `string | null`

Advertised Admin endpoint: Optional advertised Admin API endpoint.
\[Deprecated] Use `advertised-address` instead.

advertised address: An externally accessible URI address for admin-api-server. This can be set to unix:restate-data/admin.sock to advertise the automatically created unix-socket instead of using tcp if needed

Examples:
"http//127.0.0.1:9070/" or "[https://my-host/](https://my-host/)" or "unix:/data/restate-data/admin.sock"

**advertised-host** `string | null`

Hostname to advertise for this service

**bind-address** `string | null`

The combination of `bind-ip` and `bind-port` that will be used to bind

This has precedence over `bind-ip` and `bind-port`

Bind address: The local network address to bind on for admin-api-server. This service uses default port 9070 and will create a unix-socket file at the data directory under the name `admin.sock`

Examples:
"\[::]:9070" or "0.0.0.0:9070" or "127.0.0.1:9070"

**bind-ip** `string | null`

Local interface IP address to listen on

**bind-port** `integer | null`

Network port to listen on

**concurrent-api-requests-limit** `integer | null` (default: null)

Concurrency limit for the Admin APIs. Default is unlimited.

**deployment-routing-headers** `array`

Deployment routing headers: List of header names considered routing headers.

These will be used during deployment creation to distinguish between an already existing deployment and a new deployment.

**disable-cluster-controller** `boolean` (default: false)

**disable-web-ui** `boolean` (default: false)

Disable serving the Restate Web UI on the admin port. Default is `false`.

**heartbeat-interval** `string` (default: 1s 500ms)

Controller heartbeats: Controls the interval at which cluster controller polls nodes of the cluster.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**listen-mode** `oneOf | null`

Listen on unix-sockets, TCP sockets, or both.

The default is to listen on both.

* `"unix"` : Exclusively listen on unix domain sockets

If set, all services will listen exclusively on unix sockets, each service
will create a socket file under the data directory.

* `"tcp"` : Exclusively listen on TCP sockets
* `"all"` : \[default] Listen on both Unix and TCP sockets

**use-random-ports** `boolean | null`

Use random ports instead of the default port

### admin.query-engine

Storage query engine options

Configuration file section `[admin.query-engine]`, environment variable prefix `RESTATE_ADMIN__QUERY_ENGINE__`.

**memory-size** `string` (default: 1.0 GiB)

Memory size limit: The total memory in bytes that can be used to preform sql queries

**query-parallelism** `integer | null` (default: null)

Default query parallelism: The degree of parallelism to use for query execution (Defaults to the number of available cores).

**tmp-dir** `string | null` (default: null)

Temp folder to use for spill: The path to spill to

#### admin.query-engine.rate-limiting

Query rate limiting: Per-node rate limiting options for datafusion query execution. When exceeded,
the query will fail with TOO\_MANY\_REQUESTS. If unset, no rate limiting is applied.

Since v1.7.1

Configuration file section `[admin.query-engine.rate-limiting]`, environment variable prefix `RESTATE_ADMIN__QUERY_ENGINE__RATE_LIMITING__`.

**capacity** `integer | null`

Burst capacity: The maximum number of tokens the bucket can hold.
Default to the rate value if not specified.

**rate** `string` *required*

Refill rate: The rate at which the tokens are replenished.

Syntax: `&lt;rate&gt;/&lt;unit&gt;` where `&lt;unit&gt;` is `s|sec|second`, `m|min|minute`, or `h|hr|hour`.
unit defaults to per second if not specified.

## bifrost

Bifrost options

Configuration file section `[bifrost]`, environment variable prefix `RESTATE_BIFROST__`.

**append-retry-max-interval** `string` (default: 1s)

Append retry maximum interval: Maximum retry duration used by the exponential backoff mechanism for bifrost appends.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**append-retry-min-interval** `string` (default: 10ms)

Append retry minimum interval: Minimum retry duration used by the exponential backoff mechanism for bifrost appends.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**auto-recovery-interval** `string` (default: 15s)

Auto recovery threshold: Time interval after which bifrost's auto-recovery mechanism will kick in. This
is triggered in scenarios where the control plane took too long to complete loglet
reconfigurations.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**default-provider** `string` (default: replicated)

The default kind of loglet to be used: Default: Replicated

An enum with the list of supported loglet providers.

* `"local"` : A local rocksdb-backed loglet.
* `"replicated"` : Replicated loglets are restate's native log replication system. This requires
  `log-server` role to run on enough nodes in the cluster.

**disable-auto-improvement** `string` (default: false)

Disable Automatic Improvement: When enabled, automatic improvement periodically checks with the loglet provider
if the loglet configuration can be improved by performing a reconfiguration.

This allows the log to pick up replication property changes, apply better placement
of replicas, or for other reasons.

**local** `string`

Configuration of local loglet provider

**record-cache-memory-size** `string` (default: 250.0 MiB)

In-memory RecordCache memory limit: Optional size of record cache in bytes.
If set to 0, record cache will be disabled.
Defaults: 250MB

**seal-retry-interval** `string` (default: 2s)

Seal retry interval: Interval to wait between retries of loglet seal failures

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

### bifrost.read-retry-policy

Read retry policy: Retry policy to use when bifrost waits for reconfiguration to complete during
read operations

Configuration file section `[bifrost.read-retry-policy]`, environment variable prefix `RESTATE_BIFROST__READ_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

### bifrost.replicated-loglet

Configuration of replicated loglet provider

Configuration file section `[bifrost.replicated-loglet]`, environment variable prefix `RESTATE_BIFROST__REPLICATED_LOGLET__`.

**log-server-rpc-timeout** `string | null`

Log Server RPC timeout

Timeout waiting on log server response

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**maximum-inflight-records** `integer` (default: 1000)

Maximum number of inflight records sequencer can accept

Once this maximum is hit, sequencer will induce back pressure
on clients. This controls the total number of records regardless of how many batches.

Note that this will be increased to fit the biggest batch of records being enqueued.

**read-batch-size** `string` (default: 32.0 KiB)

Limits memory per remote batch read: When reading from a log-server, the server stops reading if the next record will tip over the
total number of bytes allowed in this configuration option.

Note the limit is not strict and the server will always allow at least a single record to be
read even if that record exceeds the stated budget.

**readahead-records** `integer` (default: 20)

Maximum number of records to prefetch from log servers

The number of records bifrost will attempt to prefetch from replicated loglet's log-servers
for every loglet reader (e.g. partition processor). Note that this mainly impacts readers
that are not co-located with the loglet sequencer (i.e. partition processor followers).

**readahead-trigger-ratio** `number` (default: 0.5)

Trigger to prefetch more records

When read-ahead is used (readahead-records), this value (percentage in float) will determine when
readers should trigger a prefetch for another batch to fill up the buffer. For instance, if
this value is 0.3, then bifrost will trigger a prefetch when 30% or more of the read-ahead
slots become available (e.g. partition processor consumed records and freed up enough slots).

The higher the value is, the longer bifrost will wait before it triggers the next fetch, potentially
fetching more records as a result.

To illustrate, if readahead-records is set to 100 and readahead-trigger-ratio is 1.0. Then
bifrost will prefetch up to 100 records from log-servers and will not trigger the next
prefetch unless the consumer consumes 100% of this buffer. This means that bifrost will
read in batches but will not do while the consumer is still reading the previous batch.

Value must be between 0 and 1. It will be clamped at `1.0`.

**rpc-timeout** `string` (default: 250ms..1m)

Adaptive timeout for LogServer RPC

This configures the adaptive timeout range for RPC operations from this node to log servers.
The timeout range is also used to determine the appropriate retry delay between retry attempts.

Examples:
"250ms..1m" or "10ms..60s" or "0.5s..5m" or "1s..1h"

**sequencer-inactivity-timeout** `string` (default: 15s)

Sequencer inactivity timeout

The sequencer is allowed to consider itself quiescent if it did not commit records for this period of time.
It may use this to sends pre-emptive release/seal check requests to log-servers.

The sequencer is also allowed to use this value as interval to send seal/release checks even if it's not quiescent.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**store-timeout** `string` (default: 2s..1m)

Adaptive timeout for LogServer Store Messages

This configures the adaptive timeout range for Store operations from this node to log servers.

Since v1.7.0

Examples:
"250ms..1m" or "10ms..60s" or "0.5s..5m" or "1s..1h"

#### bifrost.replicated-loglet.log-server-retry-policy

Log Server RPC retry policy

Retry policy for log server RPCs

Configuration file section `[bifrost.replicated-loglet.log-server-retry-policy]`, environment variable prefix `RESTATE_BIFROST__REPLICATED_LOGLET__LOG_SERVER_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

#### bifrost.replicated-loglet.sequencer-retry-policy

Retry policy: Sequencer retry policy

Backoff introduced when sequencer fail to find a suitable spread of log servers

Configuration file section `[bifrost.replicated-loglet.sequencer-retry-policy]`, environment variable prefix `RESTATE_BIFROST__REPLICATED_LOGLET__SEQUENCER_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

## default-retry-policy

Default retry policy: The default retry policy to use for invocations.

The retry policy can be customized on a service/handler basis, using the respective SDK APIs.
Check [https://docs.restate.dev/services/configuration#retries](https://docs.restate.dev/services/configuration.md#retries) for more details.

Configuration file section `[default-retry-policy]`, environment variable prefix `RESTATE_DEFAULT_RETRY_POLICY__`.

**exponentiation-factor** `number` (default: 2)

Factor: The factor to use to compute the next retry attempt. Default: `2.0`.

**initial-interval** `string` (default: 500ms)

Initial Interval: Initial interval for the first retry attempt.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**max-attempts** `anyOf` (default: 70)

Max attempts: Number of maximum attempts (including the initial) before giving up.
No retries if set to 1.

* `"unlimited"` : Unlimited retries.
* `integer` : Bounded number of retries.

**max-interval** `string` (default: 1m)

Max interval: Maximum interval between retries.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**on-max-attempts** `string` (default: pause)

On max attempts: Behavior when max attempts are reached.

Set to `pause` to pause invocations when max attempts are reached.
Set to `kill` to kill the invocation when max attempts are reached.

For more details about the invocation lifecycle, check [https://docs.restate.dev/services/invocation/managing-invocations](https://docs.restate.dev/services/invocation/managing-invocations.md)

* `"pause"` : Pause the invocation when max attempts are reached.
* `"kill"` : Kill the invocation when max attempts are reached.

## ingress

Ingress options

Configuration file section `[ingress]`, environment variable prefix `RESTATE_INGRESS__`.

**advertised-address** `string | null`

Address that other nodes will use to connect to this service.

The full prefix that will be used to advertise this service publicly.
For example, if this is set to `https://my-host` then others will use this
as base URL to connect to this service.

If unset, the advertised address will be inferred from public address of this node
or it'll use the value supplied in `advertised-host` if set.

advertised address: An externally accessible URI address for http-ingress-server. This can be set to unix:restate-data/ingress.sock to advertise the automatically created unix-socket instead of using tcp if needed

Examples:
"http//127.0.0.1:8080/" or "[https://my-host/](https://my-host/)" or "unix:/data/restate-data/ingress.sock"

**advertised-host** `string | null`

Hostname to advertise for this service

**advertised-ingress-endpoint** `string | null`

\[Deprecated] Use `advertised-address` instead.
Ingress endpoint that the Web UI should use to interact with.

advertised address: An externally accessible URI address for http-ingress-server. This can be set to unix:restate-data/ingress.sock to advertise the automatically created unix-socket instead of using tcp if needed

Examples:
"http//127.0.0.1:8080/" or "[https://my-host/](https://my-host/)" or "unix:/data/restate-data/ingress.sock"

**bind-address** `string | null`

The combination of `bind-ip` and `bind-port` that will be used to bind

This has precedence over `bind-ip` and `bind-port`

Bind address: The local network address to bind on for http-ingress-server. This service uses default port 8080 and will create a unix-socket file at the data directory under the name `ingress.sock`

Examples:
"\[::]:8080" or "0.0.0.0:8080" or "127.0.0.1:8080"

**bind-ip** `string | null`

Local interface IP address to listen on

**bind-port** `integer | null`

Network port to listen on

**concurrent-api-requests-limit** `integer | null` (default: null)

Concurrency limit: Local concurrency limit to use to limit the amount of concurrent requests. If exceeded,
the ingress will reply immediately with an appropriate status code. Default is unlimited.

**http2-keep-alive-interval** `string` (default: 40s)

HTTP/2 Keep-alive interval: Interval at which HTTP/2 PING frames are sent on inbound ingress connections, to keep
them alive and to detect clients that have become unreachable.

`0` disables keep-alive pings entirely.

Since v1.8.0

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**http2-keep-alive-timeout** `string` (default: 20s)

HTTP/2 Keep-alive timeout: How long to wait for a client to acknowledge a keep-alive PING. If the acknowledgement
does not arrive within this timeout, the connection is closed.

Only meaningful when `http2-keep-alive-interval` is not zero.

Since v1.8.0

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**http2-max-concurrent-streams** `integer | null`

HTTP/2 max concurrent streams: Caps the number of concurrent HTTP/2 streams accepted per inbound ingress connection.
If unset, Restate does not configure this limit and leaves it at hyper's runtime default.
With the current hyper version, that default is 200 streams.
Service-mesh clients such as Linkerd honor the advertised value as a hard per-connection
concurrency limit, so high-concurrency or long-poll deployments may need to raise it.

Since v1.7.0

**kafka-clusters** `array` (default: \[])

**Deprecated in 1.7**: Kafka clusters should now be configured through the UI/Admin API

**Array Items**

**item** `object`

Kafka cluster options: Configuration options to connect to a Kafka cluster.
**Deprecated in 1.7**: Kafka clusters should now be configured through the UI/Admin API

**Properties**

**brokers** `array` *required*

Servers: Initial list of brokers (host or host:port).

**name** `string` *required*

Cluster name (Used to identify subscriptions).

**listen-mode** `oneOf | null`

Listen on unix-sockets, TCP sockets, or both.

The default is to listen on both.

* `"unix"` : Exclusively listen on unix domain sockets

If set, all services will listen exclusively on unix sockets, each service
will create a socket file under the data directory.

* `"tcp"` : Exclusively listen on TCP sockets
* `"all"` : \[default] Listen on both Unix and TCP sockets

**request-size-limit** `string | null`

Request size limit: Maximum size of request that can be received over ingress. If a request size is
larger than this limit, the request will fail.

If unset, defaults to `networking.message-size-limit`. If set, it will be clamped at
the value of `networking.message-size-limit` since larger requests cannot be transmitted
over the cluster internal network.

Since v1.7.0

**use-random-ports** `boolean | null`

Use random ports instead of the default port

### ingress.ingestion

Ingestion Options: Settings for the ingestion client
Currently only used by the Kafka ingress and the admin API.

Configuration file section `[ingress.ingestion]`, environment variable prefix `RESTATE_INGRESS__INGESTION__`.

**inflight-memory-budget** `string` *required*

Inflight Memory Budget: Maximum total size of in-flight ingestion requests in bytes.
Tune this to your workload so there are enough unpersisted
requests for efficient batching without exhausting memory.

Defaults to 1 MiB.

**request-batch-size** `string` *required*

Request Batch Size: Maximum size of a single ingestion request batch.
Tune to keep enough requests per batch for
throughput; overly large batches can increase tail latency.

Defaults to 50 KiB.

#### ingress.ingestion.connection-retry-policy

Connection retry policy: Retry policy for the ingestion client. It must allow unlimited
retries; if configured with a cap, the client falls back to
retrying every 2 seconds.

Configuration file section `[ingress.ingestion.connection-retry-policy]`, environment variable prefix `RESTATE_INGRESS__INGESTION__CONNECTION_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

### ingress.ingestion-api

Ingestion API options: Settings for the experimental gRPC ingestion API.

Configuration file section `[ingress.ingestion-api]`, environment variable prefix `RESTATE_INGRESS__INGESTION_API__`.

**disable** `boolean` (default: false)

Disable the gRPC ingestion API: Disable the experimental gRPC ingestion API on the ingress endpoint.

Since v1.8.0

**max-concurrent-streams** `integer` (default: 1000)

Maximum concurrent streams: Maximum number of ingestion streams may have in flight before the server
start rejecting them

Since v1.8.0

**max-window-size** `string` (default: 128.0 KiB)

Maximum ingestion window size: Maximum number of bytes an ingestion stream may have in flight before the server
applies back pressure.

Values below 32KiB, the minimum window defined by the ingestion
protocol, are rounded up to 32KiB

Value is clipped at \[`u32::MAX`]

Since v1.8.0

## log-server

Log server options: Configuration is only used on nodes running with `log-server` role.

Configuration file section `[log-server]`, environment variable prefix `RESTATE_LOG_SERVER__`.

**incoming-network-queue-length** `integer | null`

The number of messages that can queue up on input network stream while request processor is busy.

**rocksdb-blob-min-size** `string | null`

Minimum value size for blob file separation

Values at or above this threshold are stored in separate blob files when
blob separation is enabled. Smaller values remain inline in SST files.
Lower thresholds reduce write amplification (compactions only rewrite small
BlobIndex pointers) at the cost of an extra read indirection on cache misses.

Only takes effect when `rocksdb-enable-blob-separation` is true.

\[default] is 512 KiB

Since v1.7.0

**rocksdb-block-size** `string | null`

RocksDB block size: Uncompressed block size

Default: 64KiB

**rocksdb-compaction-readahead-size** `string | null`

RocksDB compaction readahead size in bytes: If non-zero, we perform bigger reads when doing compaction. If you're
running RocksDB on spinning disks, you should set this to at least 2MB.
That way RocksDB's compaction is doing sequential instead of random reads.

**rocksdb-disable-blob-compression** `boolean`

Disable compression for blob files

When false (default), blob files are compressed with Zstd. Set to true to
store blobs uncompressed, trading higher disk usage for reduced CPU overhead
on writes and blob-GC reads.

Only takes effect when `rocksdb-enable-blob-separation` is true.

Since v1.7.0

**rocksdb-disable-direct-io-for-flush-and-compactions** `boolean | null`

Disable Direct IO for flush and compactions: Use O\_DIRECT for writes in background flush and compactions.

**rocksdb-disable-direct-io-for-reads** `boolean | null`

Disable Direct IO for reads: Files will be opened in "direct I/O" mode
which means that data r/w from the disk will not be cached or
buffered. The hardware buffer of the devices may however still
be used. Memory mapped files are not impacted by these parameters.

**rocksdb-disable-l0-l1-compression** `boolean | null`

Disable L0/L1 SST compression: When false (the default), L0 and L1 SST files are compressed with Lz4.
Higher levels (L2+) always use Zstd regardless of this setting.
Set to true to disable compression for L0/L1, which can improve write
throughput at the cost of higher disk usage since these files are
short-lived and frequently compacted.

Default: false (L0/L1 compression enabled)

**rocksdb-disable-statistics** `boolean | null`

Disable rocksdb statistics collection

Default: False (statistics enabled)

**rocksdb-disable-wal-compression** `boolean | null`

Disable WAL compression: When false (the default), the Write-Ahead Log is compressed with Zstd.
Set to true to disable WAL compression. Only applies when WAL is enabled.

Default: false (WAL compression enabled)

**rocksdb-disable-wal-fsync** `boolean` (default: false)

Disable fsync of WAL on every batch

**rocksdb-enable-blob-separation** `boolean` (default: false)

Enable storing large values in separate blob files

\[Experimental]
Enables BlobDB key-value separation for the data column family. Values at or
above `rocksdb-blob-min-size` are written to dedicated blob files, leaving only
small pointers in the LSM tree. This dramatically reduces write amplification
during compaction at the cost of some space amplification from unreferenced blobs
awaiting garbage collection.

This is safe to enable/disable at any time.

Since v1.7.0

**rocksdb-l0-num-compaction-trigger** `integer` (default: 8)

Number of L0 files to trigger compaction: Sets the number of files to trigger level-0 compaction.

\[default] is 8

Since v1.7.7

**rocksdb-log-keep-file-num** `integer | null` (default: null)

RocksDB log keep file num: Number of info LOG files to keep

Default: 1

**rocksdb-log-level** `string | null` (default: null)

RocksDB log level: Verbosity of the LOG.

Default: "error"

**rocksdb-log-max-file-size** `string | null` (default: null)

RocksDB log max file size: Max size of info LOG file

Default: 64MB

**rocksdb-max-background-compactions** `integer | null`

Max background compactions: Maximum number of concurrent compaction operations for this database.

If unset, defaults are computed based on CPU count and active node roles.

Since v1.7.0

**rocksdb-max-file-size** `string` (default: 128.0 MiB)

Target size for SST files: The target size for sst files. Restate uses this value to internally determine
the number of memtables to keep in memory and how much to merge before flushing.

The value is automatically sanitized to 8 MiB if set to a smaller value.
When blob separation is enabled, non-L0 SST files instead target 8 MiB.

\[default] is 128 MiB

Since v1.7.0

**rocksdb-max-open-files** `integer | null`

Max open files: Sets the number of open files that can be used by the DB. You may need to
increase this if your database has a large working set. Unset means
files opened are always kept open.

\[default] is unset

Since v1.7.7

**rocksdb-max-sub-compactions** `integer` (default: 1)

The maximum number of subcompactions to run in parallel.

Setting this to 1 means no sub-compactions are allowed.

Default is 1

**rocksdb-memory-budget** `string | null`

The memory budget for rocksdb memtables in bytes

If this value is set, it overrides the ratio defined in `rocksdb-memory-ratio`.

The memory budget is automatically sanitized to the minimum of 32 MiB if set to
a smaller value.

**rocksdb-memory-ratio** `number` (default: 0.5)

The memory budget for rocksdb memtables as ratio

This defines the total memory for rocksdb as a ratio of the node's total budget
for rocksdb memtables.

(See `rocksdb-total-memtables-ratio` in common).

**rocksdb-partition-sst-by-log** `boolean` (default: true)

Partition SST files by log ID: Splits SST files by the log ID.

\[default] is true

Since v1.7.7

**rocksdb-partition-sst-by-loglet** `boolean` (default: false)

Partition SST files by loglet ID: Splits SST files by the loglet ID. Enabling this option may reduce the cost of compaction
and trimming but may increase the number of SST files. If the number of SST files became a
concern, consider setting `rocksdb-max-open-files` to a reasonable value.

This overrides `rocksdb-partition-sst-by-log` if both are enabled.

\[default] is false

Since v1.7.7

**rocksdb-statistics-level** `oneOf | null`

RocksDB statistics level: StatsLevel can be used to reduce statistics overhead by skipping certain
types of stats in the stats collection process.

Default: "except-detailed-timers"

* `"disable-all"` : Disable all metrics
* `"except-histogram-or-timers"` : Disable timer stats, and skip histogram stats
* `"except-timers"` : Skip timer stats
* `"except-detailed-timers"` : Collect all stats except time inside mutex lock AND time spent on
  compression.
* `"except-time-for-mutex"` : Collect all stats except the counters requiring to get time inside the
  mutex lock.
* `"all"` : Collect all stats, including measuring duration of mutex operations.
  If getting time is expensive on the platform to run, it can
  reduce scalability to more threads, especially for writes.

**rocksdb-wal-dir** `string | null`

Custom Path for WAL files

If unset, the default data directory is used for WAL files. If set, the path
must point to a directory that exists and is writable. The directory will be
used to store WAL files.

The recommendation is to use low-latency NVMe SSD for the WAL directory with
sufficient IOPS capacity and bandwidth to your sustained workload. The `fdatasync`
latency of the storage device is a significant factor in the WAL performance if
`rocksdb-disable-wal-fsync` is set to `false`.

Since v1.7.0

**rocksdb-writable-file-max-buffer-size** `string` (default: 1.0 MiB)

Buffer size used for writing to SST files: Sets the maximum buffer size that is used to write SST files to disk.
Larger values translate to larger IO operations which can be helpful
for slow or network-attached storage devices.

\[default] is 1 MiB

Since v1.7.7

**write-batch-commit-bytes** `string | null`

Write Batch (in bytes): If unset, a reasonable value is automatically derived from the memory budget
available for memtables of the log-server.

If `write-batch-commit-count` is set, the write batch will be limited to whichever
of the two is reached first. The value is clamped to the size of a single memtable
which is derived from rocksdb-memory-budget.

**write-batch-commit-count** `integer | null`

Write Batch (count): The number of records to batch in a single write batch. This is a (soft) upper bound
and the actual number of records may be lower in low-throughput scenarios or if
the write batch size (in bytes) is reached first.

If unset, the write batch will only be limited by its size in bytes.

## metadata-client

Metadata client options: The metadata client type to store metadata

Configuration file section `[metadata-client]`, environment variable prefix `RESTATE_METADATA_CLIENT__`.

**connect-timeout** `string` (default: 3s)

Connect timeout: TCP connection timeout for connecting to the metadata store.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**keep-alive-interval** `string` (default: 5s)

Metadata Store Keep Alive Interval: Interval at which keep-alive probes are sent on the connection to the
metadata store, to keep it alive and to detect a store that has become
unreachable.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**keep-alive-timeout** `string` (default: 5s)

Metadata Store Keep Alive Timeout: How long to wait for a keep-alive probe to be acknowledged by the
metadata store before treating the connection as dead and closing it.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**message-size-limit** `string | null`

Metadata Network Message Size: Maximum size of network messages that metadata client can receive from a metadata server.

If unset, defaults to `networking.message-size-limit`. If set, it will be clamped at
the value of `networking.message-size-limit` since larger messages cannot be transmitted
over the cluster internal network.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"replicated"` : Store metadata on the replicated metadata store that runs on nodes with the metadata-server role.
* `"etcd"` : Store metadata on an external etcd cluster. The addresses are formatted as `host:port`
* `"object-store"` : Store metadata on an external object store.

Additional options for each `type`:

> [tab] type = "replicated"
>
> **addresses** `array` *required*
>
> Restate metadata server address list

> [tab] type = "etcd"
>
> **addresses** `string` *required*
>
> Etcd cluster node address list

> [tab] type = "object-store"
>
> **aws-access-key-id** `string | null`
>
> AWS access key: Username for Minio, or consult the service documentation for other S3-compatible stores.
>
> **aws-allow-http** `boolean | null`
>
> Allow insecure HTTP: Allow plain HTTP to be used with the object store endpoint. Required when the endpoint URL
> that isn't using HTTPS.
>
> **aws-endpoint-url** `string | null`
>
> Object store API endpoint URL override: When you use Amazon S3, this is typically inferred from the region and there is no need to
> set it. With other object stores, you will have to provide an appropriate HTTP(S) endpoint.
> If *not* using HTTPS, also set `aws-allow-http` to `true`.
>
> **aws-profile** `string | null`
>
> AWS profile: The AWS configuration profile to use for S3 object store destinations. If you use
> named profiles in your AWS configuration, you can replace all the other settings with
> a single profile reference. See the \[AWS documentation on profiles]
> ([https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html)) for more.
>
> **aws-region** `string | null`
>
> AWS region to use with S3 object store destinations. This may be inferred from the
> environment, for example the current region when running in EC2. Because of the
> request signing algorithm this must have a value. For Minio, you can generally
> set this to any string, such as `us-east-1`.
>
> **aws-secret-access-key** `string | null`
>
> AWS secret key: Password for Minio, or consult the service documentation for other S3-compatible stores.
>
> **aws-session-token** `string | null`
>
> AWS session token: This is only needed with short-term STS session credentials.
>
> **object-store-retry-policy** `object`
>
> Error retry policy: Retry policy for the object store requests the metadata client
> makes, covering both reads of the current metadata version and the
> conditional writes used to update it.
>
> Retries here absorb the transient errors and throttling responses
> object stores return under load, so a short or non-retrying policy
> can surface those as metadata operation failures.
>
> **type** `string` *required*
>
> Selects which shape this section takes. Each value accepts its own
> additional options, listed under it below.
>
> * `"none"` : No retry strategy.
> * `"fixed-delay"` : Retry with a fixed delay strategy.
> * `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.
>
> Additional options for each `type`:
>
> > [tab] type = "fixed-delay"
> >
> > **interval** `string` *required*
> >
> > Interval between retries.
> >
> > Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
> >
> > Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
> >
> > Examples:
> > "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
> >
> > **max-attempts** `integer | null`
> >
> > Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> > [tab] type = "exponential"
> >
> > **factor** `number` *required*
> >
> > Factor: The factor to use to compute the next retry attempt.
> >
> > **initial-interval** `string` *required*
> >
> > Initial Interval: Initial interval for the first retry attempt.
> >
> > Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
> >
> > Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
> >
> > Examples:
> > "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
> >
> > **max-attempts** `integer | null`
> >
> > Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
> >
> > **max-interval** `string | null`
> >
> > Max interval: Maximum interval between retries.
> >
> > Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
> >
> > Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
> >
> > Examples:
> > "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **path** `string` *required*
>
> Object store path for metadata storage: This location will be used to persist cluster metadata. Takes the form of a URL
> with `s3://` or `gs://` as the protocol and bucket name as the authority, plus
> an optional prefix specified as the path component.
>
> Examples: `s3://bucket/prefix`, `gs://bucket/prefix`
>
> For `gs://`, credentials come from the environment: a service account key named by
> `GOOGLE_SERVICE_ACCOUNT` or given inline in `GOOGLE_SERVICE_ACCOUNT_KEY`, else
> Application Default Credentials (`GOOGLE_APPLICATION_CREDENTIALS` or the `gcloud`
> default file), else the instance metadata server. Workload identity federation
> (`external_account`) credential files are not supported. The `aws-*` options apply
> to `s3://` only.

### metadata-client.backoff-policy

Backoff policy used by the metadata client when it encounters concurrent modifications.

Configuration file section `[metadata-client.backoff-policy]`, environment variable prefix `RESTATE_METADATA_CLIENT__BACKOFF_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

## metadata-server

Metadata store options

Configuration file section `[metadata-server]`, environment variable prefix `RESTATE_METADATA_SERVER__`.

**auto-join** `boolean` (default: true)

Auto join the metadata cluster when being started

Defines whether this node should auto join the metadata store cluster when being started
for the first time.

**log-trim-threshold** `integer | null` (default: 1000)

The raft log trim threshold: The threshold for trimming the raft log. The log will be trimmed if the number of apply entries
exceeds this threshold. The default value is `1000`.

**raft-election-tick** `integer` (default: 10)

The number of ticks before triggering an election

The number of ticks before triggering an election. The value must be larger than
`raft_heartbeat_tick`. It's recommended to set `raft_election_tick = 10 * raft_heartbeat_tick`.
Decrease this value if you want to react faster to failed leaders. Note, decreasing this
value too much can lead to cluster instabilities due to falsely detecting dead leaders.

**raft-heartbeat-tick** `integer` (default: 2)

The number of ticks before sending a heartbeat

A leader sends heartbeat messages to maintain its leadership every heartbeat ticks.
Decrease this value to send heartbeats more often.

**raft-tick-interval** `string` (default: 100ms)

The raft tick interval

The interval at which the raft node will tick. Decrease this value in order to let the Raft
node react more quickly to changes. Note, that every tick comes with an overhead. Moreover,
the tick interval directly affects the election timeout. If the election timeout becomes too
small, then this can cause cluster instabilities due to frequent leader changes.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**request-queue-length** `integer` (default: 32)

Limit number of in-flight requests

Number of in-flight metadata store requests.

**rocksdb-block-size** `string | null`

RocksDB block size: Uncompressed block size

Default: 64KiB

**rocksdb-compaction-readahead-size** `string | null`

RocksDB compaction readahead size in bytes: If non-zero, we perform bigger reads when doing compaction. If you're
running RocksDB on spinning disks, you should set this to at least 2MB.
That way RocksDB's compaction is doing sequential instead of random reads.

**rocksdb-disable-direct-io-for-flush-and-compactions** `boolean | null`

Disable Direct IO for flush and compactions: Use O\_DIRECT for writes in background flush and compactions.

**rocksdb-disable-direct-io-for-reads** `boolean | null`

Disable Direct IO for reads: Files will be opened in "direct I/O" mode
which means that data r/w from the disk will not be cached or
buffered. The hardware buffer of the devices may however still
be used. Memory mapped files are not impacted by these parameters.

**rocksdb-disable-l0-l1-compression** `boolean | null`

Disable L0/L1 SST compression: When false (the default), L0 and L1 SST files are compressed with Lz4.
Higher levels (L2+) always use Zstd regardless of this setting.
Set to true to disable compression for L0/L1, which can improve write
throughput at the cost of higher disk usage since these files are
short-lived and frequently compacted.

Default: false (L0/L1 compression enabled)

**rocksdb-disable-statistics** `boolean | null`

Disable rocksdb statistics collection

Default: False (statistics enabled)

**rocksdb-disable-wal-compression** `boolean | null`

Disable WAL compression: When false (the default), the Write-Ahead Log is compressed with Zstd.
Set to true to disable WAL compression. Only applies when WAL is enabled.

Default: false (WAL compression enabled)

**rocksdb-log-keep-file-num** `integer | null` (default: null)

RocksDB log keep file num: Number of info LOG files to keep

Default: 1

**rocksdb-log-level** `string | null` (default: null)

RocksDB log level: Verbosity of the LOG.

Default: "error"

**rocksdb-log-max-file-size** `string | null` (default: null)

RocksDB log max file size: Max size of info LOG file

Default: 64MB

**rocksdb-memory-budget** `string | null`

The memory budget for rocksdb memtables in bytes

If this value is set, it overrides the ratio defined in `rocksdb-memory-ratio`.

**rocksdb-memory-ratio** `number` (default: 0.009999999776482582)

The memory budget for rocksdb memtables as ratio

This defines the total memory for rocksdb as a ratio of all memory available to memtables
(See `rocksdb-total-memtables-ratio` in common).

**rocksdb-statistics-level** `oneOf | null`

RocksDB statistics level: StatsLevel can be used to reduce statistics overhead by skipping certain
types of stats in the stats collection process.

Default: "except-detailed-timers"

* `"disable-all"` : Disable all metrics
* `"except-histogram-or-timers"` : Disable timer stats, and skip histogram stats
* `"except-timers"` : Skip timer stats
* `"except-detailed-timers"` : Collect all stats except time inside mutex lock AND time spent on
  compression.
* `"except-time-for-mutex"` : Collect all stats except the counters requiring to get time inside the
  mutex lock.
* `"all"` : Collect all stats, including measuring duration of mutex operations.
  If getting time is expensive on the platform to run, it can
  reduce scalability to more threads, especially for writes.

**status-update-interval** `string` (default: 5s)

The status update interval

The interval at which the raft node will update its status. Decrease this value in order to
see more recent status updates.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

## network-error-retry-policy

Network error retry policy: The retry policy for network related errors

Configuration file section `[network-error-retry-policy]`, environment variable prefix `RESTATE_NETWORK_ERROR_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

## networking

Networking options: Common network configuration options for communicating with Restate cluster nodes. Note that
similar keys are present in other config sections, such as in Service Client options.

Configuration file section `[networking]`, environment variable prefix `RESTATE_NETWORKING__`.

**connect-timeout** `string` (default: 3s)

Connect timeout: TCP connection timeout for Restate cluster node-to-node network connections.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**data-stream-window-size** `string` (default: 4.0 MiB)

Data Stream Window Size: Controls how many bytes a node can send to another node before the receiving node has
processed them. Beyond that, the sender waits, which applies back pressure.

The value is best derived from the bandwidth-delay product (BDP) of the network. For
instance, if the network has a bandwidth of 10 Gbps and a round-trip time of 5 ms, the BDP
is 10 Gbps \* 0.005 s = 6.25 MB. The window should be at least the BDP to fully utilize the
bandwidth, assuming the latency is constant. We recommend twice the BDP to account for
variations in latency.

At 10 Gbps, the default of 4 MiB is twice the BDP of a round trip of about 1.7 ms, which
covers typical networks within a data center. On high-latency links, the window limits
throughput to about one window per round trip, for example about 40 MiB/s at 100 ms, so
raise it there. Each connection can buffer up to one window of data that the receiving
node has not processed yet.

Windows above 4 MiB also need larger TCP buffers on every node, because the kernel limits
each connection's buffers independently of this setting. On Linux, raise the maximum
(third) values of `net.ipv4.tcp_wmem` and `net.ipv4.tcp_rmem`.

The maximum theoretical value is 2^31-1 (2 GiB - 1), but values above 500 MiB are reduced
to 500 MiB. Since v1.8.0, the default is 4 MiB (previously 2 MiB).

**disable-compression** `boolean` (default: false)

Disable Compression: Disables Zstd compression for internal gRPC network connections

**fabric-memory-limit** `string`

Global Fabric Memory Limit: This sets the memory limit for all in-flight fabric services that don't own dedicated
memory pools. The memory limit will be sanitized to the configured `message-size-limit`
if smaller.

Default: `64MiB`

**handshake-timeout** `string` (default: 3s)

Handshake timeout: Timeout for receiving a handshake response from Restate cluster peers.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**http2-adaptive-window** `boolean | null`

HTTP/2 Adaptive Window: Deprecated and has no effect. Node-to-node connections use fixed HTTP/2 flow-control
windows sized by `data-stream-window-size`.

Since v1.8.0 (deprecated)

**http2-keep-alive-interval** `string` (default: 1s)

HTTP/2 Keep Alive Interval: Interval at which HTTP/2 PING frames are sent on node-to-node
connections, to keep them alive and to detect peers that have become
unreachable.

Applies both to the gRPC channels a node opens to its peers and to the
connections it accepts from them.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**http2-keep-alive-timeout** `string` (default: 3s)

HTTP/2 Keep Alive Timeout: How long to wait for a peer to acknowledge a keep-alive PING on a
node-to-node connection. If the acknowledgement does not arrive within
this timeout, the connection is closed and re-established.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**message-size-limit** `string`

Networking Message Size Limit: Maximum size of a message that can be sent or received over the network.
This applies to communication between Restate cluster nodes, as well as
between Restate servers and external tools such as CLI and management APIs.

Default: `32MiB`

### networking.connect-retry-policy

Connect retry policy: Retry policy to use for internal node-to-node networking.

Configuration file section `[networking.connect-retry-policy]`, environment variable prefix `RESTATE_NETWORKING__CONNECT_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

## worker

Worker options

Configuration file section `[worker]`, environment variable prefix `RESTATE_WORKER__`.

**cleanup-interval** `string` (default: 1h)

Cleanup interval: In order to clean up completed invocations, that is invocations invoked with an idempotency id, or workflows,
Restate periodically scans among the completed invocations to check whether they need to be removed or not.
This interval sets the scan interval of the cleanup procedure. Default: 1 hour.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**cleanup-max-in-flight-purges** `integer`

Cleanup max in-flight purges: The maximum number of purges the cleanup procedure keeps in flight per partition, i.e.
proposed to the log but not yet applied. Higher values let the cleanup procedure purge
completed invocations faster, but can increase tail latencies of other operations in
the system while it's being processed.

If purging is not keeping up with the rate of completed invocations, consider increasing
this value further. This is mostly relevant in deployments with high (100ms+) base write to read
latency baseline (e.g. multi-regional deployments).

Default: 32

Since v1.8.0

**data-service-memory-limit** `string` (default: 256.0 MiB)

Memory limit for incoming partition data service messages (Ingestion).

Default is 256 MiB.

**durability-mode** `oneOf | null`

Durability mode: Every partition store is backed up by a durable log that is used to recover the state of
the partition on restart or failover. The durability mode defines the criteria used
to determine whether a partition is considered fully durable or not at a given point in the
log history. Once a partition is fully durable, its backing log is allowed to be trimmed to
the durability point.

This helps keeping the log's disk usage under control but it forces nodes that need to restore
the state of the partition to fetch a snapshot of that partition that covers the changes up to
and including the "durability point".

Since v1.4.2 (not compatible with earlier versions)

* `"none"` : This disables durability tracking and trimming completely.

Trims and snapshots are still possible if performed manually or by an external
component.

* `"snapshot-and-replica-set"` : In this mode, a partition is considered durable when its state can be restored from
  any of members of the replica-set as well as the latest snapshot.

In other words, do not trim unless **all** replicas cover this Lsn, **and** the snapshot.

\[requires snapshot repository]
DurabilityPoint = Min(Min(ReplicaSetDurablePoints), SnapshotDurablePoint)

* `"balanced"` : In this mode, a partition is considered durable when its state can be restored from
  the snapshot and at least a single replica.

Do not trim unless the Lsn is covered (durably) by *any* of the replicas **and** by
the snapshot. Gives weight to snapshots over the durability of the replica-set but
without ignoring the replica-set completely.

In practice, this means that after a snapshot has been created on the leader, the
system will wait for the nearest memtable flush that cover this Lsn before considering
this Lsn for trimming. If the leader crashes before the memtable flush, we are confident
that the leader will be able to replay the log without any trim-gaps. This is under the
condition that the leader didn't move to another node. In the latter case, the system will
fetch the snapshot as usual.

\[requires snapshot repository]
\[default] if restate-server is in cluster mode.
DurabilityPoint = Min(Max(ReplicaSetDurablePoints), SnapshotDurablePoint)

* `"replica-set-only"` : A partition is considered durable once all nodes in the replica-set are durable, regardless
  of the state of snapshots.

Do not trim unless all replicas durably include this Lsn.

default in standalone-mode with no snapshot repository configured

\[default] if restate-server is in single-node mode.
DurabilityPoint = Min(ReplicaSetDurablePoints)

* `"snapshot-only"` : A partition is durable ONLY after a snapshot has been created.
  \[requires snapshot repository]

Do not trim unless the Lsn is covered by the snapshot with no regard to the
state of durability of the replica-set members.

DurabilityPoint = SnapshotDurablePoint

**internal-queue-length** `integer` (default: 1000)

Internal queue for partition processor communication

**max-command-batch-bytes** `string` (default: 1.0 MiB)

Maximum command batch size (in bytes) for partition processors: Caps the total bytes of Bifrost log records processed opportunistically by the partition processor in
a single iteration. This works in conjunction with `max-command-batch-size` which caps the
number of records. The processor will process the batch when whichever limit is hit first.

Default: 1 MiB

Since v1.7.1

**max-command-batch-size** `integer` (default: 32)

Maximum command batch size (count) for partition processors: The maximum number of Bifrost log records a partition processor will process opportunistically
in a single batch. The larger this value is, the higher the throughput and latency are.

**num-timers-in-memory-limit** `integer | null` (default: null)

Num timers in memory limit: The number of timers in memory limit is used to bound the amount of timers loaded in memory. If this limit is set, when exceeding it, the timers farther in the future will be spilled to disk.

**rule-book-poll-interval** `string` (default: 30s)

Rule book poll interval: How often each node's `RuleBookCache` polls the metadata store
for rule-book updates. The cache also receives push-style
notifications when partition processors apply
`Command::UpsertRuleBook` from Bifrost, so this poll interval
is mainly a fallback for cross-node propagation when no
partition leader has yet observed the change. Default: 30 s.
*Since v1.7.0*

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**trim-delay-interval** `string`

Delayed log trimming: Log trimming normally happens immediately after the partition becomes fully durable. A
partition is considered fully durable when one of the following conditions is met:

1. The partition has been fully replicated and flushed to all nodes in its replica-set.
2. The partition has been snapshotted into the snapshot repository.

The delay interval is the time that Restate will wait before trimming the log *after* the
durability condition is met. It's useful to set this to a non-zero duration if you want to
cover the time needed for the snapshot repository (i.e. S3) to replicate the snapshot
across regions (typically a few seconds, but can be longer. Check S3's guidelines and
cross-region replication SLA for more information).

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**vqueue-metadata-cache-size** `integer`

VQueue metadata cache size: The target number of VQueue metadata entries to cache per partition. Each entry uses
approximately 300 bytes. Active VQueues remain cached even when this target is exceeded.

Default: 32,000 (approximately 9 MiB per partition)

Since v1.8.0

### worker.invoker

Invoker options: Configuration for the HTTP/2 keep-alive mechanism, using PING frames.

Please note: most gateways don't propagate the HTTP/2 keep-alive between downstream and upstream hosts.
In those environments, you need to make sure the gateway can detect a broken connection to the upstream deployment(s).

Configuration file section `[worker.invoker]`, environment variable prefix `RESTATE_WORKER__INVOKER__`.

**abort-timeout** `string` (default: 10m)

Abort timeout: This timer guards against stalled service/handler invocations that are supposed to
terminate. The abort timeout is started after the 'inactivity timeout' has expired
and the service/handler invocation has been asked to gracefully terminate. Once the
timer expires, it will abort the service/handler invocation.

This timer potentially **interrupts** user code. If the user code needs longer to
gracefully terminate, then this value needs to be set accordingly.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**additional-request-headers** `object | null`

Additional request headers: Headers that should be applied to all outgoing requests (HTTP and Lambda).
Defaults to `x-restate-cluster-name: &lt;cluster name&gt;`.

**aws-assume-role-external-id** `string | null` (default: null)

AssumeRole external ID: An external ID to apply to any AssumeRole operations taken by this client.
[https://docs.aws.amazon.com/IAM/latest/UserGuide/id\_roles\_create\_for-user\_externalid.html](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html)
Can be overridden by the `AWS_EXTERNAL_ID` environment variable.

**aws-profile** `string | null` (default: null)

AWS Profile: Name of the AWS profile to select. Defaults to 'AWS\_PROFILE' env var, or otherwise
the `default` profile.

**concurrent-invocations-limit** `integer | null` (default: 24000)

Limit number of concurrent invocations from this node: Number of invocations that can be concurrently processed by this node.

Note: Default has been increased from 1000 to 24000 since v1.8.0. This value
sets the limit on per restate-server node level. In prior versions, the limit
was applied per-partition.

**connect-timeout** `string` (default: 10s)

Connect timeout: How long to wait for a TCP connection to be established before considering
it a failed attempt.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**eager-state-size-limit** `string | null`

Eager state size limit (since v1.7.0): Maximum total size (in bytes) of state entries to send eagerly in the StartMessage.
When the total size of state entries exceeds this limit, only a partial state is sent
and the service will fetch remaining state lazily using GetEagerState commands.

Set to `0` to disable eager state entirely (equivalent to enabling lazy state).

This helps reduce memory pressure on deployments for services with large state.
If unset, defaults to `message-size-limit` (clamped to that value if set higher).

**http-proxy** `string | null` (default: null)

Proxy URI: A URI, such as `http://127.0.0.1:10001`, of a server to which all invocations should be sent, with the `Host` header set to the deployment URI.
HTTPS proxy URIs are supported, but only HTTP endpoint traffic will be proxied currently.
Can be overridden by the `HTTP_PROXY` environment variable.

**http2-idle-connection-timeout** `string` (default: 5m)

HTTP/2 Idle Connection Timeout: How long a connection can be idle before it is evicted
and closed. Set to `0` to disable eviction.

Since: v1.7.0

Default: 5 minutes

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**http2-initial-connection-window-size** `string` (default: 5.0 MiB)

HTTP/2 initial connection window size: Initial connection-level flow-control window (in bytes) for received
data. Should be >= the per-stream window. Valid range: 65535 B .. 2 GiB.

Since: v1.7.0

Default: 5 MiB

**http2-initial-max-send-streams** `integer | null` (default: null)

HTTP/2 Initial Max Send Streams: Sets the initial maximum of locally initiated (send) streams.

This value will be overwritten by the value included in the initial
SETTINGS frame received from the peer as part of a \[connection preface].

Note: This value is capped by \[`Self::streams_per_connection_limit`]

Default: None

**NOTE**: Setting this value to None (default) users the default
recommended value from HTTP2 specs

**http2-initial-stream-window-size** `string` (default: 2.0 MiB)

HTTP/2 initial stream window size: Initial flow-control window (in bytes) for received data on each HTTP/2
stream in the connection pool. Valid range: 65535 B .. 2 GiB.

Since: v1.7.0

Default: 2 MiB

**http2-keep-alive-interval** `string` (default: 40s)

HTTP/2 Keep-alive interval: Sets an interval for HTTP/2 PING frames should be sent to keep a
connection alive. This governs connections to HTTP deployments as well as
to the AWS Lambda API.

`0` disables keep-alive pings entirely. Defaults to `40s`.

You should set this timeout with a value lower than the `abort_timeout`.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**http2-keep-alive-jitter** `number` (default: 0.20000000298023224)

HTTP/2 Keep-Alive Jitter: Fractional jitter added to `http2-keep-alive-interval`, expressed as a fraction
of the interval (e.g. 0.1 = up to +10%, 1.0 = up to +100%).

Applies only to connections to HTTP deployments; pings to the AWS Lambda
API use the exact interval.

Default 0.2 (20% of http2-keep-alive-interval)

**http2-keep-alive-timeout** `string` (default: 20s)

HTTP/2 Keep-Alive Timeout: Sets a timeout for receiving an acknowledgement of the keep-alive ping.
This governs connections to HTTP deployments as well as to the AWS Lambda API.

If the ping is not acknowledged within the timeout, the connection will
be closed.

Only meaningful when `http2-keep-alive-interval` is not zero. Defaults to 20 s.

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**http2-max-frame-size** `string` (default: 16.0 KiB)

HTTP/2 max frame size: Largest HTTP/2 DATA frame payload (in bytes) this client will accept.
Must be within 16 KiB .. 16 MiB (h2 protocol limits).

Since: v1.7.0

Default: 16 KiB

**http2-streams-per-connection-limit** `integer` (default: 128)

Upper bound on the per-connection max-send-streams.

Caps the remote server's advertised `max_concurrent_streams`.

A high number of concurrent streams per connection works
poorly with L4 load balancers because streams are not balanced across
backends.

Since v1.7.0

Default: 128

**inactivity-timeout** `string` (default: 1m)

Inactivity timeout: This timer guards against stalled service/handler invocations. Once it expires,
Restate triggers a graceful termination by asking the service invocation to
suspend (which preserves intermediate progress).

The 'abort timeout' is used to abort the invocation, in case it doesn't react to
the request to suspend.

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**max-awaited-future-depth** `integer` (default: 1000)

Maximum awaited future nesting depth: The maximum nesting depth allowed for the futures (promises) an invocation
awaits on. Restate futures can be composed with combinators (e.g. `all`,
`race`), and each level of composition adds one level of nesting. This limit
bounds how deeply such futures may be nested, guarding against unbounded or
runaway recursion in service code.

When an invocation awaits on (or suspends on) a future whose nesting depth
exceeds this limit, the attempt fails with a "maximum promise recursion
reached" error, and the invocation is then handled according to
`on-future-recursion-limit`.

Default: `1000`.

Since v1.7.3

**memory-limit** `string` (default: 1.5 GiB)

Memory limit: Global memory budget for the invoker, shared across all partitions on this node.
This controls how much memory can be used for in-flight journal entries, state,
and protocol messages between the invoker and service deployments.

To effectively disable memory limiting, set this to a very large value.

Since v1.7.0

**message-size-limit** `string | null`

Message size limit: Maximum size of journal messages that can be received from a service. If a service sends a message
larger than this limit, the invocation will fail.

If unset, defaults to `networking.message-size-limit`. If set, it will be clamped at
the value of `networking.message-size-limit` since larger messages cannot be transmitted
over the cluster internal network.

**message-size-warning** `string` (default: 10.0 MiB)

Message size warning: Threshold to log a warning in case protocol messages coming from a service are larger than the specified amount.

**no-proxy** `string | null` (default: null)

No proxy: IP subnets, addresses, and domain names eg `localhost,restate.dev,127.0.0.1,::1,192.168.1.0/24` that should not be proxied by the http\_proxy.
IP addresses must not have ports, and IPv6 addresses must not be wrapped in '\[]'.
Subdomains are also matched. An entry “\*” matches all hostnames.
Can be overridden by the `NO_PROXY` environment variable, which supports comma separated values.

**per-invocation-initial-memory** `string` (default: 32.0 KiB)

Per-invocation initial memory: Memory (in bytes) reserved from the global memory pool before an invocation
starts. Used for the outbound budget and acts as the minimum reserved floor.

Smaller values allow more concurrent invocations but may cause frequent
round-trips to the global pool. Larger values reduce contention but limit
maximum concurrency.

Since v1.7.0

**per-invocation-memory-limit** `string | null`

Per-invocation memory limit: Maximum memory (in bytes) a single invocation may use per direction (inbound and
outbound). Once an invocation's directional budget reaches this ceiling it must
wait for in-flight data to be consumed or yield back to the scheduler.

If unset, defaults to `message-size-limit`. If set, it will be clamped at
the value of `message-size-limit`.

Since v1.7.0

**request-compression-threshold** `string | null` (default: 4.0 MiB)

Request Compression threshold: Request minimum size to enable compression.
The request size includes the total of the journal replay and its framing using Restate service protocol, without accounting for the json envelope and the base 64 encoding.

Default: 4MB (The default AWS Lambda Limit is 6MB, 4MB roughly accounts for +33% of Base64 and the json envelope).

**request-identity-expiration** `string` (default: 1m)

Request identity expiration leeway: The validity window of the JWTs attached to outgoing requests when a request identity key is
configured. The token's `exp` (expiry) is set to `now + leeway` and its `nbf` (not-before) to
`now - leeway`, so this value bounds both how long a token remains valid and how much clock
skew between this client and the receiving SDK is tolerated.

The minimum expiration leeway is 1s and lower values will be automatically clamped.
Default: 60s.

Since v1.7.0

Non-zero human-readable duration: Non-zero duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D"

**request-identity-private-key-pem-file** `string | null` (default: null)

Request identity private key PEM file: A path to a file, such as "/var/secrets/key.pem", which contains exactly one ed25519 private
key in PEM format. Such a file can be generated with `openssl genpkey -algorithm ed25519`.
If provided, this key will be used to attach JWTs to requests from this client which
SDKs may optionally verify, proving that the caller is a particular Restate instance.

This file is currently only read on client creation, but this may change in future.
Parsed public keys will be logged at INFO level in the same format that SDKs expect.

#### worker.invoker.action-throttling

Action throttling: Configures rate limiting for service actions at the node level.
This throttling mechanism uses a token bucket algorithm to control the rate
at which actions can be processed, helping to prevent resource exhaustion
and maintain system stability under high load.

The throttling limit is shared across all partitions running on this node,
providing a global rate limit for the entire node rather than per-partition limits.
When `unset`, no throttling is applied and actions are processed
without throttling.

Configuration file section `[worker.invoker.action-throttling]`, environment variable prefix `RESTATE_WORKER__INVOKER__ACTION_THROTTLING__`.

**capacity** `integer | null`

Burst capacity: The maximum number of tokens the bucket can hold.
Default to the rate value if not specified.

**rate** `string` *required*

Refill rate: The rate at which the tokens are replenished.

Syntax: `&lt;rate&gt;/&lt;unit&gt;` where `&lt;unit&gt;` is `s|sec|second`, `m|min|minute`, or `h|hr|hour`.
unit defaults to per second if not specified.

#### worker.invoker.gcp-federation

GCP workload identity federation: Enables minting Google ID tokens for deployments that set `workload_identity_provider` in
their `auth` block, using an operator-configured AWS federation role. New federated
registrations also require `experimental-enable-gcp-workload-identity-federation = true`.
Unset by default: deployments requesting this authentication fail registration and mint
with an actionable error until this block is configured.

Since v1.8.0

Configuration file section `[worker.invoker.gcp-federation]`, environment variable prefix `RESTATE_WORKER__INVOKER__GCP_FEDERATION__`.

**aws-role-arn** `string` *required*

AWS role ARN: The AWS IAM role Restate assumes to obtain the AWS identity used to sign the GCP workload
identity federation subject token. This role is shared by every federated deployment in
the process.

**aws-role-session-name** `string` *required*

AWS role session name: The `RoleSessionName` used when assuming `aws_role_arn`. This value alone grants no
isolation between tenants; the role's trust policy controls which sessions may assume it.

#### worker.invoker.invocation-throttling

Invocation throttling: Configures throttling for service invocations at the node level.
This throttling mechanism uses a token bucket algorithm to control the rate
at which invocations can be processed, helping to prevent resource exhaustion
and maintain system stability under high load.

The throttling limit is shared across all partitions running on this node,
providing a global rate limit for the entire node rather than per-partition limits.
When `unset`, no throttling is applied and invocations are processed
without throttling.

Configuration file section `[worker.invoker.invocation-throttling]`, environment variable prefix `RESTATE_WORKER__INVOKER__INVOCATION_THROTTLING__`.

**capacity** `integer | null`

Burst capacity: The maximum number of tokens the bucket can hold.
Default to the rate value if not specified.

**rate** `string` *required*

Refill rate: The rate at which the tokens are replenished.

Syntax: `&lt;rate&gt;/&lt;unit&gt;` where `&lt;unit&gt;` is `s|sec|second`, `m|min|minute`, or `h|hr|hour`.
unit defaults to per second if not specified.

### worker.shuffle

Worker Shuffle Options: Settings for the shared ingestion client used by all workers to
manage record ingestion across partitions (shuffle).

Configuration file section `[worker.shuffle]`, environment variable prefix `RESTATE_WORKER__SHUFFLE__`.

**inflight-memory-budget** `string` *required*

Inflight Memory Budget: Maximum total size of in-flight ingestion requests in bytes.
Tune this to your workload so there are enough unpersisted
requests for efficient batching without exhausting memory.

Defaults to 1 MiB.

**request-batch-size** `string` *required*

Request Batch Size: Maximum size of a single ingestion request batch.
Tune to keep enough requests per batch for
throughput; overly large batches can increase tail latency.

Defaults to 50 KiB.

#### worker.shuffle.connection-retry-policy

Connection retry policy: Retry policy for the ingestion client. It must allow unlimited
retries; if configured with a cap, the client falls back to
retrying every 2 seconds.

Configuration file section `[worker.shuffle.connection-retry-policy]`, environment variable prefix `RESTATE_WORKER__SHUFFLE__CONNECTION_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

### worker.snapshots

Snapshots provide a mechanism for safely trimming the log and efficient bootstrapping of new
worker nodes.

Configuration file section `[worker.snapshots]`, environment variable prefix `RESTATE_WORKER__SNAPSHOTS__`.

**aws-access-key-id** `string | null`

AWS access key: Username for Minio, or consult the service documentation for other S3-compatible stores.

**aws-allow-http** `boolean | null`

Allow insecure HTTP: Allow plain HTTP to be used with the object store endpoint. Required when the endpoint URL
that isn't using HTTPS.

**aws-endpoint-url** `string | null`

Object store API endpoint URL override: When you use Amazon S3, this is typically inferred from the region and there is no need to
set it. With other object stores, you will have to provide an appropriate HTTP(S) endpoint.
If *not* using HTTPS, also set `aws-allow-http` to `true`.

**aws-profile** `string | null`

AWS profile: The AWS configuration profile to use for S3 object store destinations. If you use
named profiles in your AWS configuration, you can replace all the other settings with
a single profile reference. See the \[AWS documentation on profiles]
([https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html)) for more.

**aws-region** `string | null`

AWS region to use with S3 object store destinations. This may be inferred from the
environment, for example the current region when running in EC2. Because of the
request signing algorithm this must have a value. For Minio, you can generally
set this to any string, such as `us-east-1`.

**aws-secret-access-key** `string | null`

AWS secret key: Password for Minio, or consult the service documentation for other S3-compatible stores.

**aws-session-token** `string | null`

AWS session token: This is only needed with short-term STS session credentials.

**destination** `string | null` (default: null)

Snapshot destination URL: Base URL for cluster snapshots, using the `s3://`, `gs://` or `az://` protocol scheme.
S3-compatible object stores must support ETag-based conditional writes. For `gs://`,
credentials come from the environment, as for a `gs://` metadata path.

Default: `None`

**enable-cleanup** `boolean` (default: true)

**export-concurrency-limit** `integer | null`

Export concurrency limit: Maximum number of concurrent partition snapshot exports. This controls how
many partition stores can simultaneously export snapshots to the snapshot
repository.

Default: 4

**num-retained** `integer` (default: 1)

Snapshot retention count: Number of most recent snapshots to retain. Older snapshots will be
deleted automatically. Only snapshots created after this setting is enabled will
be considered for pruning.

Retaining multiple snapshots causes the partition archived LSN to be reported as that of the
oldest retained snapshot. Therefore, retaining multiple snapshots will cause increased disk
usage on log-server nodes.

Default: `1`

Since v1.7.0

**snapshot-interval** `string | null`

Automatic snapshot time interval: A time interval at which partition snapshots will be created. If
`snapshot-interval-num-records` is also set, it will be treated as an additional requirement
before a snapshot is taken. Use both time-based and record-based intervals to reduce the
number of snapshots created during times of low activity.

Snapshot intervals are calculated based on the wall clock timestamps reported by cluster
nodes, assuming a basic level of clock synchronization within the cluster.

This setting does not influence explicitly requested snapshots triggered using `restatectl`.

Default: `None` - automatic snapshots are disabled

Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.

Examples:
"10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

**snapshot-interval-num-records** `integer | null` (default: null)

Automatic snapshot minimum records: Number of log records that trigger a snapshot to be created.

As snapshots are created asynchronously, the actual number of new records that will trigger
a snapshot will vary. The counter for the subsequent snapshot begins from the LSN at which
the previous snapshot export was initiated.

This setting does not influence explicitly requested snapshots triggered using `restatectl`.

Default: `None` - automatic snapshots are disabled

#### worker.snapshots.object-store-retry-policy

Error retry policy: A retry policy for dealing with retryable object store errors.

Configuration file section `[worker.snapshots.object-store-retry-policy]`, environment variable prefix `RESTATE_WORKER__SNAPSHOTS__OBJECT_STORE_RETRY_POLICY__`.

**type** `string` *required*

Selects which shape this section takes. Each value accepts its own
additional options, listed under it below.

* `"none"` : No retry strategy.
* `"fixed-delay"` : Retry with a fixed delay strategy.
* `"exponential"` : Retry with an exponential strategy. The next retry is computed as `min(last_retry_interval * factor, max_interval)`.

Additional options for each `type`:

> [tab] type = "fixed-delay"
>
> **interval** `string` *required*
>
> Interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.

> [tab] type = "exponential"
>
> **factor** `number` *required*
>
> Factor: The factor to use to compute the next retry attempt.
>
> **initial-interval** `string` *required*
>
> Initial Interval: Initial interval for the first retry attempt.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"
>
> **max-attempts** `integer | null`
>
> Max attempts: Number of maximum attempts before giving up. Infinite retries if unset.
>
> **max-interval** `string | null`
>
> Max interval: Maximum interval between retries.
>
> Can be configured using the [`jiff::fmt::friendly`](https://docs.rs/jiff/latest/jiff/fmt/friendly/index.html) format or ISO8601, for example `5 hours`.
>
> Human-readable duration: Duration string in either jiff human friendly or ISO8601 format. Check [https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing](https://docs.rs/jiff/latest/jiff/struct.Span.html#parsing-and-printing) for more details.
>
> Examples:
> "10 hours" or "5 days" or "5d" or "1h 4m" or "P40D" or "0"

### worker.storage

Storage options

Configuration file section `[worker.storage]`, environment variable prefix `RESTATE_WORKER__STORAGE__`.

**rocksdb-block-size** `string | null`

RocksDB block size: Uncompressed block size

Default: 64KiB

**rocksdb-compaction-readahead-size** `string | null`

RocksDB compaction readahead size in bytes: If non-zero, we perform bigger reads when doing compaction. If you're
running RocksDB on spinning disks, you should set this to at least 2MB.
That way RocksDB's compaction is doing sequential instead of random reads.

**rocksdb-disable-auto-memory-reclaimer** `boolean` (default: false)

Disable automatic rocksdb memory reclaimer: When set to `true`, disables RocksDB's memory reclaimer for partition stores.
The reclaimer automatically reclaims memory from memtables when they are no longer
needed, or when the total memtable budget is exceeded. Disabling this will cause
rocksdb to exceed the specific budget under extreme conditions and when flushes
are falling behind. The benefit of disabling the reclaimer is reduce the chances
of rocksdb write stalls under heavy load.

\[Supports configuration hot-reloading]

**rocksdb-disable-compact-on-deletion** `boolean`

Disable compact-on-deletion collector: When set to `true`, disables RocksDB's CompactOnDeletionCollector for partition stores.
The collector automatically triggers compaction when SST files accumulate a high density
of tombstones (deletion markers), helping reclaim disk space after bulk deletions.

This helps control space amplification when invocation journal retention expires and
the cleaner purges completed invocations.

Consider disabling this if you observe frequent unnecessary compactions triggered by
the collector causing performance issues.

**rocksdb-disable-direct-io-for-flush-and-compactions** `boolean | null`

Disable Direct IO for flush and compactions: Use O\_DIRECT for writes in background flush and compactions.

**rocksdb-disable-direct-io-for-reads** `boolean | null`

Disable Direct IO for reads: Files will be opened in "direct I/O" mode
which means that data r/w from the disk will not be cached or
buffered. The hardware buffer of the devices may however still
be used. Memory mapped files are not impacted by these parameters.

**rocksdb-disable-l0-l1-compression** `boolean | null`

Disable L0/L1 SST compression: When false (the default), L0 and L1 SST files are compressed with Lz4.
Higher levels (L2+) always use Zstd regardless of this setting.
Set to true to disable compression for L0/L1, which can improve write
throughput at the cost of higher disk usage since these files are
short-lived and frequently compacted.

Default: false (L0/L1 compression enabled)

**rocksdb-disable-statistics** `boolean | null`

Disable rocksdb statistics collection

Default: False (statistics enabled)

**rocksdb-disable-wal-compression** `boolean | null`

Disable WAL compression: When false (the default), the Write-Ahead Log is compressed with Zstd.
Set to true to disable WAL compression. Only applies when WAL is enabled.

Default: false (WAL compression enabled)

**rocksdb-l0-num-compaction-trigger** `integer` (default: 2)

Number of L0 files to trigger compaction: Sets the number of files to trigger level-0 compaction.

\[default] is 2

Since v1.7.7

**rocksdb-log-keep-file-num** `integer | null` (default: null)

RocksDB log keep file num: Number of info LOG files to keep

Default: 1

**rocksdb-log-level** `string | null` (default: null)

RocksDB log level: Verbosity of the LOG.

Default: "error"

**rocksdb-log-max-file-size** `string | null` (default: null)

RocksDB log max file size: Max size of info LOG file

Default: 64MB

**rocksdb-max-file-size** `string` (default: 64.0 MiB)

Target size for SST files: The target size for sst files. Restate uses this value to internally determine
the number of memtables to keep in memory and how much to merge before flushing.

The value is automatically sanitized to 8 MiB if set to a smaller value.

\[default] is 64 MiB

Since v1.7.0

**rocksdb-max-open-files** `integer | null`

Max open files: Sets the number of open files that can be used by the DB. You may need to
increase this if your database has a large working set. Unset means
files opened are always kept open.

\[default] is unset

Since v1.7.7

**rocksdb-max-sub-compactions** `integer` (default: 1)

The maximum number of subcompactions to run in parallel.

Setting this to 1 means no sub-compactions are allowed.

Default is 1

Since v1.7.5

**rocksdb-memory-budget** `string | null`

The memory budget for rocksdb memtables in bytes

The total is divided evenly across partitions. The server will rebalance the memory budget
periodically depending on the number of running partitions on this node.

If this value is set, it overrides the ratio defined in `rocksdb-memory-ratio`.

**rocksdb-memory-ratio** `number` (default: 0.49000000953674316)

The memory budget for rocksdb memtables as ratio

This defines the total memory for rocksdb as a ratio of all memory available to memtables
(See `rocksdb-total-memtables-ratio` in common). The budget is then divided evenly across
partitions.

**rocksdb-statistics-level** `oneOf | null`

RocksDB statistics level: StatsLevel can be used to reduce statistics overhead by skipping certain
types of stats in the stats collection process.

Default: "except-detailed-timers"

* `"disable-all"` : Disable all metrics
* `"except-histogram-or-timers"` : Disable timer stats, and skip histogram stats
* `"except-timers"` : Skip timer stats
* `"except-detailed-timers"` : Collect all stats except time inside mutex lock AND time spent on
  compression.
* `"except-time-for-mutex"` : Collect all stats except the counters requiring to get time inside the
  mutex lock.
* `"all"` : Collect all stats, including measuring duration of mutex operations.
  If getting time is expensive on the platform to run, it can
  reduce scalability to more threads, especially for writes.

**rocksdb-writable-file-max-buffer-size** `string` (default: 1.0 MiB)

Buffer size used for writing to SST files: Sets the maximum buffer size that is used to write SST files to disk.
Larger values translate to larger IO operations which can be helpful
for slow or network-attached storage devices.

\[default] is 1 MiB

Since v1.7.7


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.