emqx/apps/emqx_retainer
JianBo He 10ffe11ba0 chore(retainer): update appup.src 2021-12-01 17:11:40 +08:00
..
etc feat(retainer): add option to stop publish clear message 2021-12-01 17:11:38 +08:00
include chore: update copyrights 2021-04-23 20:43:00 +02:00
priv feat(retainer): add option to stop publish clear message 2021-12-01 17:11:38 +08:00
src chore(retainer): update appup.src 2021-12-01 17:11:40 +08:00
test test(retainer): testcase for stop_publish_clear_msg 2021-12-01 17:11:40 +08:00
.gitignore refactor(proj): Add apps 2020-12-04 22:11:53 +01:00
README.md refactor(proj): Add apps 2020-12-04 22:11:53 +01:00
TODO refactor(proj): Add apps 2020-12-04 22:11:53 +01:00
rebar.config chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00

README.md

EMQ X Retainer

The retainer plugin is responsible for storing retained MQTT messages.

Configuration

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

License

Apache License Version 2.0

Author

EMQ X Team