Appearance
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
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
management | object | — | — | Group of settings: management. | Accounts and roles |
management.trusted_networks | list of string | — | at most 1000 entries (CIDR) | trusted_networks may connect to the management listener. | Accounts and roles |
High availability
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
ha | object | — | — | Group of settings: ha. | High availability |
ha.virtual_addresses | list 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.interface | string | — | — | interface carries the virtual addresses (address_mode linux). | High availability |
ha.address_mode | string | linux 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_interval | duration | 200ms | — | Sets heartbeat interval. | High availability |
ha.peer_timeout | duration | 1s | — | Sets peer timeout. | High availability |
ha.failback | boolean | — | — | failback gives the role back to the node with the better (lower) priority when it is healthy again. | High availability |
ha.reachability | list 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_port | integer | the 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.announce | object | — | — | announce is the burst of gratuitous ARP / unsolicited neighbour advertisements sent on takeover. | High availability |
ha.announce.count | integer | 3 | — | Sets count. | High availability |
ha.announce.interval | duration | 200ms | — | Time between runs or checks. | High availability |
ha.lease | duration | 3s | — | 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