すべてのプロダクト
Search
ドキュメントセンター

MaxCompute:TOP INSTANCE

最終更新日:Dec 13, 2024

プロジェクトで実行されているインスタンスに関する情報を表示します。 情報は、InstanceID、Owner、Type、StartTime、Progress、Status、Priority、RuntimeUsage (CPU/MEM) 、totalUsage (CPU/MEM) 、およびQueueingInfo (POS/LEN) を含む。

構文

-- View the information about the running instances that are submitted by the current account in the current project. 
top instance;
-- Return the information about all or a specified number of running instances in the current project. 
top instance [-all][-limit <number>];

パラメーター

  • -all: オプション。 現在のプロジェクトで実行されているすべてのジョブに関する情報が返されます。 デフォルトでは、最大50個のジョブに関する情報を返すことができます。

  • -limit number: オプション。 現在のプロジェクトで実行されている指定された数のジョブに関する情報が返されます。

-- Return the information about the first five instances that are running in the current project. 
top instance -limit 5;

次の応答が返されます。

QueueingInstances: 0 total.

関連ステートメント

  • SHOW: インスタンスに関する情報を表示します。 この情報には、StartTime (秒単位で正確) 、RunTime (秒単位) 、Status、InstanceID、Owner、およびQueryステートメントが含まれます。

  • STATUS: 指定されたインスタンスのステータスを表示します。

  • KILL: 特定のインスタンスを停止します。

  • DESC INSTANCE: 指定されたインスタンスIDに基づいてジョブ情報を取得します。 情報には、SQL、Owner、StartTime、EndTime、およびStatusが含まれます。

  • WAIT: 指定されたインスタンスIDに基づいてジョブの実行ログを取得します。 返される結果には、LogviewのURLが含まれます。