| How To Prevent Job Submissions
An interesting thread just went by on the Grid Engine users alias about how to disable job submissions during grid maintenance. After several suggestions, Andreas posted a nice solution worth sharing.
The obvious solutions are to disable things: disable the queue, disable the host, stop the qmaster, etc. What Andreas suggested was instead to create an empty user set (aka user list or access list) and set that as the ACL for your queue(s) (via the user_lists queue attribute). When a queue has the user_lists attribute set, only users who are members of one of the listed user lists are allowed to submit jobs to that queue. If the attribute contains only a reference to an empty list, then no user is allowed to submit jobs to that queue.
I might extend Andreas' solution a little to say that instead of being empty, the user list should contain only the administrative user who is doing the maintenance. That way, the administrator can submit test jobs to make sure that the grid works before opening it back up to the public.
|