-
Notifications
You must be signed in to change notification settings - Fork 0
Redis Info
dmorris99 edited this page Dec 27, 2013
·
1 revision
Remember to set following things for redis server:
- Allow redis to open unlimited files: Immediately take effect (no reboot needed but not persisted) run command ulimit -s unlimited
Persist way: (reboot needed)
root soft nofile 500000
root hard nofile 500000
redis soft nofile 500000
redis hard nofile 500000
- Set overcommit to be true
Immediately take effect (no reboot needed but not persisted)
sysctl vm.overcommit_memory=1
Persist way: (reboot needed)
edit /etc/sysctl.conf
vm.overcommit_memory=1
It will allows the vm to ask for more memory than it currently has (allocated by the host)
ssh into the machine
ssh tradeheroadmin@thvm-redis01.cloudapp.net
Check if the redis server is running (it should answer PONG)
redis-cli ping
To start the server if not running
sudo /etc/init.d/redis-server start
to check the logs
tail -n 200 /var/log/redis/redis-server.log