|
|
@@ -562,8 +562,8 @@ zone.external.hibernate_after = 60s
|
|
|
## Publish limit for the external MQTT connections.
|
|
|
##
|
|
|
## Value: Number,Duration
|
|
|
-## Example: 10 messages per minute.
|
|
|
-## zone.external.publish_limit = 10,1m
|
|
|
+## Example: 100 messages per 10 seconds.
|
|
|
+## zone.external.publish_limit = 100,10s
|
|
|
|
|
|
## Enable ACL check.
|
|
|
##
|
|
|
@@ -874,14 +874,11 @@ listener.tcp.external.active_n = 100
|
|
|
## Value: String
|
|
|
listener.tcp.external.zone = external
|
|
|
|
|
|
-## Rate limit for the external MQTT/TCP connections. Format is 'rate,burst'.
|
|
|
+## Rate limit for the external MQTT/TCP connections. Format is 'limit,duration'.
|
|
|
##
|
|
|
-## Value: rate,burst
|
|
|
-## - rate: The average limit value for per second
|
|
|
-## - burst: The maximum allowed for each check, To avoid frequent restriction
|
|
|
-## this value is recommended to be set to `(max_packet_size * active_n)/2`
|
|
|
-## Unit: Bps
|
|
|
-## listener.tcp.external.rate_limit = 1024,52428800
|
|
|
+## Value: limit,duration
|
|
|
+## Default: 100KB incoming per 10 seconds.
|
|
|
+## listener.tcp.external.rate_limit = 100KB,10s
|
|
|
|
|
|
## The access control rules for the MQTT/TCP listener.
|
|
|
##
|
|
|
@@ -1010,12 +1007,9 @@ listener.tcp.internal.zone = internal
|
|
|
##
|
|
|
## See: listener.tcp.$name.rate_limit
|
|
|
##
|
|
|
-## Value: rate,burst
|
|
|
-## - rate: The average limit value for per second
|
|
|
-## - burst: The maximum allowed for each check, To avoid frequent restriction
|
|
|
-## this value is recommended to be set to `(max_packet_size * active_n)/2`
|
|
|
-## Unit: Bps
|
|
|
-## listener.tcp.internal.rate_limit = 1000000,524288000
|
|
|
+## Value: limit,duration
|
|
|
+## Default: 1MB incoming per second.
|
|
|
+## listener.tcp.internal.rate_limit = 1MB,1s
|
|
|
|
|
|
## The TCP backlog of internal MQTT/TCP Listener.
|
|
|
##
|
|
|
@@ -1123,12 +1117,9 @@ listener.ssl.external.access.1 = allow all
|
|
|
|
|
|
## Rate limit for the external MQTT/SSL connections.
|
|
|
##
|
|
|
-## Value: rate,burst
|
|
|
-## - rate: The average limit value for per second
|
|
|
-## - burst: The maximum allowed for each check, To avoid frequent restriction
|
|
|
-## this value is recommended to be set to `(max_packet_size * active_n)/2`
|
|
|
-## Unit: Bps
|
|
|
-## listener.ssl.external.rate_limit = 1024,52428800
|
|
|
+## Value: limit,duration
|
|
|
+## Default: 100KB incoming per 10 seconds.
|
|
|
+## listener.ssl.external.rate_limit = 100KB,10s
|
|
|
|
|
|
## Enable the Proxy Protocol V1/2 if the EMQ cluster is deployed behind
|
|
|
## HAProxy or Nginx.
|
|
|
@@ -1360,12 +1351,9 @@ listener.ws.external.max_conn_rate = 1000
|
|
|
|
|
|
## Rate limit for the MQTT/WebSocket connections.
|
|
|
##
|
|
|
-## Value: rate,burst
|
|
|
-## - rate: The average limit value for per second
|
|
|
-## - burst: The maximum allowed for each check, To avoid frequent restriction
|
|
|
-## this value is recommended to be set to `(max_packet_size * 1)/2`
|
|
|
-## Unit: Bps
|
|
|
-## listener.ws.external.rate_limit = 1024,524288
|
|
|
+## Value: limit,duration
|
|
|
+## Default: 100KB incoming per 10 seconds.
|
|
|
+## listener.ws.external.rate_limit = 100KB,10s
|
|
|
|
|
|
## Zone of the external MQTT/WebSocket listener belonged to.
|
|
|
##
|
|
|
@@ -1571,12 +1559,9 @@ listener.wss.external.max_conn_rate = 1000
|
|
|
|
|
|
## Rate limit for the MQTT/WebSocket/SSL connections.
|
|
|
##
|
|
|
-## Value: rate,burst
|
|
|
-## - rate: The average limit value for per second
|
|
|
-## - burst: The maximum allowed for each check, To avoid frequent restriction
|
|
|
-## this value is recommended to be set to `(max_packet_size * 1)/2`
|
|
|
-## Unit: Bps
|
|
|
-## listener.wss.external.rate_limit = 1024,524288
|
|
|
+## Value: limit,duration
|
|
|
+## Default: 100KB incoming per 10 seconds.
|
|
|
+## listener.wss.external.rate_limit = 100KB,10s
|
|
|
|
|
|
## Zone of the external MQTT/WebSocket/SSL listener belonged to.
|
|
|
##
|