Skip to main content

Instance Monitoring

On the instance monitoring screen, you can check the key metrics of a single SingleStore node in real time. When CPU and memory usage suddenly rise or sessions pile up on a specific node, it helps you quickly grasp what is happening on which node. The intended readers are DBAs who operate SingleStore.

Basic screen guide

Select the node to view from the instance selector at the top of the screen. A node's role is reflected in its name. You can distinguish node roles by the MA (Master Aggregator), CA (Child Aggregator), and Leaf values in the ROLE column of the instance list. The time range is queried in a default 10-minute window based on LIVE, and metrics refresh every 5 seconds.

At the top of the screen are KPI tiles for a quick view of node state.

ItemDescription
Threads RunningNumber of running threads
ConnectionsNumber of connections
QueriesQuery throughput
Successful Read QueriesNumber of successful read queries
Failed Read QueriesNumber of failed read queries
Failed Write QueriesNumber of failed write queries

Below the KPI tiles are resource usage chart widgets.

WidgetMetric
CPUcpu_user_pct · cpu_system_pct · cpu_iowait_pct · cpu_idle_pct
Memoryhost_total_mb · host_used_mb
Disk Usageos_mount_total_mb · os_mount_used_mb
Network BandwidthNode network IN and OUT

At the bottom of the screen is an area that switches between active sessions and the lock tree by tabs, along with a Lock Wait sessions widget.

Active session area

In the active session table at the bottom of the screen, you can check the sessions currently running on the cluster. Because SingleStore splits a single query across multiple nodes, it groups active sessions by aggregator activity. This lets you grasp what work the cluster is currently performing at the level of each task.

The table columns are as follows.

ColumnDescription
instanceNode where the session is running
node_idNode identifier
databaseTarget database
session_idSession identifier
userSession user
stateSession state (for example, executing)
commandType of command being run (for example, Query)
activityActivity name
raw_taskRaw text of the running SQL
sql_paramSQL parameter
aggregator_activityAggregator activity name used as the grouping key
elapsed(ms) · avg elapsed(ms)Execution time (max and average)
cpu(ms) · cpu wait(ms)CPU usage and wait time
lock wait(ms)Lock wait time
network(ms)Network time
disk i/o(ms)Disk I/O time
disk spilling · avg spillingDisk spilling amount (max and average)
part rowsNumber of partition rows processed
connNumber of connections
memory · avg memoryMemory usage (max and average)

node_id, aggregator_activity, part rows, and disk spilling are SingleStore-specific columns that are meaningful only in a distributed execution environment.

When you click the SQL of a specific session in the active sessions, a detail window opens. For the SQL detail window, see the SQL detail view description in the Top SQL document.

Stopping a session

In SingleStore, you can select an active session and stop (Kill) it. The stop target is identified by its session ID (session_id).

Note

Stopping a session forcibly terminates the running query. Check the scope of impact before using it with care.