Reducing canCommit wait to avoid bigger spikes on pendinng compaction bytes (#10943)

This commit is contained in:
neethuhaneesha 2023-09-28 13:03:25 -07:00 committed by GitHub
parent 5b50634b62
commit 0ec9b4d96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -505,8 +505,8 @@ void ServerKnobs::initialize(Randomize randomize, ClientKnobs* clientKnobs, IsSi
// Can commit will delay ROCKSDB_CAN_COMMIT_DELAY_ON_OVERLOAD seconds for
// ROCKSDB_CAN_COMMIT_DELAY_TIMES_ON_OVERLOAD times, if rocksdb overloaded.
// Set ROCKSDB_CAN_COMMIT_DELAY_TIMES_ON_OVERLOAD to 0, to disable
init( ROCKSDB_CAN_COMMIT_DELAY_ON_OVERLOAD, 1 );
init( ROCKSDB_CAN_COMMIT_DELAY_TIMES_ON_OVERLOAD, 5 );
init( ROCKSDB_CAN_COMMIT_DELAY_ON_OVERLOAD, 0.2 );
init( ROCKSDB_CAN_COMMIT_DELAY_TIMES_ON_OVERLOAD, 20 );
init( ROCKSDB_COMPACTION_READAHEAD_SIZE, 32768 ); // 32 KB, performs bigger reads when doing compaction.
init( ROCKSDB_BLOCK_SIZE, 32768 ); // 32 KB, size of the block in rocksdb cache.
init( ENABLE_SHARDED_ROCKSDB, false );

View File

@ -440,7 +440,7 @@ public:
int64_t SHARD_HARD_PENDING_COMPACT_BYTES_LIMIT;
int64_t ROCKSDB_CAN_COMMIT_COMPACT_BYTES_LIMIT;
bool ROCKSDB_PARANOID_FILE_CHECKS;
int ROCKSDB_CAN_COMMIT_DELAY_ON_OVERLOAD;
double ROCKSDB_CAN_COMMIT_DELAY_ON_OVERLOAD;
int ROCKSDB_CAN_COMMIT_DELAY_TIMES_ON_OVERLOAD;
bool ROCKSDB_DISABLE_WAL_EXPERIMENTAL;
int64_t ROCKSDB_WAL_TTL_SECONDS;