Batch
目錄
介紹
透過 orxray batch
子命令可以獲取批次任務列表和指定批次的所有任務資訊。
用法
Usage: orxray batch [COMMAND]
COMMAND:
list
show
GLOBAL OPTIONS:
--help
--config Specify the config file, default is ~/.orxray/config.
List
這個子命令可以列印出批次任務的列表。
用法
Usage: orxray batch list [OPTIONS]
OPTIONS:
-a, --agent Agent ID, or use default agent.
-s, --page-size page size, 20(default).
-p, --page page, 1(default).
GLOBAL OPTIONS:
--help
--config Specify the config file, default is ~/.orxray/config.
示例
$ orxray batch list
ID RESOURCES APP_ID PID PGID USER
11 cpu 267 test@openresty.com
10 cpu,disk 267 3210677 test@openresty.com
9 cpu 267 test@openresty.com
指定列表的最大顯示數量
$ orxray batch list -s 2
ID RESOURCES APP_ID PID PGID USER
11 cpu 267 test@openresty.com
10 cpu,disk 267 3210677 test@openresty.com
Show
獲取指定批次的所有任務資訊。
用法
Usage: orxray batch show [BATCH_ID] [OPTIONS]
OPTIONS:
-a, --agent Agent ID, or use default agent.
-s, --page-size page size, 20(default).
-p, --page page, 1(default).
GLOBAL OPTIONS:
--help
--config Specify the config file, default is ~/.orxray/config.
示例
$ orxray batch show 10
ID ANALYZER RUNNING TIME(sec) USER STATUS MSG
4061182 vfs-read-write-fgraph 6.87 system finished Got 0 samples
4061174 vfs-write-top-files 18.88 system finished Got 0 samples
4061168 vfs-read-top-files 18.99 system finished Got 0 samples
4061159 lj-lua-off-cpu 31.06 system finished Got 0 samples
4061153 lj-lua-on-cpu 16.11 system finished Got 0 samples
4061148 lj-c-off-cpu 17.19 system finished
4061141 lj-c-on-cpu 17.12 system finished