Skip to content

Management and high availability Since v0.2 ​

These settings apply to every node. management limits who may reach the management listener; ha configures a pair.

For the structure of the file, see Configuration file. Defaults of limits are also listed in Limits and defaults. A dash in Default means the code sets no default value (the setting is empty or off).

Management ​

KeyTypeDefaultAllowed values / rangeMeaningGuide page
managementobject——Group of settings: management.Accounts and roles
management.trusted_networkslist of string—at most 1000 entries (CIDR)trusted_networks may connect to the management listener.Accounts and roles

High availability ​

KeyTypeDefaultAllowed values / rangeMeaningGuide page
haobject——Group of settings: ha.High availability
ha.virtual_addresseslist of string——virtual_addresses are the addresses clients use (with prefix length, e.g., 192.0.2.10/24), held by the active node.High availability
ha.interfacestring——interface carries the virtual addresses (address_mode linux).High availability
ha.address_modestringlinux with virtual addresses, else external—address_mode is how the active role reaches clients: linux (this product adds the addresses and announces them) or external (a load balancer, cloud floating IP or keepalived follows the role, read from the node's role...High availability
ha.heartbeat_intervalduration200ms—Sets heartbeat interval.High availability
ha.peer_timeoutduration1s—Sets peer timeout.High availability
ha.failbackboolean——failback gives the role back to the node with the better (lower) priority when it is healthy again.High availability
ha.reachabilitylist of string——reachability lists TCP targets (host:port, typically the gateway or a core service); a node that reaches none of them is not eligible, so a node cut off from the network does not take over.High availability
ha.probe_portintegerthe first listener's port—probe_port is the port on the virtual addresses checked before a takeover when the peer cannot be reached: if the address still answers, the active node is alive and only the peer link failed, so the standby does not...High availability
ha.announceobject——announce is the burst of gratuitous ARP / unsolicited neighbour advertisements sent on takeover.High availability
ha.announce.countinteger3—Sets count.High availability
ha.announce.intervalduration200ms—Time between runs or checks.High availability
ha.leaseduration3s—lease is the kernel lifetime of a held virtual address, renewed on every heartbeat: if the process dies, the kernel removes the address by itself.High availability

Example ​

yaml
management:
  trusted_networks: [10.10.0.0/24]
ha:
  address_mode: external
  heartbeat_interval: 200ms
  peer_timeout: 1s