Important
The SingleStore 9.1 release candidate (RC) gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 9.0 is recommended for production workloads, which can later be upgraded to SingleStore 9.1.
Active Workload Monitoring
On this page
Active Workload Monitoring enables you to analyze query behavior during a specific time period by comparing metrics at the start and end of the recording window.
How it Works
-
Cumulative Metrics view (mv_
activities_ extended_ cumulative) contains a cumulative collection of query metrics gathered since the system started. The metrics include total CPU time, memory used, I/O, etc. , for each query. -
Start a Snapshot (T₁): when you click Record the system takes a snapshot of the cumulative metrics at that specific time (T₁).
-
End Snapshot (T₂): when you stop recording, a second snapshot is taken (T₂).
-
Delta Calculation: the system calculates the difference (T₂ - T₁) in metrics for each query that was running or completed during the recording window.
-
Result - the delta provides metrics specific to the recording period, such as:
-
CPU utilization during the recording window.
-
Number of query executions.
-
Memory consumed.
-
Total CPU Percentage Metric
This metric is intended for comparison purposes and is not an absolute measure of CPU capacity used.
It is the query’s CPU time during the recording window divided by the recording duration, expressed as a percentage on a single-core basis, so it is useful for comparing queries but not for measuring cluster-wide CPU utilization.
The formula it uses is: (sum(cpu time) / recording time)*100.
A key detail is that this calculation is always based on one CPU core, regardless of how many cores the cluster has.
This means values can be greater than 100%.
This does not mean the query used 8.
What this Metric is Useful For
-
Comparing queries to see which ones are more CPU-intensive relative to others running or completed during the recording time.
-
Ranking queries by CPU usage during a given recording period.
What this Metric Does Not Represent
-
It does not show CPU percentage relative to cluster’s total CPU capacity.
-
It does not tell you how close your cluster is to hitting CPU limits.
This metric should not be used to calculate overall CPU utilization of your cluster.
Last modified: