Skip to main content
Version: 2.11

leafnodes

Aliases: `leaf`

Configuration for setting up leaf node connections.

Properties

Incoming Connections

A server that has been configured to accept connections from one or more leaf nodes. This would be the hub in a hub-and-spoke topology, for example.

NameDescriptionTypeDefaultReloadable
hostHost name the server will listen on for incoming leaf node connections.string-Yes
portPort the server will listen for incoming leaf node connections.integer7422Yes
listenstring-Yes
tlsTLS configuration for securing leaf node connections.object-Yes
advertiseHostport to advertise how this sever be contacted by leaf nodes. This is useful for setups with a NAT.string-Yes
no_advertiseIf true, the server will not be advertised to leaf nodes.booleanfalseYes
authorizationAuthorization scoped to accepting leaf node connections.object-Yes
min_versionThe minimum server version required of the connecting leaf node. This must be at least version 2.8.0.string-Yes
compressionDefines the compression mode to use for an incoming leafnode connection. If set to on, it will use the s2_auto.(multiple)-Yes

Outgoing Connections

A server that has been configured to connect to another server configured to accept leaf node connections. In a hub-and-spoke topology, this would be the spoke, typically in a remote location or on an edge device.

NameDescriptionTypeDefaultReloadable
remotesList of entries specifiying servers where the leaf node client connection can be made.object-No
reconnectInterval in seconds at which reconnect attempts to a remote server are made.integer-Yes