You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redis will issue two warnings on start-up when run on a EC2 machine. Both are config settings to be made on the host machine. After having made those settings Redis needs to be restarted.
# Fix "WARNING overcommit_memory is set to 0! Background save may fail under low memory condition."
sudo sysctl vm.overcommit_memory=1
# Fix "WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis"
sudo sh -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
sudo sh -c "echo never > /sys/kernel/mm/transparent_hugepage/defrag"