Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 Samza provides build-in support for persistent state store, backed by RocksDB on the disk and changelog in Kafka. There are many possible usage scenarios that users want to have various different features to be enabled. This guide attempts to give a general suggestion to various configuration of RocksDB state store in different application scenarios.

Supported Persistent KeyValue Store Use Cases

changelogTTLHost-affinityDescription
NoNoNoNot recoverable local state stores, will lose all data when container restarted
YesNoNoRecoverable local state stores, keeps old data, re-bootstrap when container restarts
NoYesNoNot recoverable local state stores, expiring old data, will lose all data when container restarted
YesYesNoRecoverable local state stores, expiring old data, re-bootstrap when container restarts (see note for TTL)
NoNoYes(UNSUPPORTED) Not recoverable local state stores, re-use local state with best-effort when host-affinity succeeds, otherwise losing all data
YesNoYesRecoverable local state stores, keeps old data, quick-recovery when host-affinity succeeds
NoYesYes(UNSUPPORTED) Not recoverable local state stores, expiring old data, re-use local state with best-effort when host-affinity succeeds, otherwise losing all data
YesYesYesRecoverable local state stores, expiring old data, quick-recovery when host-affinity succeeds (see note for TTL)

...