Dear Wizards,
I have a few questions regarding how to use (non-)primetime settings and the holidays file.
As far as I can read, the config file PBS_HOME/sched_priv/holidays
must contain the present year info in a line like
YEAR 2016
Apparently, there can only be one YEAR
per file (and thus per pbs_sched
config. So how do site admins in practice deal with year roll-over? Sit tight around midnight on Jan 1st and reconfigure - or copy/move/symlink files with the at
command (or cron
)? All these options seem unattractive for operational/stability reasons.
Also, the actual format of the holidays seems somewhat lacking (this would be a devel issue), as both the day-of-year and the calendar date must be specified for each day. One of them aught to be enough.
From an operational perspective, the file should be in a format, which would allow it to always contain information for at least some days (or a month) into the future. This could be done by either allowing several YEAR blocks, or specifying the holidays as e.g.
YYYY-MM-DD Comment
such that multi-year info can be compiled into a single file. But presumably, some experienced site admins already thought of some solution, which do not require recoding of the scheduler.
Actually, we do not expect to use primetime/non-primetime at our clusters. Thus, as the admin guide (v13.1 §4.8.35.2 page AG-260):
So, I assumed that if I removed the holidays
file, then all was well, and I would not use primetime/non-primetime. That seems to be the case, but the scheduler complains (logs) about it:
...;0001;pbs_sched;Svr;pbs_sched;No such file or directory (2) in parse_holidays, Error opening file holidays
...;0040;pbs_sched;Fil;holidays;Warning: cannot open holidays file; assuming 24hr primetime
...;0004;pbs_sched;Fil;holidays;The holiday file is out of date; please update it.
If I add an empty file, then the scheduler complains (presumably because YEAR
is missing) that
...;0004;pbs_sched;Fil;holidays;The holiday file is out of date; please update it.
So, how do I turn off primetime/non-primetime without the scheduler complaining.
I can create an “almost empty” holidays
file with just the content YEAR 2016
, but then the scheduler will likely complain once we get a few seconds into 2017. (Plus I need to update a redundant file).
Edit: Actually, this last option seems to make every day primetime, but “ending at midnight”. So it is likely a bad idea. Presently, I will remove the holidays
file altogether (or alternatively leave it empty), and live with the scheduler complaining.
Note that this is likely only a logging/warning issue - I expect the the scheduler actually behaves like expected.
Best,
/Bjarne