StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
9.17k stars 1.82k forks source link

[Enhancement] adjust drop_tablet_worker_count to half of the core number by default (backport #52246) #53124

Closed mergify[bot] closed 3 days ago

mergify[bot] commented 3 days ago

Why I'm doing:

In shared data mode, file gc relies on the efficiency of the delete file thread pool. The default thread pool size is too small, which causes the delete file task queue to accumulate easily under high ingestion concurrency or under large ingestion, resulting in slowing donw vacuum task.

What I'm doing:

In the pr, we slightly increase the delete file thread pool size into half the cpu core (config::drop_tablet_worker_count <= 0) If user change the config::drop_tablet_worker_count <= 0 at runtime, the thread pool size will also be modified as half the cpu core.

Fixes #issue

What type of PR is this:

Does this PR entail a change in behavior?

If yes, please specify the type of change:

Checklist:

Bugfix cherry-pick branch check:

What I'm doing:

In the pr, we slightly increase the delete file thread pool size into half the cpu core (config::drop_tablet_worker_count <= 0) If user change the config::drop_tablet_worker_count <= 0 at runtime, the thread pool size will also be modified as half the cpu core.

Fixes #issue

What type of PR is this:

Does this PR entail a change in behavior?

If yes, please specify the type of change:

Checklist: