Skip to content

gruezi.yaml

gruezi uses YAML configuration.

Mode selection

yaml
mode: ha

or:

yaml
mode: kv

Current meaning:

  • mode: ha: implemented path for two-node high availability
  • mode: kv: future distributed key-value direction

HA example

yaml
mode: ha
node:
  id: node-a
ha:
  bind: 0.0.0.0:9375
  interface: eth0
  group_id: cluster-ha
  addresses: [10.0.0.10/24, fd00::10/64]
  peer: 10.0.0.2:9375
  protocol_version: 1
  priority: 100
  preempt: true
  advert_interval_ms: 1000
  dead_factor: 3
  hold_down_ms: 3000
  jitter_ms: 100
  auth:
    mode: shared_key
    key: change-me

KV example

yaml
mode: kv
node:
  id: node-a
kv:
  role: voter
  listen_client: 0.0.0.0:9376
  listen_peer: 0.0.0.0:9377
  data_dir: /var/lib/gruezi
  initial_cluster:
    - node-a=http://10.0.0.1:9377
    - node-b=http://10.0.0.2:9377
    - witness=http://10.0.0.3:9377

The KV shape is documented, but the current site should treat it as planned work rather than deployed capability.

Released under the BSD-3-Clause License