Knowledge Center Contents Previous Next Index |
Dispatch and Run Windows
Contents
Dispatch and Run Windows
Both dispatch and run windows are time windows that control when LSF jobs start and run.
- Dispatch windows can be defined in
lsb.hosts
. Dispatch and run windows can be defined inlsb.queues
.- Hosts can only have dispatch windows. Queues can have dispatch windows and run windows.
- Both windows affect job starting; only run windows affect the stopping of jobs.
- Dispatch windows define when hosts and queues are active and inactive. It does not control job submission.
- Run windows define when jobs can and cannot run. While a run window is closed, LSF cannot start any of the jobs placed in the queue, or finish any of the jobs already running.
- When a dispatch window closes, running jobs continue and finish, and no new jobs can be dispatched to the host or from the queue. When a run window closes, LSF suspends running jobs, but new jobs can still be submitted to the queue.
Run Windows
Queues can be configured with a run window, which specifies one or more time periods during which jobs in the queue are allowed to run. Once a run window is configured, jobs in the queue cannot run outside of the run window.
Jobs can be submitted to a queue at any time; if the run window is closed, the jobs remain pending until it opens again. If the run window is open, jobs are placed and dispatched as usual. When an open run window closes, running jobs are suspended, and pending jobs remain pending. The suspended jobs are resumed when the window opens again.
Configure run windows
- To configure a run window, set RUN_WINDOW in
lsb.queues
.For example, to specify that the run window will be open from 4:30 a.m. to noon, type:
RUN_WINDOW = 4:30-12:00You can specify multiple time windows.
For more information about the syntax of time windows, see Specifying Time Windows.
View information about run windows
- Use
bqueues -l
to display information about queue run windows.Dispatch Windows
Queues can be configured with a dispatch window, which specifies one or more time periods during which jobs are accepted. Hosts can be configured with a dispatch window, which specifies one or more time periods during which jobs are allowed to start.
Once a dispatch window is configured, LSF cannot dispatch jobs outside of the window. By default, no dispatch windows are configured (the windows are always open).
Dispatch windows have no effect on jobs that have already been dispatched to the execution host; jobs are allowed to run outside the dispatch windows, as long as the queue run window is open.
Queue-level
Each queue can have a dispatch window. A queue can only dispatch jobs when the window is open.
You can submit jobs to a queue at any time; if the queue dispatch window is closed, the jobs remain pending in the queue until the dispatch window opens again.
Host-level
Each host can have dispatch windows. A host is not eligible to accept jobs when its dispatch windows are closed.
Configure dispatch windows
Dispatch windows can be defined for both queues and hosts. The default is no restriction, or always open.
Configure host dispatch windows
- To configure dispatch windows for a host, set DISPATCH_WINDOW in
lsb.hosts
and specify one or more time windows. If no host dispatch window is configured, the window is always open.Configure queue dispatch windows
- To configure dispatch windows for queues, set DISPATCH_WINDOW in
lsb.queues
and specify one or more time windows. If no queue dispatch window is configured, the window is always open.Display queue dispatch windows
- Use
bqueues -l
to display queue dispatch windows.Display host dispatch windows
- Use
bhosts -l
to display host dispatch windows.
Platform Computing Inc.
www.platform.com |
Knowledge Center Contents Previous Next Index |