|
|
před 2 roky | |
|---|---|---|
| .. | ||
| etc | 8aa60cc0a5 feat: generate a minimized emqx.conf | před 3 roky |
| include | dbc10c2eed chore: update copyright year 2023 | před 3 roky |
| src | b08102269a refactor(calendar): refactor datetime-related code and remove redundant | před 2 roky |
| test | a85c948e23 feat(gcp-iot): port GCP IoT Core compatibility layer from e4.4 | před 2 roky |
| .gitignore | 56e2a9741f style: ensure newline at EOF for all files | před 4 roky |
| README.md | 667d66eb1e docs(README): EMQ X -> EMQX | před 4 roky |
| TODO | 0cd1c57a54 Migrate plugins from tag 4.2.2 | před 5 roky |
| rebar.config | 46557c3462 fix(emqtt): upgrade from 1.8.6 to 1.8.7 | před 2 roky |
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
## - ram: memory only
## - disc: both memory and disc
##
## 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
##
## Default: 0
retainer.expiry_interval = 0
Apache License Version 2.0
EMQX Team