|
|
4 anos atrás | |
|---|---|---|
| .. | ||
| etc | f3efc89192 refactor(config): replace all ':' with '=' in the *.conf (#5531) | 4 anos atrás |
| include | 4c931470d8 feat(eqmx_retainer): let emqx_retainer can support other types of databases | 4 anos atrás |
| src | 8d653b6d39 Merge pull request #6173 from zmstone/refactor-retainer-use-ordered-set | 4 anos atrás |
| test | c73205a589 Ct helpers migrate (#5943) | 4 anos atrás |
| .gitignore | 56e2a9741f style: ensure newline at EOF for all files | 4 anos atrás |
| README.md | 0cd1c57a54 Migrate plugins from tag 4.2.2 | 5 anos atrás |
| TODO | 0cd1c57a54 Migrate plugins from tag 4.2.2 | 5 anos atrás |
| rebar.config | 0fe3083cd7 build: add erlang 24.0.1 for ci | 4 anos atrás |
The retainer plugin is responsible for storing retained MQTT messages.
etc/emqx_retainer.conf:
## Where to store the retained messages.
## Notice that all nodes in a cluster are to have the same storage_type.
##
## Value: ram | disc | disc_only
## - ram: memory only
## - disc: both memory and disc
## - disc_only: disc only
##
## Default: ram
retainer.storage_type = ram
## Maximum number of retained messages allowed.
##
## Value: Number >= 0
retainer.max_retained_messages = 1000000
## Maximum payload size of a retained message.
##
## Value: Bytes
retainer.max_payload_size = 64KB
## Expiration interval of the retained messages. Never expire if the value is 0.
##
## Value: Duration
## - h: hour
## - m: minute
## - s: second
##
## Examples:
## - 2h: 2 hours
## - 30m: 30 minutes
## - 20s: 20 seconds
##
## Defaut: 0
retainer.expiry_interval = 0
Apache License Version 2.0
EMQ X Team