Skip to content

TSBS DevOps — High CPU Usage - 1 Hour

TSBS DevOps benchmark · all TSBS DevOps queries

Hosts with CPU usage above threshold

Representative SQL

Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).

SELECT DISTINCT
hostname
FROM cpu
WHERE
usage_user > 90 AND time >= '2024-01-02 02:00:00' AND time < '2024-01-02 03:00:00'

Representative DataFrame

No DataFrame implementation is registered for this query.

Get the exact query for your run

The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:

from benchbox import TSBSDevOps
bench = TSBSDevOps(scale_factor=1.0) # your scale factor
queries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQL
print(queries['high-cpu-1-hr'])

Source

Query text: benchbox/core/tsbs_devops/queries.py