Skip to content

Commit b2a218d

Browse files
authored
[improve](cloud) Shuffle the partitions to reduce committing conflicts (#59212)
1 parent d4c38d1 commit b2a218d

File tree

3 files changed

+185
-178
lines changed

3 files changed

+185
-178
lines changed

cloud/src/common/config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ CONF_Bool(enable_cloud_txn_lazy_commit, "true");
305305
CONF_Int32(txn_lazy_commit_rowsets_thresold, "1000");
306306
CONF_Int32(txn_lazy_commit_num_threads, "8");
307307
CONF_mInt64(txn_lazy_max_rowsets_per_batch, "1000");
308+
CONF_mBool(txn_lazy_commit_shuffle_partitions, "true");
309+
CONF_Int64(txn_lazy_commit_shuffle_seed, "0"); // 0 means generate a random seed
308310
// max TabletIndexPB num for batch get
309311
CONF_Int32(max_tablet_index_num_per_batch, "1000");
310312
CONF_Int32(max_restore_job_rowsets_per_batch, "1000");

0 commit comments

Comments
 (0)