Implement qlist of small nodes to smallq and long nodes to longq
Ref: Node-level resource not taking effect - #2 by adarsh
You can write a queue job hook that will
- accept small jobs to smallq during work hours and reject long jobs submitted to small queue ( job requesting more than 1 ncpu and more than 2GB memory per job ) with a message mentioning submit to long queue , as it is working hours.
- use queue limits for restricting the number of jobs per user to small queue or long (queue job hook maintains the working hours , as it rejects long / short jobs during working/non-working hours respectively) . Refer: How to assign maximum cores to particular queue? - #2 by adarsh