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

22 lines
683 B
Plaintext

##--------------------------------------------------------------------
## Flapping Detect
##
## Ban the client when the times of connections exceed the limit in the time window
##--------------------------------------------------------------------
## 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
flapping_detect {
## Feature switch
enable = false
## Time window for flapping detection
window_time = 1m
## Maximum number of connects allowed for a MQTT Client in window_time
max_count = 15
## How long the flapping clientid will be banned
ban_time = 5m
}