profile for Gajendra D Ambi on Stack Exchange, a network of free, community-driven Q&A sites

Tuesday, March 2, 2021

Redis server tuning

 TLDR, Here are some of the performance tuning settings for my giant redis on ubuntu 18.

1.     tcp-keepalive 0 at /etc/redis/redis.conf

2.     sysctl -w net.core.somaxconn=65365 at /etc/rc.local

3.     echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf

4.     uncomment the following lines at (if you are using redis in clustering mode) /etc/redis/redis.conf
save 300 10

save 300 10
save 60 10000

rdbcompression no
rdbchecksum no

appendonly no

5.     Add the following line echo never > /sys/kernel/mm/transparent_hugepage/enabled  to /etc/rc.local before exit 0

6.     config set  timeout 300

7.     config set loglevel notice

8.     config set maxmemory-policy volatile-lru

9.     config set maxmemory 491000MB 

6-8 are run after you enter redis-cli command line by running redis-cli and to know more about what these are go here.

No comments:

Post a Comment