starrocks icon indicating copy to clipboard operation
starrocks copied to clipboard

Tablet balancing in high-frequency load scenarios might lead to increased transaction publishing latency

Open avalon5666 opened this issue 1 year ago • 1 comments

Enhancement

In high-frequency load scenarios, newly cloned tablets are likely to have missing versions. If the repair task remains pending, it will increase the transaction publishing latency. There are two specific manifestations:

  1. Missing versions in newly cloned tablet may cause a single BE publish version task to be blocked. Concurrent balancing across multiple BEs might lead to other tablets failing to reach quorum (currently alleviated by setting report_tablet_interval_seconds=1)
  2. Transaction publishing requires waiting for all tablets to complete or until the timeout threshold is reached (currently alleviated by setting quorum_publish_wait_time_ms=0)

​​The queuing of version repair tasks is attributed to:​​

  1. Full cloning being a time-consuming operation
  2. Saturation of clone slots

Optimization suggestions:

  1. Allocate dedicated slot resources for version repair tasks to avoid resource contention with full cloning operations
  2. Perform version checks and repairs​​ after tablet cloning completes

avalon5666 avatar May 17 '25 03:05 avalon5666

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

github-actions[bot] avatar Nov 17 '25 11:11 github-actions[bot]