Skip to content

feat(kperf): support exact count and configurable batch size - #1312

Open
xinWeiWei24 wants to merge 3 commits into
v2from
xinwei/configmap_v2_v2
Open

feat(kperf): support exact count and configurable batch size#1312
xinWeiWei24 wants to merge 3 commits into
v2from
xinwei/configmap_v2_v2

Conversation

@xinWeiWei24

Copy link
Copy Markdown
Collaborator

Allow callers to specify the exact object count and batch size while preserving the existing GiB-based ingestion behavior.

Drop the -first/-retry name suffix so each batch uses a stable set name
"<name>-b<batch>", making object names predictable for kperf load
profiles to target by prefix. Replace the rename-based retry (which left
partial objects from the failed attempt as orphans) with a bounded retry
loop that deletes the partial batch before re-creating, so each batch
ends up with exactly COUNT objects and accurate progress accounting.
Allow callers to specify the exact object count and batch size while preserving the existing GiB-based ingestion behavior.
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

For reviewers only: reply /run-tf-integration to trigger the terraform integration pipeline before approving the PR.

# Each batch uses the set name "<name>-b<batch>", so object names are predictable and
# kperf load profiles can target a batch by its prefix.
RunKperfDataIngest = lambda dataType: str, namespace: str, name: str, totalGiB: str, qps: int = DEFAULT_QPS, burst: int = DEFAULT_BURST, size: int = DEFAULT_SIZE_BYTES, groupSize: int = DEFAULT_GROUP_SIZE -> steps.Step {
RunKperfDataIngest = lambda dataType: str, namespace: str, name: str, totalGiB: str = "0", qps: int = DEFAULT_QPS, burst: int = DEFAULT_BURST, size: int = DEFAULT_SIZE_BYTES, groupSize: int = DEFAULT_GROUP_SIZE, total: int = 0, batchSize: int = 2000 -> steps.Step {

@wonderyl Lei Yao (wonderyl) Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should disable totalGiB and total are both set?

# Each batch uses the set name "<name>-b<batch>", so object names are predictable and
# kperf load profiles can target a batch by its prefix.
RunKperfDataIngest = lambda dataType: str, namespace: str, name: str, totalGiB: str, qps: int = DEFAULT_QPS, burst: int = DEFAULT_BURST, size: int = DEFAULT_SIZE_BYTES, groupSize: int = DEFAULT_GROUP_SIZE -> steps.Step {
RunKperfDataIngest = lambda dataType: str, namespace: str, name: str, totalGiB: str = "0", qps: int = DEFAULT_QPS, burst: int = DEFAULT_BURST, size: int = DEFAULT_SIZE_BYTES, groupSize: int = DEFAULT_GROUP_SIZE, total: int = 0, batchSize: int = 2000 -> steps.Step {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move total and totalGiB closer, so that reader can easily spot them together.

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