Bug 137 - Removing options from mom config and reloading config
: Removing options from mom config and reloading config
Status: NEW
Product: TORQUE
: 2.4.x
: PC Linux
: P5 normal
Assigned To: Ken Nielson
  Show dependency treegraph
Reported: 2011-06-21 22:15 MDT by Craig West
Modified: 2011-06-21 22:15 MDT (History)
1 user (show)

See Also:



You need to log in before you can comment on or make changes to this bug.

Description Craig West 2011-06-21 22:15:36 MDT
When attempting to reset an option in the pbs_mom config file to its default
value, it is necessary to restart pbs. It would be beneficial to be able to
reset the value to its default via the remote reconfig option.

In this case I was trying to change the value of "max_load" and "ideal_load"
back to their defaults. It was previously defined in the pbs_mom config file,
we removed the options from the config file and used momctl -r <file> to reread
the config file, however the option didn't get changed. The log on the server
shows that the option was no longer detected.

If we stop and start pbs on the node then the setting has returned to the

In this case looking at the source code shows that the initial setting for
those variables is "-1". However, if you try to set the value back to -1 it
won't work as there is error checking code in place to ensure that the value is
never set to a number less than 0.

My request is that if the setting is not defined in the pbs_mom config file
then it should be returned to the default, and that this should be achievable
via the remote_reconfig.