Skip to content

Instantly share code, notes, and snippets.

@ctigeek
Created November 28, 2017 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctigeek/5a18e7d567368fb493df54cfbc8bbb1f to your computer and use it in GitHub Desktop.
Save ctigeek/5a18e7d567368fb493df54cfbc8bbb1f to your computer and use it in GitHub Desktop.
Quartz clustered configuration.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<quartz>
<add key="quartz.scheduler.instanceName" value="test1" />
<add key="quartz.scheduler.instanceId" value="AUTO" />
<add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
<add key="quartz.threadPool.threadCount" value="10" />
<add key="quartz.threadPool.threadPriority" value="2" />
<add key="quartz.jobStore.misfireThreshold" value="60000" />
<add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" />
<add key="quartz.jobStore.driverDelegateType" value="Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz" />
<add key="quartz.jobStore.lockHandler.type" value="Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz" />
<add key="quartz.jobStore.tablePrefix" value="QRTZ_" />
<add key="quartz.dataSource.testDS.connectionString" value="data source=localhost;initial catalog=quartz;persist security info=True;Integrated Security=SSPI;application name=test;" />
<add key="quartz.dataSource.testDS.provider" value="SqlServer-20" />
<add key="quartz.jobStore.dataSource" value="testDS" />
<add key="quartz.jobStore.useProperties" value="true" />
<add key="quartz.jobStore.clustered" value="true" />
</quartz>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment