SYSTEM$GET_COMPUTE_POOL_STATUS¶
コンピュートプールのステータスを取得します。
- こちらもご参照ください。
構文¶
GET_COMPUTE_POOL_STATUS( '<computePoolName>' )
戻り値¶
ステータス情報を JSON オブジェクトとして返します。JSON フィールドは以下のとおりです。
status
。コンピュートプールのステータス。recommendation
。ステータスに関連するメッセージ(ある場合)。それ以外の場合、このフィールドは空です。notReadyServices
。予定されているが、まだ開始されていないサービスの数。notReadyJobs
。予定されているが、まだ開始されていないジョブの数。
使用上の注意¶
ステータス情報を取得するには、現在のロールにコンピュートプールに対する MONITOR 権限が必要です。
例¶
以下の関数は、「mypool」コンピュートプールのステータス情報を取得します。
SELECT SYSTEM$GET_COMPUTE_POOL_STATUS('mypool');
出力例:
コンピュートプールが最小/最大ノード2から1に変更されました。
{"status":"Compute pool is in state resizing","recommendation":"OK : Compute pool is starting/resizing for last 0 minutes","notReadyServices":0,"notReadyJobs":0}{"status":"Compute pool is in state resizing","recommendation":"OK : Compute pool is starting/resizing for last 2 minutes","notReadyServices":0,"notReadyJobs":0}
コンピュートプールが中断されました。
{"status":"Compute pool is in state suspended","recommendation":"", "notReadyServices":0, "notReadyJobs":0}
すべてのコンピュートプールノードが使用中です。
{"status":"Compute pool is in state active","recommendation":"Compute Pool is at full capacity. Current_node=1, max_node=1.","notReadyServices":0,"notReadyJobs":1}
最小/最大ノードを1から2に戻します。
{"status":"Compute pool is in state resizing","recommendation":"Compute Pool is at full capacity. Current_node=1, max_node=2.","notReadyServices":0,"notReadyJobs":1}
コンピュートプールは正常ですが、ノード数が最大です。
{"status":"Compute pool is in state active", "recommendation":"Compute pool is at max node count of 2", "notReadyServices":0, "notReadyJobs":0}
コンピュートプールがクラウドプロバイダーから VMs をプロビジョニングできません。
{"status":"Compute pool is in state starting","recommendation":"Compute pool is experiencing delay provisioning GPU_10 instance types from the cloud provider.","notReadyServices":0,"notReadyJobs":0}