This chapter is a configuration manual for ElasticJob-Lite, which can also be referred to as a dictionary if necessary.
ElasticJob-Lite has provided 3 kinds of configuration methods for different situations.
Core Configuration Description
serverLists:
Include IP and port, multiple addresses are separated by commas, such as:
Core Configuration Description
shardingItemParameters:
The sequence numbers and parameters of the Sharding items are separated by equal sign, and multiple key-value pairs are separated by commas. The Sharding sequence number starts from 0
and can’t be greater than or equal to the total number of job fragments. For example:
jobParameter:
With this parameter, user can pass parameters for the business method of job scheduling, which is used to implement the job with parameters. For example: Amount of data acquired each time
, , etc.
monitorExecution:
maxTimeDiffSeconds:
If the time error exceeds the configured seconds, an exception will be thrown when the job starts.
reconcileIntervalMinutes:
In a distributed system, due to network, clock and other reasons, ZooKeeper may be inconsistent with the actual running job. This inconsistency cannot be completely avoided through positive verification. It is necessary to start another thread to periodically calibrate the consistency between the registry center and the job status, that is, to maintain the final consistency of ElasticJob.
Less than 1
means no repair is performed.
jobShardingStrategyType:
For details, see。
jobExecutorServiceHandlerType:
For details, seeThread Pool Strategy。
For details, see。
props:
For details, seeJob Properties。
disabled:
It can be used for deployment, forbid jobs to start, and then start them uniformly after the deployment is completed.
overwrite:
If the value is , local configuration override registry center configuration every time the job is started.
Configuration: no
Distributed Listener Configuration
Configuration