Skip to content

Commit

Permalink
docs: improve docs for preferSnapshotReplicationThreshold
Browse files Browse the repository at this point in the history
(cherry picked from commit 33e1974)
  • Loading branch information
lenaschoenburg authored and github-actions[bot] committed Jan 11, 2022
1 parent 91b8f02 commit c1bcfe7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ public Builder withPartitionDistributor(final PartitionDistributor partitionDist
}

/**
* Sets the threshold for preferring snapshot replication. When a follower lags behind by more
* than the threshold, the leader prefers sending a snapshot over replicating records.
* Sets the threshold for preferring snapshot replication. The unit is <i>number of records</i>
* by which a follower may lag behind before the leader starts to prefer replicating snapshots
* instead of records.
*
* @param preferSnapshotReplicationThreshold the threshold to use
* @return this builder for chaining
Expand Down
4 changes: 2 additions & 2 deletions dist/src/main/config/broker.standalone.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@
# maxQuorumResponseTimeout = 0ms

# Threshold used by the leader to decide between replicating a snapshot or records.
# If a follower lags behind by more than the threshold, the leader will prefer replicating
# snapshots.
# The unit is number of records by which the follower may lag behind before the leader
# prefers replicating snapshots instead of records.
# This setting can also be overridden using the environment variable ZEEBE_BROKER_EXPERIMENTAL_RAFT_PREFERSNAPSHOTREPLICATIONTHRESHOLD.
# preferSnapshotReplicationThreshold = 100

Expand Down
4 changes: 2 additions & 2 deletions dist/src/main/config/broker.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@
# maxQuorumResponseTimeout = 0ms

# Threshold used by the leader to decide between replicating a snapshot or records.
# If a follower lags behind by more than the threshold, the leader will prefer replicating
# snapshots.
# The unit is number of records by which the follower may lag behind before the leader
# prefers replicating snapshots instead of records.
# This setting can also be overridden using the environment variable ZEEBE_BROKER_EXPERIMENTAL_RAFT_PREFERSNAPSHOTREPLICATIONTHRESHOLD.
# preferSnapshotReplicationThreshold = 100

Expand Down

0 comments on commit c1bcfe7

Please sign in to comment.