ldb
LDB supports different CRDT replication models:
- state-based
- delta-state-based
- pure-op-based
Configuration
- LDB_MODE:
state_baseddelta_basedpure_op_based
- LDB_DRIVEN_MODE: see this
for details on
state_drivenanddigest_drivenalgorithmsnonestate_drivendigest_driven
- LDB_STATE_SYNC_INTERVAL: in
state_basedanddelta_basedmodes, state is propagated everyXmilliseconds - LDB_EVICTION_ROUND_NUMBER: evict a peer from the ack map if no
ack is received from this peer after
Xrounds of state synchronization (where messages where sent to this peer). If this value is-1, peer eviction is not performed - LDB_REDUNDANT_DGROUPS: when set to
true, removes redundant state that may be present in the received delta-groups, using join-decompositions - LDB_DGROUP_BACK_PROPAGATION: when set to
true, avoids back-propagation of delta-groups - LDB_METRICS: metrics are recorded if
true
|||||
|---------------------------------|-------------------------------------------|-------------------------------------------|-----------------|
| LDB_MODE | state_based | delta_based | pure_op_based |
| LDB_DRIVEN_MODE | none / state_driven / digest_driven | none / state_driven / digest_driven | NA |
| LDB_STATE_SYNC_INTERVAL | 0.. | 0.. | NA |
| LDB_EVICTION_ROUND_NUMBER | NA | -1.. | NA |
| LDB_REDUNDANT_DGROUPS | NA | true / false | NA |
| LDB_DGROUP_BACK_PROPAGATION | NA | true / false | NA |
Defaults
- LDB_MODE:
state_based - LDB_DRIVEN_MODE:
none - LDB_STATE_SYNC_INTERVAL: 1000
- LDB_EVICTION_ROUND_NUMBER: -1
- LDB_REDUNDANT_DGROUPS:
false - LDB_DGROUP_BACK_PROPAGATION:
false - LDB_METRICS:
false