DEV Community

Michael
Michael

Posted on

The First Commands to Run When a GBase 8a Cluster Slows Down

When a healthy GBase 8a cluster suddenly develops intermittent problems, the hardest part is usually finding where the fault sits. Here are the commands I reach for first. OS commands run in a Linux shell; SQL runs inside the gbase client gccli.

Cluster State

Run gcadmin from the OS and look at node and service states. The values to worry about are CLOSE and OFFLINE.

The Longest-Running SQL at the Coordinator Layer

Focus on the time column. If one query is far beyond its normal duration — say 1 minute normally, now 1 hour — continue with the steps below.

select COORDINATOR_NAME, ID, user, host, command, start_time, time, state, substring(info,0,100) info from information_schema.COORDINATORS_TASK_INFORMATION where command='query' and time >=0 order by time desc limit 10;
Enter fullscreen mode Exit fullscreen mode

Which Node Is Running the Slowest SQL

Check the time column here too; it usually lines up with the coordinator-layer figure. For example, 3,600 seconds at the cluster layer and 2,900 seconds on the compute node is a match.

select NODE_NAME, ID, user, host, command, start_time, time, state, substring(info,0,100) info from information_schema.GNODES_TASK_INFORMATION where command='query' and info is not null and info not like '%information_schema.processlist%' order by time desc limit 10;
Enter fullscreen mode Exit fullscreen mode

The first output column, node_name (e.g. node2), maps to the Nodename in gcadmin showcluster.

Inspect That Node

ssh into the node and check three things.

OS-level errors

dmesg -T | grep -i error
Enter fullscreen mode Exit fullscreen mode

Use the output to judge whether there is a hardware or filesystem fault.

Resource saturation

iostat -xdc 1
Enter fullscreen mode Exit fullscreen mode

Watch the last %util column for sustained 100%, and the await column for values above 200.

SWAP usage

The OS top command works well here, and gives you per-process CPU and memory along the way. High SWAP usage means memory pressure, which degrades performance.

One More Check: Load Speed

select tb_name,IP,state,ELAPSED_TIME,avg_speed,progress,total_size,loaded_size from information_schema.load_status order by avg_speed;
Enter fullscreen mode Exit fullscreen mode

As a rule of thumb, sftp should average at least 8 MB/s, while ftp typically runs at 40–100 MB/s.

The value of this order is that it narrows the scope layer by layer: find an unusually long SQL at the cluster layer, map it to a specific node, then distinguish an OS-level fault from I/O saturation or memory swapping. Most intermittent slowdowns in a gbase database are located by the third step. Keep these queries handy before the next incident, rather than assembling them under pressure.

Top comments (0)