|
|
|
|
@ -51,8 +51,8 @@ public class JobScheduleHelper {
|
|
|
|
|
}
|
|
|
|
|
logger.info(">>>>>>>>> init xxl-job admin scheduler success.");
|
|
|
|
|
|
|
|
|
|
// pre-read count: treadpool-size * trigger-qps (each trigger cost 50ms, qps = 1000/50 = 20)
|
|
|
|
|
int preReadCount = (XxlJobAdminBootstrap.getInstance().getTriggerPoolFastMax() + XxlJobAdminBootstrap.getInstance().getTriggerPoolSlowMax()) * 20;
|
|
|
|
|
// pre-read count: treadpool-size * trigger-qps (each trigger cost 100ms, qps = 1000/100 = 100)
|
|
|
|
|
int preReadCount = (XxlJobAdminBootstrap.getInstance().getTriggerPoolFastMax() + XxlJobAdminBootstrap.getInstance().getTriggerPoolSlowMax()) * 10;
|
|
|
|
|
|
|
|
|
|
// do schedule
|
|
|
|
|
while (!scheduleThreadToStop) {
|
|
|
|
|
|