Im using redis 2.8.3 server to store key value pairs in redis.
redis.conf
port 6378
bind 127.0.0.1
databases 16
After restarting the redis-server
redis-server /home/redis.conf
Im loosing all the keys which i have already stored in redis.Can anyone help me to solve this.
You can save snapshot to disk and read from that file, if you don't do it your redis database will be empty when reboot.
Redis will lose data if a master shard is lost when the workload is high enough that the “partial sync” stops.
When Redis goes down, you have to deal with it. It is the same as if your file system is gone or your SQL Server is down. A lot of those systems disable all writes and set their cluster in maintenance state.
All Redis data resides in memory, which enables low latency and high throughput data access. Unlike traditional databases, In-memory data stores don't require a trip to disk, reducing engine latency to microseconds.
If you run a 'BGSAVE' before you shut down the server does that help?
The shutdown script should always run that....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With