Visor 'tasks' command implementation.
Visor 'tasks' command implementation.
+---------------------------------------------------------------------------------------+ | tasks | Prints statistics about tasks and executions. | | | | | | Note that this command depends on GridGain events. | | | | | | GridGain events can be individually enabled and disabled and disabled events | | | can affect the results produced by this command. Note also that configuration | | | of Event Storage SPI that is responsible for temporary storage of generated | | | events on each node can also affect the functionality of this command. | | | | | | By default - all events are enabled and GridGain stores last 10,000 local | | | events on each node. Both of these defaults can be changed in configuration. | +---------------------------------------------------------------------------------------+
tasks tasks "-l {-t=s|m|h|d} {-r}" tasks "-s={-t= tasks "-g {-t=s|m|h|d} {-r}" s|m|h|d} {-r}" tasks "-h {-t=s|m|h|d} {-r}" tasks "-n={-r}" tasks "-e="
-l
List all tasks and executions for a given time period.
Executions sorted chronologically (see '-r'), and tasks alphabetically
See '-t=<num>s|m|h|d' on how to specify the time limit.
Default time period is one hour, i.e '-t=1h'
This is a default mode when command is called without parameters.
-s=<substring>
List all tasks and executions for a given task name substring.
Executions sorted chronologically (see '-r'), and tasks alphabetically
See '-t=<num>s|m|h|d' on how to specify the time limit.
Default time period is one hour, i.e '-t=1h'
-g
List all tasks grouped by nodes for a given time period.
Tasks sorted alphabetically
See '-t=<num>s|m|h|d' on how to specify the time limit.
Default time period is one hour, i.e '-t=1h'
-h
List all tasks grouped by hosts for a given time period.
Tasks sorted alphabetically
See '-t=<num>s|m|h|d' on how to specify the time limit.
Default time period is one hour, i.e '-t=1h'
-t=<num>s|m|h|d
Defines time frame for '-l' parameter:
=<num>s Last <num> seconds.
=<num>m Last <num> minutes.
=<num>h Last <num> hours.
=<num>d Last <num> days.
-r
Reverse sorting of executions.
-n=<task-name>
Prints aggregated statistic for named task.
-e=<exec-id>
Prints aggregated statistic for given task execution.visor tasks "-l" Prints list of all tasks and executions for the last hour (default). visor tasks Prints list of all tasks and executions for the last hour (default). visor tasks "-l -t=5m" Prints list of tasks and executions that started during last 5 minutes. visor tasks "-s=Task" Prints list of all tasks and executions that have 'Task' in task name. visor tasks "-g" Prints list of tasks grouped by nodes. visor tasks "-g -t=5m" Prints list of tasks that started during last 5 minutes grouped by nodes. visor tasks "-h" Prints list of tasks grouped by hosts. visor tasks "-h -t=5m" Prints list of tasks that started during last 5 minutes grouped by hosts. visor tasks "-n=GridTask" Prints summary for task named 'GridTask'. visor tasks "-e=7D5CB773-225C-4165-8162-3BB67337894B" Traces task execution with ID '7D5CB773-225C-4165-8162-3BB67337894B'. visor tasks "-e=@s1" Traces task execution with ID taken from 's1' memory variable.
Companion object that does initialization of the command.
Overview
Visor 'tasks' command implementation.
Help
Specification
Arguments
-l List all tasks and executions for a given time period. Executions sorted chronologically (see '-r'), and tasks alphabetically See '-t=<num>s|m|h|d' on how to specify the time limit. Default time period is one hour, i.e '-t=1h' This is a default mode when command is called without parameters. -s=<substring> List all tasks and executions for a given task name substring. Executions sorted chronologically (see '-r'), and tasks alphabetically See '-t=<num>s|m|h|d' on how to specify the time limit. Default time period is one hour, i.e '-t=1h' -g List all tasks grouped by nodes for a given time period. Tasks sorted alphabetically See '-t=<num>s|m|h|d' on how to specify the time limit. Default time period is one hour, i.e '-t=1h' -h List all tasks grouped by hosts for a given time period. Tasks sorted alphabetically See '-t=<num>s|m|h|d' on how to specify the time limit. Default time period is one hour, i.e '-t=1h' -t=<num>s|m|h|d Defines time frame for '-l' parameter: =<num>s Last <num> seconds. =<num>m Last <num> minutes. =<num>h Last <num> hours. =<num>d Last <num> days. -r Reverse sorting of executions. -n=<task-name> Prints aggregated statistic for named task. -e=<exec-id> Prints aggregated statistic for given task execution.Examples