Skip to content

Commit

Permalink
[improve] [bookie] Enable reorder read sequence for bk client by defa…
Browse files Browse the repository at this point in the history
…ult (#21652)

Co-authored-by: Jiwe Guo <[email protected]>
  • Loading branch information
hangc0276 and Technoboy- authored Dec 4, 2023
1 parent aa3fcc9 commit 0300019
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions conf/bookkeeper.conf
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ rereplicationEntryBatchSize=100
# Enable/disable having read operations for a ledger to be sticky to a single bookie.
stickyReadSEnabled=true

# Enable/disable reordering read sequence on reading entries.
reorderReadSequenceEnabled=true

# Auto-replication
# The grace period, in milliseconds, that the replication worker waits before fencing and
# replicating a ledger fragment that's still being written to upon bookie failure.
Expand Down
2 changes: 1 addition & 1 deletion conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ bookkeeperClientMinNumRacksPerWriteQuorum=2
bookkeeperClientEnforceMinNumRacksPerWriteQuorum=false

# Enable/disable reordering read sequence on reading entries.
bookkeeperClientReorderReadSequenceEnabled=false
bookkeeperClientReorderReadSequenceEnabled=true

# Enable bookie isolation by specifying a list of bookie groups to choose from. Any bookie
# outside the specified groups will not be used by the broker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ The delayed message index time step(in seconds) in per bucket snapshot segment,
@FieldContext(
category = CATEGORY_STORAGE_BK,
doc = "Enable/disable reordering read sequence on reading entries")
private boolean bookkeeperClientReorderReadSequenceEnabled = false;
private boolean bookkeeperClientReorderReadSequenceEnabled = true;
@FieldContext(
category = CATEGORY_STORAGE_BK,
required = false,
Expand Down

0 comments on commit 0300019

Please sign in to comment.