emqx/examples/overload_protection.conf.example
2023-06-20 14:53:14 +08:00

26 lines
893 B
Plaintext

##--------------------------------------------------------------------
## Overload Protection
##
## Monitoring the load of the system and temporarily disable some features when the load is high
##--------------------------------------------------------------------
## Note: This is an example of how to configure this feature
## you should copy and paste the below data into the emqx.conf for working
## Note: Do not modify this unless you know what this is for
overload_protection {
## set true to enable this
enable = false
## Maximum duration of delay for background task execution during high load conditions
backoff_delay = 1
## When at high load, skip forceful GC
backoff_gc = false
## When at high load, skip process hibernation
backoff_hibernation = true
## When at high load, close new incoming connections
backoff_new_conn = true
}