Skip to content

ClickHouse Cloud: collect the concurrent QPS - #2610

Merged
alexey-milovidov merged 4 commits into
mainfrom
cloud-concurrent-qps
Oct 16, 2026
Merged

alexey-milovidov merged 4 commits into
mainfrom
cloud-concurrent-qps

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Run the same concurrent QPS test as for other systems (10 connections, 600 s, the seeded query order of bench_concurrent_qps in lib/benchmark-common.sh) on ClickHouse Cloud services after the main run, and record concurrent_qps and concurrent_error_ratio in the results.

  • concurrent-qps.py (new): the test itself, as threads in one Python process (standard library only), each connection keeping its HTTPS connection open. The shared shell version starts several processes and a new TLS connection per query; with all services tested at once from one runner, the runner became the bottleneck (fast services stuck at about 3 QPS regardless of replicas). Same query order and same counting as the shell version; wait_end_of_query=1 makes a query that fails partway through return an HTTP error. There is no watchdog, since a Cloud service can't be restarted from here.
  • benchmark.sh: runs it after run.sh. The data size stays on the last line.
  • collect-results.sh: puts the two values into the JSON when they are present and not null.

Tested concurrent-qps.py against a local HTTPS server (about 870 QPS from 10 kept-open connections at under half a core; a failing query and a wrong password are counted as errors), and checked that the permutations match the shared ones. The first Cloud run used the shell client; a second run with the new client is in progress. Each service stays up about 10 minutes longer.

🤖 Generated with Claude Code

Run the shared concurrent QPS test from lib/benchmark-common.sh after the
main run, and put its result into the JSON. The queries are sent with curl
over HTTPS, because all services are benchmarked at the same time from a
single machine, and hundreds of concurrent clickhouse-client processes would
overload it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ alexey-milovidov
❌ github


github seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

The shell version of the test starts several processes and a new TLS
connection for every query. With all services tested at the same time
from one runner, the runner was the bottleneck: services with fast
queries reached only about 3 QPS regardless of the number of replicas,
and the highest numbers came from the services that ran last.

concurrent-qps.py runs the same test (10 connections, 600 s, the same
seeded query order and counting) as threads in one process, each keeping
its HTTPS connection open.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

@alexey-milovidov
alexey-milovidov merged commit 1ecbba9 into main Oct 16, 2026
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