Changeset 8297 for trunk/Ohana/src/opihi/doc/pcontrol.txt
- Timestamp:
- Aug 11, 2006, 4:52:37 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/doc/pcontrol.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/doc/pcontrol.txt
r8185 r8297 1 2 2006.08.11 3 4 I have nearly finished the conversion of pcontrol to use a background 5 thread for monitoring the remote machines. A few questions are still 6 outstanding: 7 8 - currently, we are thread-safe for interactions with the stacks. As 9 long as an operation is only working with a single job/host, and all 10 jobs/hosts are selected by pulling them from the stacks, there will 11 never be a contention between threads for the same job/host. 12 However, are there problems for commands which require a specific 13 job or host but are unable to find it because the job/host may be in 14 flight from one stack to another. 15 16 - The CheckIdleHost command needs to join a job and a host. In this 17 case, it is necessary to lock the job PENDING stack while searching 18 for a job to give to a host. The host is pulled off of the IDLE 19 stack before being past to CheckIdleHost. 20 21 o CheckIdleHost currently does not have a way to send a WANTHOST job 22 to any host other than the WANTHOST. What should the rule be by 23 which a job is run on an alternative machine? (partial fix) 24 25 - we are not starting any of the job or host timers? 26 27 2006.08.09 28 29 working on pcontrol CheckSystem background thread. One thread runs 30 the readline interaction and performs all of the user commands. The 31 second thread runs the CheckSystem loop and tests the hosts and jobs. 32 We need to be sure these two do not interfere with one another. Here 33 is a list of all of the user commands and the ways in which they 34 interact with the Job / Host queues: 35 36 1 37 2 38 2006.08.04 3 39 4 pcontrol get a large delay every time it tries to connect to a host.40 pcontrol gets a large delay every time it tries to connect to a host. 5 41 this is because the readline interrupt has to wait for the connection 6 42 to complete. I probably need to fix this by using a threaded model
Note:
See TracChangeset
for help on using the changeset viewer.
