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 15:24] – [Configuring for high # of connections (tested on 16.04)] 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 62: | Line 61: | ||
| timeout server 66000000 # necessary? | timeout server 66000000 # necessary? | ||
| </ | </ | ||
| + | |||
| + | check: | ||
| + | < | ||
| + | pidof haproxy | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| === References === | === References === | ||