Making 'job_sort_formula' a sched attribute

Overview


Right now, job_sort_formula is a server attribute, which means that in a multi-sched scenario, all the schedulers use the same formula. This is an unnecessary limitation, the scheds are intended to be individually configured, possibly very differently from each other. So, making job_sort_formula a sched attribute will allow one to configure different sorting formulas for each sched.


Interface changes:

  • New sched attribute 'job_sort_formula' (settable via qmgr):
    • Permissions: User: R, Oper: R, Mgr: R,W
    • Default value: Unset
    • The associated pbs_sched will be reconfigured when this is set
    • Until the server's job_sort_formula is removed, if the server's job_sort_formula is set then setting a particular sched's job_sort_formula will be rejected.
      • So, to set a sched's job_sort_formula, the server's job_sort_formula must be unset.
      • If rejected, the error message printed by qmgr will be "Server's job_sort_formula value is incompatible with sched's"
  • Deprecating server attribute 'job_sort_formula':
    • For backward compatibility, this will continue to work as follows (for the deprecation period):
      • When set, the server's job_sort_formula will behave exactly how it does today, i.e - all schedulers will use the server's value
      • If any sched object has a job_sort_formula set then a set operation on server's job_sort_formula will be rejected.
        • if rejected, the error message printed by qmgr will be "Server's job_sort_formula value is incompatible with sched's"









OSS Site Map

Project Documentation Main Page

Developer Guide Pages