Skip to content

feat(loader): cap default insert workers to min(cpu, 4)#767

Merged
XuanYang-cn merged 1 commit intozilliztech:mainfrom
XuanYang-cn:ajust-max-worker
Apr 24, 2026
Merged

feat(loader): cap default insert workers to min(cpu, 4)#767
XuanYang-cn merged 1 commit intozilliztech:mainfrom
XuanYang-cn:ajust-max-worker

Conversation

@XuanYang-cn
Copy link
Copy Markdown
Collaborator

ConcurrentInsertRunner previously defaulted to mp.cpu_count(),
spawning one worker per CPU when load_concurrency was unset.
On high-core hosts this opens many parallel client connections,
saturating modest DBs / network paths and yielding worse
load throughput than a smaller, steadier worker count.

Cap the unset default to min(cpu_count, 4). Explicit
load_concurrency from CLI / config / submitTask still wins.

ConcurrentInsertRunner previously defaulted to mp.cpu_count(),
spawning one worker per CPU when load_concurrency was unset.
On high-core hosts this opens many parallel client connections,
saturating modest DBs / network paths and yielding worse
load throughput than a smaller, steadier worker count.

Cap the unset default to min(cpu_count, 4). Explicit
load_concurrency from CLI / config / submitTask still wins.

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: XuanYang-cn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@XuanYang-cn XuanYang-cn merged commit a424b02 into zilliztech:main Apr 24, 2026
4 checks passed
@XuanYang-cn XuanYang-cn deleted the ajust-max-worker branch April 24, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants