Slurm is a highly configurable open source workload manager. See the Slurm project site for an overview.
Follow the instructions in the README for details on instructions on extending and configuring the Project for your environment.