Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Visibility: Public
  • Change Control: Stable
  • Details:
    • Scheduler now has additional attributes which can be set in order to run it.
      • sched_priv - to point to the directory where scheduler keeps the fairshare usage, resource_group, holidays file and sched_config
      • sched_logs - to point to the directory where scheduler logs.
      • partitions - list of all the partitions for which this scheduler is going to schedule jobs.
      • host - hostname on which scheduler is running. For default scheduler it is set to pbs server hostname.
      • port - port number on which scheduler is listening.
      • state - This attribute shows the status of the scheduler. It is a parameter that is set only by pbs server.
    • One can set a partition or a comma separated list of partitions to scheduler object. Once set, given scheduler object will only schedule jobs from the queues attached to specified partition"
      • qmgr -c "s sched multi_sched_1 partitions='part1,part2'"
    • If no partition are specified for a given scheduler object, other than the default scheduler where no partition value can be set, then that scheduler will not schedule any jobs.
    • By default, All new queues created will be scheduled by the default scheduler, until they have been assigned to a specific partition.
    • A partition once attached to a scheduler can not be attached to a second scheduler without removing it from the first scheduler. If tried, then it will throw following error:
      • qmgr -c "s sched multi_sched_1 partitions+='part2'"
        Partition part2 is already associated with scheduler <scheduler name>.
    • Scheduler object "state" attribute will show one of these 3 values  - DOWN, IDLE, SCHEDULING
      • If a scheduler object is created but scheduler is not running for some reason state will be shown as "DOWN"
      • If a scheduler is up and running but waiting for a cycle to be triggered the state will be shown as "IDLE"
      • If a scheduler is up and running and also running a scheduling cycle then the state will be shown as "SCHEDULING"
    • The default sched object is the only sched object that cannot be deleted.
    • Trying to set sched_port, sched_priv and sched_host on default scheduler will not be allowed. The following error message is thrown in server_logs when we try to change sched_priv directory.
      • qmgr -c "s sched default sched_priv = /tmp
        Operation is not permitted on default scheduler
    • Trying to start a new scheduler other than the default scheduler, without assigning a partition it won't come up and the following error message is thrown in sched_logs.
               Scheduler should contain at least single partition
    • Trying to start a new scheduler other than the default scheduler which is not known to the server, without assigning a partition it won't come up and the following error message is thrown in sched_logs.

              update_svr_schedobj, Unable to retrieve the scheduler attributes from server

    • If Scheduler fails to update the new value of its sched_log directory to the server then the following error message is shown in the sched_logs.
              Failed to update log_dir value <value or path of the log directory> at the server

    • If Scheduler fails to update the new value of its sched_priv directory to the server then the following error message is shown in the sched_logs. 
             Failed to update sched_priv value <value or path of the sched_priv directory> at the server

    • If Scheduler is not able to open the new log directory configured then the following error message is shown in the sched_logs.
             Failed to open the log file in dir <value or path of the log directory>

    • In all of the above three cases scheduler will switch back to its original directory throwing the following error message in the sched_logs.
             Switching back to previous directory <value of path of the directory>

    • If Scheduler is successful in accepting the new log_dir configured at qmgr then the following error message is thrown in the sched_logs.
             Scheduler log directory is changed to <value of path of the log directory>

    • If Scheduler is successful in accepting the new sched_priv configured at qmgr then the following error message is thrown in the sched_logs.
             Scheduler log directory is changed to <value of path of the sched_priv directory>
       

    • If sched_priv or sched_log directories does not meet the security validations then the following error message is thrown in the sched_logs.
             PBS failed validation checks for directory <value of path of the directory> 

    • If we keep on disassociating partitions from a scheduler until it does not contain any of the partitions then this scheduler is identical to default scheduler in which case we shutdown this scheduler and following error message is thrown in sched_logs.
                    Scheduler does not contain a partition. shutting down                                                                                                                                                                                                                                                          


...