Skip to content

Run distributed-plan sanitizer stateless on runner with more mem instead of cutting concurrency - #111789

Merged
maxknv merged 2 commits into
masterfrom
ci-distributed-plan-large-runner
Jul 25, 2026
Merged

maxknv merged 2 commits into
masterfrom
ci-distributed-plan-large-runner

Conversation

@maxknv

@maxknv maxknv commented Jul 24, 2026 •

Copy link
Copy Markdown
Member

Reimplements #110574. That PR fixed the MEMORY_LIMIT_EXCEEDED (Code 241) flood in Stateless tests (amd_asan_ubsan, distributed plan, parallel) by cutting the job's test concurrency to 0.22 * CPU (7 workers on the 32-vCPU runner), giving it a higher 0.75 memory ratio, and raising its timeout to 3.5h. That kept the job green but made it much slower, and its own tuning runs showed the concurrency lever barely moved peak server RSS anyway (43.01 -> 41.71 GiB across 11 -> 7 workers) - the ASan RSS baseline accumulates with work done, not concurrency.

Fix it the right way: move the job from AMD_MEDIUM_CPU (32 vCPU, 64 GiB) to AMD_LARGE (same 32 vCPU, but 128 GiB RAM). With double the RAM the sanitizer max_server_memory_usage_to_ram_ratio cap of 0.7 sits well above the job's aggregate RSS at full concurrency, so the suite runs at the default 0.6 * CPU workers and the default 2.5h timeout without overrunning the cap.

  • ci/defs/job_configs.py: runs_on AMD_MEDIUM_CPU -> AMD_LARGE; drop the 3.5h timeout override (restore the default).
  • ci/jobs/functional_tests.py: drop the distributed-plan nproc concurrency cut and the is_distributed_plan plumbing; drop the distributed-plan 0.75 memory-ratio special case (all sanitizer runs keep the 0.7 cap).
  • Regenerated .github/workflows/*.yml.

The general sanitizer 0.7 memory cap and the all-config-tree set_memory_ratio / bugfix-validation handling from #110574 stay - those are the host-OOM (Server died) fix, not the slowness cause.

Related: #110574
Related: #108689

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Version info

  • Merged into: 26.8.1.118 (included in 26.8 and later)

maxknv and others added 2 commits July 24, 2026 15:15
… cutting concurrency

#110574 fixed the `MEMORY_LIMIT_EXCEEDED` (Code 241) flood in "Stateless
tests (amd_asan_ubsan, distributed plan, parallel)" by cutting the job's
test concurrency to `0.22 * CPU` (7 workers on the 32-vCPU runner), giving
it a slightly higher `0.75` memory ratio, and raising its `timeout` to
3.5h. That kept the job green but made it much slower, and the tuning
showed the concurrency lever barely moved peak server RSS anyway (43.01 ->
41.71 GiB across 11 -> 7 workers), because the ASan RSS baseline
accumulates with work done, not concurrency.

Fix it the right way instead: move the job from `AMD_MEDIUM_CPU` (32 vCPU,
64 GiB) to `AMD_LARGE` (same 32 vCPU, but 128 GiB RAM). With double the
RAM the sanitizer `max_server_memory_usage_to_ram_ratio` cap of `0.7` sits
well above the job's aggregate RSS at full concurrency, so the suite runs
at the default `0.6 * CPU` workers and the default 2.5h timeout without
overrunning the cap.

- `ci/defs/job_configs.py`: `runs_on` `AMD_MEDIUM_CPU` -> `AMD_LARGE`;
  drop the 3.5h `timeout` override (restore the default).
- `ci/jobs/functional_tests.py`: drop the distributed-plan `nproc` cut and
  the `is_distributed_plan` plumbing; drop the distributed-plan `0.75`
  memory-ratio special case (all sanitizer runs keep the `0.7` cap).

The general sanitizer `0.7` memory cap and the all-config-tree
`set_memory_ratio` / bugfix-validation handling from #110574 stay - those
are the host-OOM ("Server died") fix, not the slowness cause.

Related: #110574
Related: #108689

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e5c71f4]

Summary: ✅


AI Review

Summary

This PR moves the amd_asan_ubsan distributed-plan parallel stateless lane from AMD_MEDIUM_CPU to AMD_LARGE, removes the temporary 0.22 * CPU / 0.75 special-case tuning from functional_tests.py, and regenerates the affected workflows. I did not find a correctness or configuration-consistency bug in the diff.

Missing context / blind spots
  • ⚠️ As reviewed on July 24, 2026, the PR CI was still pending, so the updated Stateless tests (amd_asan_ubsan, distributed plan, parallel) lane had not yet completed on pr-amd-large. A completed run of that lane would close the evidence gap on the restored default concurrency and timeout.
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 24, 2026
@maxknv
maxknv requested a review from alexey-milovidov July 24, 2026 13:19
@maxknv maxknv changed the title Run distributed-plan sanitizer stateless on a LARGE runner instead of cutting concurrency Run distributed-plan sanitizer stateless on runner with more mem instead of cutting concurrency Jul 24, 2026
@maxknv
maxknv enabled auto-merge July 24, 2026 17:15
@maxknv
maxknv disabled auto-merge July 24, 2026 19:35
@maxknv
maxknv enabled auto-merge July 24, 2026 19:36
@maxknv
maxknv added this pull request to the merge queue Jul 25, 2026
Merged via the queue into master with commit bba194e Jul 25, 2026
178 of 179 checks passed
@maxknv
maxknv deleted the ci-distributed-plan-large-runner branch July 25, 2026 09:53
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 25, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…lan-large-runner

Run distributed-plan sanitizer stateless on runner with more mem instead of cutting concurrency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants