Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lwc:mqtt [2021/09/21 08:40] – 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.file-max = 10000000 | ||
Line 44: | Line 43: | ||
net.ipv4.tcp_rmem = 4096 4096 16777216 | net.ipv4.tcp_rmem = 4096 4096 16777216 | ||
net.ipv4.tcp_wmem = 4096 4096 16777216 | net.ipv4.tcp_wmem = 4096 4096 16777216 | ||
- | net.ipv4.ip_local_port_range = 1000 65535 | + | net.ipv4.ip_local_port_range = 15000 65535 |
</ | </ | ||
Line 55: | Line 54: | ||
</ | </ | ||
- | add to / | + | add to '' |
- | In Global: | + | < |
- | * maxconn 2000000 | + | maxconn 2000000 |
- | * | + | timeout connect 3000000 # necessary? |
- | * maxconn 2000000 | + | timeout client 66000000 # necessary? |
- | * timeout connect 3000000 # necessary? | + | timeout server 66000000 # necessary? |
- | * timeout client 66000000 # necessary? | + | </ |
- | * timeout server 66000000 # necessary? | + | |
+ | check: | ||
+ | < | ||
+ | pidof haproxy | ||
+ | cat / | ||
+ | </ | ||
- | In | + | [[https:// |
- | References\\ | + | === References |
* [[http:// | * [[http:// |