Deployment Parameters Table#
This page lists the command-line options for the yr Python CLI and runtime parameters that can be overridden via TOML configuration file.
For configuration method, refer to the Configuration chapter in Deployment Documentation.
Command-Line Options#
Global Options#
Option |
Description |
Default Value |
|---|---|---|
|
Specify |
|
|
Enable DEBUG level log output. |
Off |
|
Print version and exit. |
None |
|
Display help information and exit. |
None |
yr start#
Option |
Description |
Default Value |
|---|---|---|
|
Start in master node mode. When not specified, starts in worker node (agent) mode. Master node starts by default: |
Worker node mode |
|
Override configuration value from command line, can be specified repeatedly. |
None |
|
Only available in agent mode. Pulls service discovery information from specified |
None |
yr launch#
Option |
Description |
Default Value |
|---|---|---|
|
Name of component to start, such as |
Required |
|
Inherit parent process environment variables. |
Off |
|
Replace |
None |
yr status / yr health#
Option |
Description |
Default Value |
|---|---|---|
|
Specify session file path. |
|
yr stop#
Option |
Description |
Default Value |
|---|---|---|
|
Force stop: send SIGKILL to daemon and execute forceful termination on all component PIDs in session. |
Off (default sends SIGTERM, wait up to 40 seconds) |
|
Specify session file path. Path must exist. |
|
yr config dump#
Option |
Description |
Default Value |
|---|---|---|
|
Override configuration value from command line, can be specified repeatedly. |
None |
TOML Configuration Fields#
The following fields can be overridden in user’s config.toml under [values] or corresponding sub-tables, or temporarily overridden via -s/--set on command line. Default values with {{ ... }} indicate fields are automatically populated by CLI at startup, no manual configuration needed.
[values] Core Fields#
Field |
Default Value |
Description |
|---|---|---|
|
|
Node IP, automatically obtains current machine IP. |
|
|
Deployment directory, defaults to |
|
|
Available CPU (millicores), uses all system CPUs by default. |
|
|
Available memory (MB), collected from system by default. |
|
|
Data system available shared memory (MB), defaults to 1/3 of total memory. |
|
|
Node unique ID, format is |
|
|
Global log level, values: |
[values.fs.log] Function System Logs#
Field |
Default Value |
Description |
|---|---|---|
|
|
Function system log level. |
|
|
Log directory. |
|
|
Maximum single file size (MB). |
|
|
Rolling retained file count. |
|
|
Log retention days. |
|
|
Whether to compress historical logs. |
|
|
Whether to output to stderr simultaneously. |
[values.fs.tls] Function System TLS#
Field |
Default Value |
Description |
|---|---|---|
|
|
Whether to enable function system TLS. |
|
|
Certificate root directory, certificate files with relative paths are resolved based on this directory. |
|
|
CA certificate file name. |
|
|
Certificate file name. |
|
|
Private key file name. |
[values.fs.metrics] Metrics Configuration#
Field |
Default Value |
Description |
|---|---|---|
|
|
metrics configuration JSON string. |
|
|
metrics configuration file path. |
[values.ds.curve] Data System Security#
Field |
Default Value |
Description |
|---|---|---|
|
|
Whether to enable Curve/ZMQ security capabilities. |
|
|
Curve key directory. |
|
|
Cache authentication method, values: |
|
|
Whether to enable cache authentication. |
[values.etcd] etcd Configuration#
Field |
Default Value |
Description |
|---|---|---|
|
|
Whether to enable multi-master mode (multiple etcd nodes). |
|
|
etcd authentication type, values: |
|
|
etcd key prefix, used to isolate data when multiple clusters share the same etcd, configured value cannot contain spaces. |
[[values.etcd.address]] etcd Node Address#
Field |
Default Value |
Description |
|---|---|---|
|
|
etcd node IP. |
|
|
etcd client port. |
|
|
etcd peer port. |
[values.etcd.auth] etcd TLS Certificate#
Field |
Default Value |
Description |
|---|---|---|
|
|
Certificate root directory. |
|
|
CA file name. |
|
|
Server certificate file name. |
|
|
Server private key file name. |
|
|
Client certificate file name. |
|
|
Client private key file name. |
Component Addresses and Ports#
Configuration Section |
Field |
Default Value |
Description |
|---|---|---|---|
|
|
|
ds_master address. |
|
|
|
ds_master port. |
|
|
|
ds_worker address. |
|
|
|
ds_worker port. |
|
|
|
function_master address. |
|
|
|
global scheduler port, |
|
|
|
function_proxy address. |
|
|
|
function_proxy HTTP port. |
|
|
|
function_proxy gRPC port. |
|
|
|
function_agent address. |
|
|
|
function_agent port. |
[values.dashboard] Dashboard#
Field |
Default Value |
Description |
|---|---|---|
|
|
Dashboard address. |
|
|
Dashboard HTTP port. |
|
|
Dashboard gRPC port. |
|
|
Whether to enable Dashboard TLS. |
|
|
Dashboard TLS certificate path (absolute path). |
|
|
Dashboard TLS private key path (absolute path). |
|
|
Prometheus address, format |
[mode.*] Component Start/Stop Control#
Additional components can be enabled on top of default components via [mode.master] or [mode.agent].
Field |
Type |
Description |
|---|---|---|
|
|
Whether to start frontend component. |
|
|
Whether to start dashboard component. |
|
|
Whether to start collector component. |
|
|
Whether to start meta service component. |
|
|
Whether to start function_scheduler component (multi-master scenario). |
[COMPONENT.args] Component Startup Parameters#
Component command-line parameters can be overridden via [COMPONENT.args], supported component names are the same as component names listed in [mode.*] and etcd, ds_master, ds_worker, function_master, function_proxy, function_agent.
Common override examples:
[function_master.args]
runtime_recover_enable = true
litebus_thread_num = 25
system_timeout = 2000000
[function_proxy.args]
enable_metrics = false
litebus_thread_num = 25
runtime_recover_enable = true
[ds_worker.args]
heartbeat_interval_ms = 120000
node_dead_timeout_s = 120
[COMPONENT.env] Component Environment Variables#
Environment variables can be injected into component processes via [COMPONENT.env]. Merge rules:
Based on current shell environment variables.
Then apply variables in
[COMPONENT.env](component configuration takes priority to override when same name).If
LD_LIBRARY_PATH/LD_PRELOADexist in both shell and component configuration, concatenate asshell_value:config_value.