slow_subs.conf.example 1012 B

12345678910111213141516171819202122232425262728
  1. ##--------------------------------------------------------------------
  2. ## Slow Subscribers Statistics
  3. ##
  4. ## Count subscribers with topics whose transfer time exceeds the threshold
  5. ##--------------------------------------------------------------------
  6. ## Note: This is an example of how to configure this feature
  7. ## you should copy and paste the below data into the emqx.conf for working
  8. slow_subs {
  9. ## Stats Threshold
  10. threshold = 500ms
  11. ## Expire time of the record which in Top-K record
  12. expire_interval = 300ms
  13. ## Maximum number of Top-K record
  14. top_k_num = 10
  15. ## Stats Type
  16. ## Value:
  17. ## - whole: from the time the message arrives at EMQX until the message transmission completes
  18. ## - internal: from when the message arrives at EMQX until when EMQX starts delivering the message
  19. ## - response: from the time EMQX starts delivering the message until the message transmission completes
  20. stats_type = whole
  21. ## use true to enable this
  22. enable = false
  23. }