retainer.conf.example 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. ##--------------------------------------------------------------------
  2. ## Retainer
  3. ##
  4. ## Configuration related to handling PUBLISH packets with a retain flag set to 1
  5. ##--------------------------------------------------------------------
  6. retainer {
  7. ## Message retention time, default is 0 means the message will never expire
  8. msg_expiry_interval = 5s
  9. ## Maximum message size allowed
  10. max_payload_size = 1MB
  11. ## When the retained flag of the PUBLISH message is set and Payload is empty, whether to continue to publish the message
  12. stop_publish_clear_msg = false
  13. ## Maximum retained messages delivery rate per session
  14. delivery_rate = "1000/s"
  15. ## Retained messages store backend
  16. backend {
  17. ## Built-in database (Mnesia)
  18. type = built_in_database
  19. ## Specifies whether the messages are stored in RAM or persisted on disk
  20. ## Type: enum: ram | disc
  21. storage_type = ram
  22. ## Maximum number of retained messages. 0 means no limit
  23. max_retained_messages = 0
  24. }
  25. }