Skip to content

TSBS DevOps — High CPU Usage - 12 Hours

TSBS DevOps benchmark · all TSBS DevOps queries

Hosts with sustained high CPU usage

Representative SQL

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

SELECT
hostname,
COUNT(*) AS high_cpu_count
FROM cpu
WHERE
usage_user > 90 AND time >= '2024-01-02 05:00:00' AND time < '2024-01-02 17:00:00'
GROUP BY
hostname
HAVING
COUNT(*) > 10
ORDER BY
high_cpu_count DESC

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-12-hr'])

Source

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