overload_protection.conf.example 893 B

12345678910111213141516171819202122232425
  1. ##--------------------------------------------------------------------
  2. ## Overload Protection
  3. ##
  4. ## Monitoring the load of the system and temporarily disable some features when the load is high
  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. ## Note: Do not modify this unless you know what this is for
  9. overload_protection {
  10. ## set true to enable this
  11. enable = false
  12. ## Maximum duration of delay for background task execution during high load conditions
  13. backoff_delay = 1
  14. ## When at high load, skip forceful GC
  15. backoff_gc = false
  16. ## When at high load, skip process hibernation
  17. backoff_hibernation = true
  18. ## When at high load, close new incoming connections
  19. backoff_new_conn = true
  20. }