<p>I am working on a Spring Boot project which has a scheduler service using Quartz. This scheduler service runs a specific scheduled or cron job by calling a separate micro-service.</p>

<p>Now I am planning to deploy my micro-services on kubernetes and I want to make sure that my scheduler service is also clustered. I have noticed that Quartz s<a href="http://www.quartz-scheduler.org/documentation/quartz-2.3.0/configuration/ConfigJDBCJobStoreClustering.html" rel="noreferrer">upports clustering</a> using JDBC-JobStore but I am not entirely sure if such a scenario can be deployed using kubernetes. Will it work if I have 3 pods of the Scheduler service managed and scaled using kubernetes?</p>

<p>Yes as long as you run the quartz in <strong>Cluster Mode</strong> and set <strong>org.quartz.scheduler.instanceId = AUTO</strong> it does work.</p>

<p>In case of scaling, just some pods will be added or get removed, Quartz will take care of it since each instance would have its distinct instance ID.</p>
