echo “10152 65535″ > /proc/sys/net/ipv4/ip_local_port_range
sysctl -w fs.file-max=128000
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.core.somaxconn=250000
sysctl -w net.ipv4.tcp_max_syn_backlog=2500
sysctl -w net.core.netdev_max_backlog=2500
ulimit -n 10240


# To support lots of incoming TCP connections
echo “10152 65535″ > /proc/sys/net/ipv4/ip_local_port_range
sysctl -w fs.file-max=128000
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.core.somaxconn=250000
sysctl -w net.ipv4.tcp_max_syn_backlog=2500
sysctl -w net.core.netdev_max_backlog=2500
ulimit -n 10240

# For Redis
# WARNING overcommit_memory is set to 0! Background save may fail under low
# memory condition. To fix this issue add 'vm.overcommit_memory = 1' to
# /etc/sysctl.conf and then reboot or run the command 'sysctl
# vm.overcommit_memory=1' for this to take effect.

Add server tuning advice from Redis.
Add server tuning advice from Redis.
