Skip to main content
Version: 2.14 (latest)

cluster

Hot Reloadable

Configuration for clustering a set of servers.

Properties

NameDescriptionTypeDefaultReloadable
nameName of the cluster.string-Yes
hostHost for cluster route connections.string-Yes
portPort for cluster route connections.integer6222Yes
listenstring-Yes
tlsTLS configuration for securing cluster connections. verify is always enabled and cert_file is used for both client and server for mutual TLS.object-Yes
advertiseAdvertised cluster <host>:<port>. Useful for cluster setups since behind NAT. When using TLS this is important to set to control the hostname that clients will use when discovering the route so TLS hostname verification does not fail.string-Yes
no_advertiseIf true, the server will not send or gossip its client URLs to other servers in the cluster, nor will it tell its clients about other servers' client URLs.boolean-Yes
routesA list of server URLs to cluster with. Self-routes are ignored. Should authentication via token or username/password be required, specify them as part of the URL.string-Yes
connect_retriesAfter how many failed connect attempts to give up establishing a connection to a discovered route. Default is 0, do not retry. When enabled, attempts will be made once a second. This, does not apply to explicitly configured routes.integer0Yes
authorizationAuthorization map for configuring cluster routes. When a single username/password is used, it defines the authentication mechanism this server expects, and how this server will authenticate itself when establishing a connection to a discovered route. This will not be used for routes explicitly listed in routes and therefore have to be provided as part of the URL. With this authentication mode, either use the same credentials throughout the system or list every route explicitly on every server. If the tls configuration map specifies verify_and_map only, provide the expected username. Here different certificates can be used, but they have to map to the same username. The authorization map also allows for timeout which is honored but users and token configuration are not supported and will prevent the server from starting. The permissions block is ignored.object-Yes
pool_sizeThe size of the connection pool used to distribute load across non-pinned accounts.integer3Yes
accountsA list of accounts to pin, each of which will have their own dedicated route connection between servers. Note, this is not take up a connection from the pool.string-Yes
compressionDefines the type compression mode to use between routes. If set to on, it will use the s2_fast compression.(multiple)-Yes