I am using redis as session server . All data stored in ram . To store in disk from RAM I use BGSAVE command in cli its stop all services .
Asked
Active
Viewed 1,125 times
2
-
What was your question please? – Mark Setchell Nov 09 '18 at 09:51
-
What is the process to get backup of redis database – user6542291 Nov 09 '18 at 10:20
-
You already said you use `BGSAVE`. – Mark Setchell Nov 09 '18 at 10:20
-
That's not working , when i use BGSAVE its stop redis server due to huge data. – user6542291 Nov 09 '18 at 10:26
1 Answers
1
If you are using Redis in a very write-heavy application, while saving an RDB file on disk or rewriting the AOF log Redis may use up to 2 times the memory normally used. The additional memory used is proportional to the number of memory pages modified by writes during the saving process, so it is often proportional to the number of keys (or aggregate types items) touched during this time. Make sure to size your memory accordingly. https://redis.io/topics/admin
You may need to tune the memory accordingly if this is the case. Related question

rainhacker
- 592
- 2
- 13