1. Home
  2. Docs
  3. Spectr
  4. The configuration
  5. Recommendations for OS tuning

Recommendations for OS tuning

Recommended kernel parameters

Changes must be made to the file /etc/sysctl.conf:

kernel.shmmax = 2473822720
kernel.shmall = 4097152000
net.core.rmem_default = 262144
net.core.rmem_max = 8388608
net.core.wmem_default = 262144
net.core.wmem_max = 8388608
net.ipv4.tcp_syncookies = 1
net.ipv4tcp_tw_recycle = 0
net.ipv4tcp_tw_reuse = 0
net.ipv4.tcp_keepalive_time = 10
net.ipv4.tcp_fin_timeout = 5

Then execute a command to apply the changes:

sysctl -p

Setting OS limits for a large number of connections

For Spectr to serve a large number of concurrent users, it is necessary to increase the limit on the number of descriptors in Linux. You can do that in a file /etc/security/limits.confwhere you need to prescribe:

* soft nofile 16384
* hard nofile 16384