Does RDB radish run bgsave or save?

I use Redis as a more temporary storage, but there are some fields that I want to keep, so I want to use RDB. A few minutes of lost will not hurt. However, I notice that from time to time I get large IO Wait spikes on my server, and I believe this happens when the RDB is saved.

I found that there are two commands when starting manually, BGSAVE and SAVE. They do the same, but BGSAVE allows you to save the background so that redis does not block new writes / reads.

The configuration file to save has lines similar to:

save 10 1000

save 100 500

This literally means that it uses the SAVE command, and if so, can I replace it with bgsave and get the expected / necessary results?

+4
source share
1

save , BGSAVE, . , .

+5

Source: https://habr.com/ru/post/1598050/


All Articles