|
|
4 лет назад | |
|---|---|---|
| .. | ||
| etc | 8aaa2e8333 feat(retainer): add option to stop publish clear message | 4 лет назад |
| include | 6354e75626 chore: update copyrights | 4 лет назад |
| priv | 8aaa2e8333 feat(retainer): add option to stop publish clear message | 4 лет назад |
| src | 5addf91873 fix(retainer): Fix topic printing | 4 лет назад |
| test | 5addf91873 fix(retainer): Fix topic printing | 4 лет назад |
| .gitignore | 686c006d6e refactor(proj): Add apps | 5 лет назад |
| README.md | e09e5673eb docs(README): EMQ X -> EMQX | 4 лет назад |
| TODO | 0cd1c57a54 Migrate plugins from tag 4.2.2 | 5 лет назад |
| rebar.config | 2fda0a1565 chore(apps): Sync again all apps | 5 лет назад |
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
EMQX Team