Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lwc:mqtt [2020/11/26 19:35] – created John Harrison | lwc:mqtt [2021/10/20 09:31] (current) – John Harrison | ||
---|---|---|---|
Line 31: | Line 31: | ||
erase all retained messages: mosquitto_sub -i < | erase all retained messages: mosquitto_sub -i < | ||
\\ | \\ | ||
- | |||
===== HA Proxy: ===== | ===== HA Proxy: ===== | ||
Line 37: | Line 36: | ||
==== Configuring for high # of connections (tested on 16.04) ==== | ==== Configuring for high # of connections (tested on 16.04) ==== | ||
- | edit / | + | edit '' |
- | | + | < |
- | | + | fs.file-max = 10000000 |
- | | + | fs.nr_open = 10000000 |
- | | + | net.ipv4.tcp_mem = 786432 1697152 1945728 |
- | | + | net.ipv4.tcp_rmem = 4096 4096 16777216 |
- | | + | net.ipv4.tcp_wmem = 4096 4096 16777216 |
+ | net.ipv4.ip_local_port_range = 15000 65535 | ||
+ | </ | ||
edit / | edit / | ||
- | > * soft nofile 10000000 | + | <code> |
- | + | * soft nofile 10000000 | |
- | > * hard nofile 10000000 | + | * hard nofile 10000000 |
- | + | root soft nofile 10000000 | |
- | > root soft nofile 10000000 | + | root hard nofile 10000000 |
+ | </ | ||
- | > root hard nofile 10000000\\ | + | add to ''/ |
+ | < | ||
+ | maxconn 2000000 | ||
+ | timeout connect 3000000 # necessary? | ||
+ | timeout client 66000000 # necessary? | ||
+ | timeout server 66000000 # necessary? | ||
+ | </code> | ||
- | add to / | + | check: |
- | In Global: | + | < |
- | * maxconn 2000000 | + | pidof haproxy |
- | | + | cat / |
- | * maxconn 2000000 | + | </ |
- | * timeout connect 3000000 # necessary? | + | |
- | * timeout client 66000000 # necessary? | + | |
- | * timeout server 66000000 # necessary? | + | |
- | In | + | [[https:// |
- | References\\ | + | === References |
* [[http:// | * [[http:// |