rate limit

This commit is contained in:
Feng 2015-10-26 09:19:32 +08:00
parent 09047287c4
commit 9a590b2f39
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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