Capacity and benchmark¶
This page explains how to measure what your QubeSight installation can ingest, how the product recommends resources for a target rate, how the ingest pipeline behaves when it is overloaded, and how ClickHouse memory adapts to the environment.
Community Enterprise
The Capacity tab is available in both editions to administrators.
The ingest pipeline and its limits¶
flowchart LR
S[Senders] -->|TCP syslog| V[Vector: parse]
F[Filebeat] -->|Kafka| R[(Redpanda: disk)]
V -->|disk buffer| R
R --> W[Worker: decode, SQL parse, write]
E[Event Hub / Kinesis] --> W
W --> C[(ClickHouse)]
Throughput is decided by the narrowest stage:
- Worker. One worker is a single serial consumer loop. Its ceiling does not rise by adding CPU to the worker or to ClickHouse. Throughput scales with the number of Kafka partitions and worker replicas, almost linearly (two workers reached about 94 % of twice one worker in tests).
- Vector (syslog path). Parsing syslog lines is the most expensive step on that path. With the default CPU limit of 0.5 core, one Vector instance parses on the order of a thousand lines per second; it scales with CPU up to roughly 3,500 lines per second per instance, and beyond that with more instances.
- ClickHouse. CPU grows linearly with the event rate; query load from users can exceed ingest load by far.
- Redpanda. Rarely limiting; it is the main buffer.
Indicative numbers¶
The figures below were measured in a controlled test on an 8-vCPU server with synthetic events of about 1.9 KB. They show proportions and behaviour, not guarantees. Measure your own environment with the benchmark.
| Path and workload | Indicative sustained rate |
|---|---|
| Kafka path, one worker, short SQL statements | about 8,000 events/s |
| Kafka path, one worker, long or bulk SQL statements | about 3,300 events/s |
| Kafka path, two partitions and two workers | about 13,500 events/s |
| Syslog path, one Vector at 0.5 CPU | about 1,000 lines/s |
| Disk in ClickHouse | about 260 bytes per event for short statements (more for long SQL) |
Overload behaviour¶
Exceeding capacity does not by itself lose events: they wait in a buffer.
| Situation | What happens |
|---|---|
| Worker or ClickHouse cannot keep up | Events accumulate in Redpanda; screens and real-time alerts lag; the backlog drains when the load drops. |
| Vector parsing cannot keep up | Vector reads its socket more slowly; TCP back-pressure slows the senders. The sender must wait or queue. |
| Redpanda temporarily unreachable | Vector keeps events in its disk buffer (default cap 2 GiB, VECTOR_BUFFER_BYTES) and retries indefinitely. When the buffer is full, Vector stops reading and senders slow down. |
| Backlog older than Redpanda's retention | Redpanda deletes old segments even if they were not consumed. Default retention is 7 days with no size limit. This is the point where loss begins. |
Keep sustained load below capacity and watch for growing delays. If senders use UDP syslog, nothing protects them: UDP has no buffer or acknowledgement; use TCP.
Run the benchmark¶
Platform → System and Cluster → Capacity measures, in this environment, how many events per second one worker replica can process (decode, SQL parsing, signing and batch writes to ClickHouse, including the summary views). Your real data is never touched: the ingest tables and views are copied to a temporary database, the measurement runs there, and the database is dropped afterwards (also on cancel or error). Ingest policies and real-time alert rules are not applied to the synthetic events.
- Under Target rate, check Expected events/s (TPS) (filled from the value entered at installation), the Ingest path (Guardium/syslog → Vector or Filebeat, Event Hub, Kinesis, direct Kafka) and the SQL type (Short SQL (typical) or Long/bulk SQL (ORM, bulk INSERT, large IN lists)). Calculate recommended environment tries a value without saving it; Save target stores it.
- Under Measurement, choose Duration per profile (s) (5–60, default 20) and the Profiles: Short SQL, Long/bulk SQL and optionally Your own SQL (one statement per line; the text is used only for the measurement and is never stored or audited).
- Click Start measurement and confirm. Two profiles take about a minute. During that time the worker uses about one core and ClickHouse extra CPU and disk; live ingest may slow down. The Measurement in progress card shows who started it, Profile {index}/{count}: {profile}, the phase (Preparing, Setting up the temporary database, Warming up, Measuring, Cleaning up), Estimated remaining: {seconds} s, a progress bar and the Live rate. Cancel stops the run and drops the temporary database; results so far are not saved.
- Read the Measurement result: average events/s per profile, median, peak, batch duration percentiles, worker CPU and memory, host CPU, bytes per event, and the Measurement environment (CPUs seen by the worker, Worker CPU limit, Worker memory limit, Worker CPU use before the test, ClickHouse version, ClickHouse CPUs, ClickHouse memory, Free disk, Table engine). Warnings under the result tell you when the number is less reliable, for example when live ingestion was active or the worker hit its CPU limit.
- Read Current environment and target: capacity as it is now (the narrowest layer), the safely sustainable rate, the target and how much of it is covered, with a verdict.
- Read What to increase for the target?: for each component (worker, ClickHouse, Vector, Redpanda, host) the current value, the required value, the status (Sufficient, Increase, Tight, Unknown) and the
.envkey to change.
The benchmark does not include reading from Kafka, so the recommendation deducts 10 % from the measured rate. Results vary by 2–4 % between runs. The run refuses to start if ClickHouse has less than 4 GiB free disk. On a cluster it measures this server's ingest rate on a local copy; replication load is not included.
Start and cancel actions and target changes are written to the self-audit trail (without SQL text). The last 20 runs are listed under Past measurements.

Apply a recommendation¶
The Recommended environment shows the worker replicas and their CPU and memory, ClickHouse CPU, memory and disk (from the retention setting), Vector instances on the syslog path, Redpanda and host totals, with a copyable block of .env values.
- Write the values into the installation's
.env. - Apply them to the affected services, for example
docker compose up -d worker clickhouse vector. Changed services restart. -
If one worker is not enough, add Kafka partitions and worker replicas manually; the product does not do this automatically:
-
Run the benchmark again.
At installation time the same model is used: install.sh --expected-tps N [--ingest-path syslog|kafka] [--sql-profile simple|heavy] and the web installer's load step recommend resources and can write the limits to .env. CPU limits are capped at the host's core count. See System requirements and sizing.
Disk and retention¶
With unlimited retention, the Capacity tab estimates the daily disk need at the measured load and how many days the free disk lasts until the disk-guard threshold, then what happens when it is reached. With a retention period, it computes the disk needed for that period with a 25 % margin. With a locked archive on a separate store, the hot disk fills more slowly than estimated. See Data lifecycle and retention.
ClickHouse adaptive memory¶
QubeSight does not hard-code memory sizes for ClickHouse queries. Every product connection reads the server's memory cap and thread count and sizes each query relative to them. If a read-only query fails because memory is exhausted, it is retried automatically with a lower memory share, more spilling to disk, fewer threads and smaller blocks. Background summary jobs shrink the slice of data they process and repair partly written slices, so a memory error slows a job down instead of failing it or double counting.
The ClickHouse container's memory is sized at installation from the host's RAM (one quarter, between 4 and 16 GiB) and ClickHouse may use 80 % of it. Interactive queries that still exceed the limit return an error to the user; narrow the time range or filters and run them again.
Limitations¶
- The benchmark measures one worker replica. Vector parsing, Kafka, the network, Event Hub and Kinesis quotas and the query load on ClickHouse are estimated from measured reference coefficients, and the result states its confidence level.
- Outside a Compose installation, current CPU and memory limits are not known and show as Unknown.
- Scaling partitions and worker replicas is manual.
- The product does not display Kafka consumer lag; a growing backlog shows as delayed data.
- Redpanda has no size-based retention limit by default. Very long backlogs can fill its disk.