title: Spring Scheduler code within an App with multiple instances with multiple JVMs
body: <p>I have a spring scheduler task configured with either of <code>fixedDelay</code> or <code>cron</code>, and have multiple instances of this app running on multiple JVMs.</p>
  
  <p>The default behavior is all the instances are executing the scheduler task.</p>
  
  <p>Is there a way by which we can control this behavior so that only one instance will execute the scheduler task and others don't.</p>
  
  <p>Please let me know if you know any approaches.</p>
  
  <p>Thank you</p>