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_countFROM cpuWHERE usage_user > 90 AND time >= '2024-01-02 05:00:00' AND time < '2024-01-02 17:00:00'GROUP BY hostnameHAVING COUNT(*) > 10ORDER BY high_cpu_count DESCRepresentative 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 factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['high-cpu-12-hr'])Source
Query text: benchbox/core/tsbs_devops/queries.py