gruezi.yaml
gruezi uses YAML configuration.
Mode selection
yaml
mode: haor:
yaml
mode: kvCurrent meaning:
mode: ha: implemented path for two-node high availabilitymode: 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-meKV 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:9377The KV shape is documented, but the current site should treat it as planned work rather than deployed capability.