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 underrestate-data/*.sock. - Advertised addresses are automatically detected based on your network configuration. You no longer need to explicitly set
advertised-addressfor most deployments. - The
metadata-client.addressesfield is now optional for single-node setups.
restate.toml
Configuration Reference
Each option shows itstoml: key, the full path to write in your configuration file, and, for every option that has one, the env: environment variable that overrides it.
General options
Options set at the root of the configuration file, above any[section] header.
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 neededExamples:
“http//127.0.0.1:6669/” or “https://my-host/” or “unix:/data/restate-data/tokio.sock”Hostname to advertise for this service
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