Feng 10 лет назад
Родитель
Сommit
9a590b2f39
2 измененных файлов с 4 добавлено и 0 удалено
  1. 2 0
      rel/files/emqttd.config.development
  2. 2 0
      rel/files/emqttd.config.production

+ 2 - 0
rel/files/emqttd.config.development

@@ -185,6 +185,8 @@
             {max_clients, 512},
             %% Socket Access Control
             {access, [{allow, all}]},
+            %% Rate Limit. Format is 'burst, rate', Unit is KB/Sec
+            %% {rate_limit, "100,10"}, %% 100K burst, 10K rate
             %% Socket Options
             {sockopts, [
                 %Set buffer if hight thoughtput

+ 2 - 0
rel/files/emqttd.config.production

@@ -175,6 +175,8 @@
             {acceptors, 16},
             %% Maximum number of concurrent clients
             {max_clients, 8192},
+            %% Rate Limit. Format is 'burst, rate', Unit is KB/Sec.
+            %% {rate_limit, "10,1"}, %% 10K burst, 1K rate
             %% Socket Access Control
             {access, [{allow, all}]},
             %% Socket Options