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.β¦