This commit is contained in:
xueli.xue 2017-01-12 14:49:57 +08:00
parent a1b9bec2f6
commit e229a824ea
1 changed files with 4 additions and 0 deletions

View File

@ -441,6 +441,10 @@ org.quartz.threadPool.threadPriority: 5
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
``` ```
XXL-JOB系统中业务逻辑在远程执行器执行调度中心每次调度仅仅负责一次调度请求执行器会将请求存入执行队列并且立即响应调度中心相比直接在quartz的QuartzJobBean中执行业务逻辑差别就像大象和羽毛
XXL-JOB调度中心中每个JOB逻辑非常 “轻”单个JOB一次运行平均耗时基本在 "100ms" 之内基本是网络开销因此可以保证使用有限的线程支撑大量的JOB并发运行上面配置的10个线程至少可以支撑100个JOB正常运行
##### 5.4.5 @DisallowConcurrentExecution ##### 5.4.5 @DisallowConcurrentExecution
XXL-JOB调度模块的“调度中心”默认不使用该注解即默认开启并行机制因为RemoteHttpJobBean为公共QuartzJobBean这样在多线程调度的情况下调度模块被阻塞的几率很低大大提高了调度系统的承载量。 XXL-JOB调度模块的“调度中心”默认不使用该注解即默认开启并行机制因为RemoteHttpJobBean为公共QuartzJobBean这样在多线程调度的情况下调度模块被阻塞的几率很低大大提高了调度系统的承载量。