SYSTEM$GET_COMPUTE_POOL_STATUS

コンピュートプールのステータスを取得します。

こちらもご参照ください。

コンピューティングプールの操作

構文

GET_COMPUTE_POOL_STATUS( '<computePoolName>' )
Copy

引数

必須:

computePoolName

コンピュートプール名。

戻り値

ステータス情報を JSON オブジェクトとして返します。JSON フィールドは以下のとおりです。

  • status。コンピュートプールのステータス。

  • recommendation。ステータスに関連するメッセージ(ある場合)。それ以外の場合、このフィールドは空です。

  • notReadyServices。予定されているが、まだ開始されていないサービスの数。

  • notReadyJobs。予定されているが、まだ開始されていないジョブの数。

使用上の注意

  • ステータス情報を取得するには、現在のロールにコンピュートプールに対する MONITOR 権限が必要です。

以下の関数は、「mypool」コンピュートプールのステータス情報を取得します。

SELECT SYSTEM$GET_COMPUTE_POOL_STATUS('mypool');
Copy

出力例:

  • コンピュートプールが最小/最大ノード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}
    
    Copy
  • コンピュートプールが中断されました。

    {"status":"Compute pool is in state suspended","recommendation":"", "notReadyServices":0, "notReadyJobs":0}
    
    Copy
  • すべてのコンピュートプールノードが使用中です。

    {"status":"Compute pool is in state active","recommendation":"Compute Pool is at full capacity. Current_node=1, max_node=1.","notReadyServices":0,"notReadyJobs":1}
    
    Copy
  • 最小/最大ノードを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}
    
    Copy
  • コンピュートプールは正常ですが、ノード数が最大です。

{"status":"Compute pool is in state active", "recommendation":"Compute pool is at max node count of 2", "notReadyServices":0, "notReadyJobs":0}
Copy
  • コンピュートプールがクラウドプロバイダーから 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}
    
    Copy