title: How to limit both total number of Quartz jobs and number running on single node in a cluster
body: <p>If I have a 3 node cluster.  I need to run a specific Quartz job as follows:</p>
  
  <ul>
  <li>There is at a given time, many (say 30) of these jobs that need to be run.</li>
  <li>Limit the number of a that Quartz job running on all clusters combined at the same time (to 10, because of system resources)</li>
  <li>Limit the number of a that Quartz job running on a single server at the same time (to 5, because of CPU load)</li>
  </ul>
  
  <p>How do I limit both the total number of simultaneous job instances to 10, and the number running on any one host to 5?  Is this even possible?</p>
  
  <p>Note that I cannot limit the number of threads as I have other jobs that need to run on the same servers at the same time, and those need threads as well.</p>
  
  <p>Thanks.</p>