SchedulerxWorker configuration parameters
Updated at:
This topic describes the configuration parameters for SchedulerxWorker.
The following table describes the SchedulerxWorker configuration parameters.
| Parameter | Description | Default value |
setEndpoint(String endpoint) | Sets the address of the address server for each region. | None |
setNamespace(String namespace) | Sets the namespace ID. | None |
setGroupId(String groupId) | Create an application in the console. When you connect the client, specify the Application ID (appKey). | None |
setAliyunAccessKey(String aliyunAccessKey) | Sets the AccessKey ID of your Alibaba Cloud account. This parameter is not required if you use an appKey. | None |
setAliyunSecretKey(String aliyunSecretKey) | Sets the AccessKey secret of your Alibaba Cloud account. This parameter is not required if you use an appKey. | None |
setEnableBatchWork(boolean enableBatchWork) | Specifies whether to enable grid computing. This feature is enabled by default.
| true |
setHost(String host) | If the client has multiple network interface cards (NICs) or is in a VPN environment, the automatically obtained local IP address may be incorrect. Use this interface to set the IP address manually. | None |
setPort(int port) | You can customize the client listening port. | None |
setClassLoader(ClassLoader userClassLoader) | For non-Spring applications that use other third-party frameworks, you may need to set a custom class loader. | None |
setBlockAppStart(boolean block) | Specifies whether to block the application process from starting if SchedulerX initialization fails. | None |
setEnableUnits(String units) | The whitelist for unit fencing. To specify multiple units, separate them with commas (,). Do not include spaces. For example: `worker.setEnableUnits("center,zbyun");` | None |
setEnableSites(String sites) | The whitelist for data center fencing. To specify multiple data centers, separate them with commas (,). Do not include spaces. For example: `worker.setEnableSites("center.na61,center.na62");` | None |
setDisableUnits(String units) | The blacklist for unit fencing. If a whitelist is set, the whitelist takes precedence and the blacklist is ignored. To specify multiple units, separate them with commas (,). Do not include spaces. | None |
setDisableSites(String sites) | The blacklist for data center fencing. If a whitelist is set, the whitelist takes precedence and the blacklist is ignored. To specify multiple data centers, separate them with commas (,). Do not include spaces. | None |
setSlsCollectorEnable(boolean enable) | Specifies whether to enable the Simple Log Service (SLS) log collection feature. | true |
setShareContainerPool(boolean shareContainerPool) | Specifies whether all task executions on the client share a thread pool. This is recommended for scenarios with high-concurrency scheduling of many tasks. | false |
setSharePoolSize(int sharePoolSize) | If you enable the shared thread pool, you can customize the pool size. | 64 |
setLabel(String label) | Sets a label when the client starts. In task management, you can specify this label to execute tasks on specific machines. This is used for scenarios such as grayscale releases and stress testing. | None |
setMapMasterStatusCheckInterval(int interval) | Sets the frequency in milliseconds for a Map model to check if all subtasks are complete. You can set this parameter to increase the scheduling frequency for second-level tasks. | 3000 |
setEnableSecondDelayCycleIntervalMs(boolean enable) | Sets the unit of the `second_delay` to milliseconds. If you set this parameter to `true`, the second-level delay configured in the console becomes a millisecond-level delay. This can increase the scheduling frequency. | false |
Is this page helpful?