Server configurations
This topic describes server configurations of MOSN.
In the configuration structure of MOSN, indicates a server array, but only one server is supported currently.
The default error log path, which supports a complete log path, stdout, and stderr.
- If this field is left empty, logs are output to stderr by default.
The default error log level. Valid values: DEBUG
, INFO
, , ERROR
, and FATAL
.
- Default value:
INFO
.
- The log roller configuration, which is valid for all logs, for example, tracelog, accesslog, and defaultlog.
- The string type, which supports two modes: rolling by time and rolling by log size. Only one mode is valid at a time.
- Rolling by log size
- : The log size threshold (in MB) to start rolling.
keep
: The maximum number of logs to be saved.compress
: Specifies whether to compress logs. Valid values: on and off.
- Rolling by time
- : The time interval (hours) for rolling.
- The Duration String configuration. Indicates the maximum waiting time for disabling a connection in a hot upgrade of MOSN.
- Default value: 30s.
- If it is not set or is set to 0, the default value is used.
Settings for a group of .
This topic describes router configurations.