Router configurations
This topic describes router configurations.
This topic describes server configurations of MOSN.
In the configuration structure of MOSN, servers
indicates a server array, but only one server is supported currently.
server
describes the following basic global parameters of MOSN.
{
"default_log_path":"",
"default_log_level":"",
"global_log_roller":"",
"graceful_timeout":"",
"processor":"",
"listeners":[]
}
The default error log path, which supports a complete log path, stdout, and stderr.
The default error log level. Valid values: DEBUG
, INFO
, WARN
, ERROR
, and FATAL
.
INFO
.size
: The log size threshold (in MB) to start rolling.age
: The number of days during which the logs will be saved.keep
: The maximum number of logs to be saved.compress
: Specifies whether to compress logs. Valid values: on and off."global_log_roller": "size=100 age=10 keep=10 compress=off"
time
: The time interval (hours) for rolling."global_log_roller":"time=1"
The number of GOMAXPROCS
used by MOSN.
Settings for a group of Listeners.
This topic describes router configurations.