集群配置更新
This commit is contained in:
parent
5847fe51a6
commit
6a8f42a2fb
|
@ -4,22 +4,23 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
org.quartz.scheduler.instanceName: DefaultQuartzScheduler
|
org.quartz.scheduler.instanceName: DefaultQuartzScheduler
|
||||||
|
org.quartz.scheduler.instanceId: AUTO
|
||||||
org.quartz.scheduler.rmi.export: false
|
org.quartz.scheduler.rmi.export: false
|
||||||
org.quartz.scheduler.rmi.proxy: false
|
org.quartz.scheduler.rmi.proxy: false
|
||||||
org.quartz.scheduler.wrapJobExecutionInUserTransaction: false
|
org.quartz.scheduler.wrapJobExecutionInUserTransaction: false
|
||||||
|
|
||||||
org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
|
org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
|
||||||
org.quartz.threadPool.threadCount: 10
|
org.quartz.threadPool.threadCount: 15
|
||||||
org.quartz.threadPool.threadPriority: 5
|
org.quartz.threadPool.threadPriority: 5
|
||||||
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
|
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
|
||||||
|
|
||||||
org.quartz.jobStore.misfireThreshold: 60000
|
org.quartz.jobStore.misfireThreshold: 60000
|
||||||
|
org.quartz.jobStore.maxMisfiresToHandleAtATime: 1
|
||||||
|
|
||||||
#org.quartz.jobStore.class: org.quartz.simpl.RAMJobStore
|
#org.quartz.jobStore.class: org.quartz.simpl.RAMJobStore
|
||||||
|
|
||||||
# for cluster
|
# for cluster
|
||||||
org.quartz.jobStore.tablePrefix = XXL_JOB_QRTZ_
|
org.quartz.jobStore.tablePrefix = XXL_JOB_QRTZ_
|
||||||
org.quartz.scheduler.instanceId: AUTO
|
|
||||||
org.quartz.jobStore.class: org.quartz.impl.jdbcjobstore.JobStoreTX
|
org.quartz.jobStore.class: org.quartz.impl.jdbcjobstore.JobStoreTX
|
||||||
org.quartz.jobStore.isClustered: true
|
org.quartz.jobStore.isClustered: true
|
||||||
org.quartz.jobStore.clusterCheckinInterval: 1000
|
org.quartz.jobStore.clusterCheckinInterval: 5000
|
||||||
|
|
|
@ -74,8 +74,9 @@
|
||||||
|
|
||||||
<bean id="quartzScheduler" lazy-init="false" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
|
<bean id="quartzScheduler" lazy-init="false" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
|
||||||
<property name="dataSource" ref="dataSource" />
|
<property name="dataSource" ref="dataSource" />
|
||||||
<property name="autoStartup" value="true" /> <!--自动启动 -->
|
<property name="autoStartup" value="true" /> <!--自动启动 -->
|
||||||
<property name="startupDelay" value="20" /> <!--延时启动 -->
|
<property name="startupDelay" value="20" /> <!--延时启动,应用启动成功后在启动 -->
|
||||||
|
<property name="overwriteExistingJobs" value="true" /> <!--覆盖DB中JOB:true、以数据库中已经存在的为准:false -->
|
||||||
<property name="applicationContextSchedulerContextKey" value="applicationContextKey" />
|
<property name="applicationContextSchedulerContextKey" value="applicationContextKey" />
|
||||||
<property name="configLocation" value="classpath:quartz.properties"/>
|
<property name="configLocation" value="classpath:quartz.properties"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
Loading…
Reference in New Issue