title | summary |
---|---|
Scheduling Configuration File |
The Scheduling configuration file includes multiple configuration items such as node name, data path, and node URL. |
The Scheduling node is used for providing the scheduling
microservice for PD. This document is applicable only in PD microservice mode.
Tip:
If you need to adjust the value of a configuration item, refer to Modify the configuration.
- The name of the Scheduling node
- Default value:
"Scheduling"
- To start multiple Scheduling nodes, use a unique name for each node.
- The directory in which the Scheduling node stores data
- Default value:
"default.${name}"
- The client URL that the current Scheduling node listens to
- Default value:
"http://127.0.0.1:3379"
- When deploying a cluster, you must specify the IP address of the current host as
listen-addr
(for example,"http://192.168.100.113:3379"
). If the node runs on Docker, specify the Docker IP address as"http://0.0.0.0:3379"
.
- The URL for the client to access the Scheduling node
- Default value:
"${listen-addr}"
- In some situations such as in Docker or NAT network environments, if a client cannot access the Scheduling node through the default client URLs listened to by the Scheduling node, you must manually set
advertise-listen-addr
for client access. - For example, the internal IP address of Docker is
172.17.0.1
, while the IP address of the host is192.168.100.113
and the port mapping is set to-p 3379:3379
. In this case, you can setadvertise-listen-addr="http://192.168.100.113:2379"
. Then, the client can find this service throughhttp://192.168.100.113:2379
.
- The list of backend endpoints of other Scheduling nodes that the current Scheduling node listens to
- Default value:
"http://127.0.0.1:2379"
- The timeout of the Scheduling Primary Key lease. After the timeout, the system re-elects a Primary.
- Default value:
3
- Unit: seconds
Configuration items related to security
- The path of the CA file
- Default value: ""
- The path of the Privacy Enhanced Mail (PEM) file that contains the X.509 certificate
- Default value: ""
- The path of the PEM file that contains the X.509 key
- Default value: ""
- Controls whether to enable log redaction in Scheduling node logs.
- When you set the configuration value to
true
, user data is redacted in Scheduling node logs. - Default value:
false
Configuration items related to logs.
- Specifies the level of the output log.
- Optional value:
"debug"
,"info"
,"warn"
,"error"
,"fatal"
- Default value:
"info"
- The log format
- Optional value:
"text"
,"json"
- Default value:
"text"
- Controls whether to disable the automatically generated timestamp in logs.
- Default value:
false
Configuration items related to the log file
- The maximum size of a single log file. When this value is exceeded, the system automatically splits the log into several files.
- Default value:
300
- Unit: MiB
- Minimum value:
1
- The maximum number of days in which a log is kept.
- If the configuration item is unset or set to the default value
0
, Scheduling does not clean up log files. - Default value:
0
- The maximum number of log files to be kept.
- If the configuration item is unset or set to the default value
0
, Scheduling keeps all log files. - Default value:
0
Configuration items related to monitoring
- The interval at which monitoring metric data is pushed to Prometheus
- Default value:
15s