Skip to content

Commit c8f0abd

Browse files
authored
chore: tune replication/migration settings (#5779)
1 parent f82ccd9 commit c8f0abd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/server/journal/journal_slice.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "base/logging.h"
1717
#include "server/journal/serializer.h"
1818

19-
ABSL_FLAG(uint32_t, shard_repl_backlog_len, 1 << 10,
19+
ABSL_FLAG(uint32_t, shard_repl_backlog_len, 8192,
2020
"The length of the circular replication log per shard");
2121

2222
namespace dfly {

src/server/journal/streamer.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ using namespace facade;
2828
ABSL_FLAG(uint32_t, replication_timeout, 30000,
2929
"Time in milliseconds to wait for the replication writes being stuck.");
3030

31-
ABSL_FLAG(uint32_t, replication_stream_output_limit, 64_KB,
31+
ABSL_FLAG(uint32_t, replication_stream_output_limit, 1_MB,
3232
"Time to wait for the replication output buffer go below the throttle limit");
3333

34-
ABSL_FLAG(uint32_t, migration_buckets_serialization_threshold, 100,
34+
ABSL_FLAG(uint32_t, migration_buckets_serialization_threshold, 10,
3535
"The Number of buckets to serialize on each iteration before yielding");
36-
ABSL_FLAG(uint32_t, migration_buckets_sleep_usec, 100,
36+
ABSL_FLAG(uint32_t, migration_buckets_sleep_usec, 500,
3737
"Sleep time in microseconds after each time we reach "
3838
"migration_buckets_serialization_threshold");
3939

0 commit comments

Comments
 (0)