[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] Advice needed (long, sorry)
|
Hi, attached you have sysctl.conf and mosquitto.conf files that we used for that.
Also:
Changes to /etc/rc.d/rc.local
defrt=`ip route | grep "^default" | head -1`
ip route change $defrt initcwnd 10
And changes to /etc/security/limits.conf
* soft nofile 100000
* hard nofile 100000
And changes to /etc/pam.d/sshd
session required pam_limits.so
And changes to /etc/ssh/sshd_config
UsePAM yes
Sources we read to tune the aforementioned paramenters:
And... that's all. We configured dozens VM (20-30... I don't remember, but more or less), each one running a java software that creates hundreds of threads each one of them creating a paho client and connecting to the broker over TLS. No subscriptions and no publishing. When we started publishing everything went wrong. Everything on our servers using gigabit LAN.
Sorry (and sorry also Stefano), we did the test without any other planification as we did lots of tests of different types at that moment. As we realized that we were far of 100K connections we tried other strategies. So we have no a very formalized and structured documentation, nor charts, neither a dataset... :-( I remember that we achieved 23.2xx connections.
Hope it helps.
Attachment:
sysctl.conf
Description: Binary data
Attachment:
mosquitto.conf
Description: Binary data