connopts
This commit is contained in:
parent
d1dc8e99ad
commit
9c30d37c67
|
@ -168,17 +168,25 @@
|
||||||
%% File to store loaded plugin names.
|
%% File to store loaded plugin names.
|
||||||
{loaded_file, "./data/loaded_plugins"}
|
{loaded_file, "./data/loaded_plugins"}
|
||||||
]},
|
]},
|
||||||
|
|
||||||
%% Listeners
|
%% Listeners
|
||||||
{listeners, [
|
{listeners, [
|
||||||
{mqtt, 1883, [
|
{mqtt, 1883, [
|
||||||
%% Size of acceptor pool
|
%% Size of acceptor pool
|
||||||
{acceptors, 16},
|
{acceptors, 16},
|
||||||
|
|
||||||
%% Maximum number of concurrent clients
|
%% Maximum number of concurrent clients
|
||||||
{max_clients, 8192},
|
{max_clients, 8192},
|
||||||
%% Rate Limit. Format is 'burst, rate', Unit is KB/Sec.
|
|
||||||
%% {rate_limit, "10,1"}, %% 10K burst, 1K rate
|
|
||||||
%% Socket Access Control
|
%% Socket Access Control
|
||||||
{access, [{allow, all}]},
|
{access, [{allow, all}]},
|
||||||
|
|
||||||
|
%% Connection Options
|
||||||
|
{connopts, [
|
||||||
|
%% Rate Limit. Format is 'burst, rate', Unit is KB/Sec
|
||||||
|
%% {rate_limit, "100,10"} %% 100K burst, 10K rate
|
||||||
|
]},
|
||||||
|
|
||||||
%% Socket Options
|
%% Socket Options
|
||||||
{sockopts, [
|
{sockopts, [
|
||||||
%Set buffer if hight thoughtput
|
%Set buffer if hight thoughtput
|
||||||
|
@ -189,16 +197,21 @@
|
||||||
{backlog, 1024}
|
{backlog, 1024}
|
||||||
]}
|
]}
|
||||||
]},
|
]},
|
||||||
|
|
||||||
{mqtts, 8883, [
|
{mqtts, 8883, [
|
||||||
%% Size of acceptor pool
|
%% Size of acceptor pool
|
||||||
{acceptors, 4},
|
{acceptors, 4},
|
||||||
|
|
||||||
%% Maximum number of concurrent clients
|
%% Maximum number of concurrent clients
|
||||||
{max_clients, 512},
|
{max_clients, 512},
|
||||||
|
|
||||||
%% Socket Access Control
|
%% Socket Access Control
|
||||||
{access, [{allow, all}]},
|
{access, [{allow, all}]},
|
||||||
|
|
||||||
%% SSL certificate and key files
|
%% SSL certificate and key files
|
||||||
{ssl, [{certfile, "etc/ssl/ssl.crt"},
|
{ssl, [{certfile, "etc/ssl/ssl.crt"},
|
||||||
{keyfile, "etc/ssl/ssl.key"}]},
|
{keyfile, "etc/ssl/ssl.key"}]},
|
||||||
|
|
||||||
%% Socket Options
|
%% Socket Options
|
||||||
{sockopts, [
|
{sockopts, [
|
||||||
{backlog, 1024}
|
{backlog, 1024}
|
||||||
|
@ -222,6 +235,7 @@
|
||||||
%% {backlog, 1024}
|
%% {backlog, 1024}
|
||||||
%% ]}
|
%% ]}
|
||||||
%%]},
|
%%]},
|
||||||
|
|
||||||
%% HTTP and WebSocket Listener
|
%% HTTP and WebSocket Listener
|
||||||
{http, 8083, [
|
{http, 8083, [
|
||||||
%% Size of acceptor pool
|
%% Size of acceptor pool
|
||||||
|
@ -259,7 +273,6 @@
|
||||||
{busy_dist_port, true}
|
{busy_dist_port, true}
|
||||||
|
|
||||||
]}
|
]}
|
||||||
|
|
||||||
]}
|
]}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue