Changes between Version 1 and Version 2 of pantasks_controller_interactions
- Timestamp:
- Oct 4, 2012, 1:09:00 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pantasks_controller_interactions
v1 v2 10 10 === Some terminology === 11 11 12 * controller : the abstract concept of the software or system which13 manages parallel jobs for pantasks.12 * controller : the abstract concept of the software or system which 13 manages parallel jobs for pantasks. 14 14 15 * pcontrol : the default (Ohana-native) controller implementation15 * pcontrol : the default (Ohana-native) controller implementation 16 16 17 17 === Pantasks Controller Commands === … … 22 22 pcontrol shell on its own, these commands are called directly. 23 23 24 * check job (jobID)25 * check host (hostID)24 * check job (jobID) 25 * check host (hostID) 26 26 27 27 check on the status of a single job or host. the jobID or hostID is … … 38 38 For 'job', the return is of the form: 39 39 40 {{{ 40 41 STATUS (status) 41 42 EXITST (Nexit) … … 43 44 STDERR (Nbytes) 44 45 DTIME (elapsed time) 46 }}} 45 47 46 48 where: 47 49 48 (status) is one of PENDING, BUSY, DONE, EXIT, CRASH49 (Nexit) is the exit status of the command (ie, as if it were run on50 * (status) is one of PENDING, BUSY, DONE, EXIT, CRASH 51 * (Nexit) is the exit status of the command (ie, as if it were run on 50 52 the UNIX command line). 51 (Nbytes) is the size of the standard out and standard error buffers53 *(Nbytes) is the size of the standard out and standard error buffers 52 54 from the job 53 (elapsed time) is the number of seconds it took to run the command;55 *(elapsed time) is the number of seconds it took to run the command; 54 56 this is only set on exit. 55 57 56 * exit58 * exit 57 59 58 60 Tell the controller to exit. In pantasks, it is necessary to give this command in 59 61 the form 'controller exit TRUE'. 60 62 61 * host [options] : manipulate hosts managed by the controller. The 62 following commands may be given: 63 63 * host [options] : manipulate hosts managed by the controller. The 64 following commands may be given: 64 65 * host add (hostname) [-threads N] : add a new connection to the host 65 66 (hostname). The optional -threads N argument specifies the default … … 68 69 that value replaced by "-threads N" for this machine, were N is the 69 70 value specified in this host add command. 70 71 71 * host on (hostname) : tell the controller to activate the specified 72 72 host 73 74 73 * host off (hostname) : tell the contoller to de-activate the 75 74 specified host 76 77 75 * host check (hostname) : check the status of the given host by 78 76 hostname (returns 'host (hostname) is (status)' where (status) is 79 77 one of the list given above for check host 80 81 78 * host retry (hostname) : tell the controller to re-attempt a 82 79 connection to the specified machine NOW (if the connection failed, … … 85 82 they may desire to force a connection attempt sooner rather than 86 83 waiting for the timeout to complete). 87 88 84 * host delete (hostname) : remove the named host from the list of 89 85 managed hosts. … … 99 95 currently off. 100 96 101 * hoststack (stack) : list the hosts in the given 'stack'. A 102 collection of hosts in a given state is called a 'stack' of hosts. 103 This command lists all of the hosts in one of the stacks. Stack 104 names are case-insensitive and may be one of the following: 105 97 * hoststack (stack) : list the hosts in the given 'stack'. A 98 collection of hosts in a given state is called a 'stack' of hosts. 99 This command lists all of the hosts in one of the stacks. Stack 100 names are case-insensitive and may be one of the following: 106 101 * IDLE : machines which are currently unoccupied with processing 107 102 * BUSY : machines which are currently active … … 117 112 lines each with ID NAME on a single line). 118 113 119 * jobstack (stack) : list the jobs in the given 'stack'. Like the114 * jobstack (stack) : list the jobs in the given 'stack'. Like the 120 115 hosts, a collection of jobs in a given state is called a 'stack' of 121 116 jobs. This command lists all of the jobs in one of the stacks. 122 117 Stack names are case-insensitive and may be one of the following 123 124 118 * PENDING : job is waiting for a host 125 119 * BUSY : job is running on a host … … 138 132 jobs running on another host which requested the given host. 139 133 140 * parameters : set several pcontrol internal parameters. this 141 function lets the user interact with the pcontrol shell and set some 142 internal state variables. The 3 currently allowed options are: 143 134 * parameters : set several pcontrol internal parameters. this 135 function lets the user interact with the pcontrol shell and set some 136 internal state variables. The 3 currently allowed options are: 144 137 * parameters connect_time (time) : set the maximum time a pclient is 145 138 kept alive before pcontrol attempts to reset the connection (time
