Difference between revisions of "Scheduling Basics"

From HPC Wiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
This jobscript can be submitted to the batch system, that is, sending the jobscript from the front-end nodes to the back-end nodes. Any job will first be added to a queue. Based on the resources the job needs, the scheduler will decide when the job will leave the queue, and on which part of the back-end nodes it will run.
 
This jobscript can be submitted to the batch system, that is, sending the jobscript from the front-end nodes to the back-end nodes. Any job will first be added to a queue. Based on the resources the job needs, the scheduler will decide when the job will leave the queue, and on which part of the back-end nodes it will run.
 +
 +
Be careful about the resources you request and know your system's limits:
 +
If you demand less time than your job actually needs to finish, your scheduler will simply kill the job once the given time is up. Your job might be stuck in the queue forever, if you specify more memory than there actually is available.
  
  
 
== Scheduling Algorithms ==
 
== Scheduling Algorithms ==

Revision as of 09:48, 29 March 2018

General

A scheduler is software that controls a batch system. Such a batch system makes up the majority of a cluster (about 98%) and is the most power-consuming part. This is where the big applications are intended to run, where the computation requires a lot of memory and time for computation.

Such a batch system can be viewed as the counterpart of the login-nodes. A user can simply log onto those so called "front-end" nodes and you can type in commands that are immediately executed on the same machine. A batch system, however, consists of "back-end" nodes that are not directly accessible for the users. In order to run an application on there, the user has to ask for time and memory resources and specify which application to run inside a jobscript.

This jobscript can be submitted to the batch system, that is, sending the jobscript from the front-end nodes to the back-end nodes. Any job will first be added to a queue. Based on the resources the job needs, the scheduler will decide when the job will leave the queue, and on which part of the back-end nodes it will run.

Be careful about the resources you request and know your system's limits: If you demand less time than your job actually needs to finish, your scheduler will simply kill the job once the given time is up. Your job might be stuck in the queue forever, if you specify more memory than there actually is available.


Scheduling Algorithms