Fixes https://emqx.atlassian.net/browse/EMQX-11036 From `logger_disk_log_h:open_disk_log`: ```erlang open_disk_log(Name,File,Type,MaxNoBytes,MaxNoFiles) -> case filelib:ensure_dir(File) of ok -> Size = if Type==halt -> MaxNoBytes; Type==wrap -> {MaxNoBytes,MaxNoFiles} %% <------- end, Opts = [{name, Name}, {file, File}, {size, Size}, {type, Type}, {linkto, self()}, {repair, false}, {format, external}, {notify, true}, {quiet, true}, {mode, read_write}], case disk_log:open(Opts) of ``` Affects all file loggers (audit included): ``` % emqx_config_logger:update_log_handler/1 -> ok iex(emqx@127.0.0.1)14> Config override: log.file.emqx_audit is updated, but failed to add handler: {handler_not_added, {badarg, [{size, {infinity, 10}}, {type, wrap}, {linkto, <0.1952.0>}, {repair, false}, {format, external}, {notify, true}, {quiet, true}, {mode, read_write}]}} ``` |
||
|---|---|---|
| .. | ||
| etc | ||
| include | ||
| src | ||
| test | ||
| .gitignore | ||
| README.md | ||
| rebar.config | ||
Configuration Management
This application provides configuration management capabilities for EMQX.
At compile time it reads all configuration schemas and generates the following files:
config-en.md: documentation for all configuration options.schema-en.json: JSON description of all configuration schema options.
At runtime, it provides:
- Cluster configuration synchronization capability. Responsible for synchronizing hot-update configurations from the HTTP API to the entire cluster and ensuring consistency.
In addition, this application manages system-level configurations such as cluster, node, log.