Jump to content

Featured Replies

Posted

Hi,
My redis supports 2 Invision Communitys, saving it's database to disk every 60 seconds, as it detects more than 10000 changes within thattimeframe.

424616:C 23 Feb 2021 18:09:28.561 * DB saved on disk
424616:C 23 Feb 2021 18:09:28.561 * RDB: 1 MB of memory used by copy-on-write
121639:M 23 Feb 2021 18:09:28.592 * Background saving terminated with success
121639:M 23 Feb 2021 18:10:29.080 * 10000 changes in 60 seconds. Saving...
121639:M 23 Feb 2021 18:10:29.081 * Background saving started by pid 424625
424625:C 23 Feb 2021 18:10:29.159 * DB saved on disk
424625:C 23 Feb 2021 18:10:29.160 * RDB: 1 MB of memory used by copy-on-write
121639:M 23 Feb 2021 18:10:29.181 * Background saving terminated with success
121639:M 23 Feb 2021 18:11:30.085 * 10000 changes in 60 seconds. Saving...
121639:M 23 Feb 2021 18:11:30.086 * Background saving started by pid 424649
424649:C 23 Feb 2021 18:11:30.166 * DB saved on disk
424649:C 23 Feb 2021 18:11:30.167 * RDB: 1 MB of memory used by copy-on-write
121639:M 23 Feb 2021 18:11:30.186 * Background saving terminated with success
121639:M 23 Feb 2021 18:12:45.564 * 10000 changes in 60 seconds. Saving...
121639:M 23 Feb 2021 18:12:45.565 * Background saving started by pid 424667
424667:C 23 Feb 2021 18:12:45.650 * DB saved on disk
424667:C 23 Feb 2021 18:12:45.652 * RDB: 1 MB of memory used by copy-on-write
121639:M 23 Feb 2021 18:12:45.665 * Background saving terminated with success

Is it save to turn bgsave off? What happens if you turn off bgsave and restart redis? Will all users be logged out? Is the data in the database important so it needs to be kept?

Edited by _Vault_

You can restart Redis at any time - this should not log users out.

  • Author
5 hours ago, bfarber said:

You can restart Redis at any time - this should not log users out.

Cool, also with bgsave off? 

There is no requirement for Redis to persist data if restarted. Redis is used as a temporary cache. Any data lost does not represent a problem for the community software with a very minor exception not worth worrying about - you have the option to store "topic views" in Redis that are accumulated for a short period of time, and then they are saved to the MySQL database by a task periodically. If data does not persist, you might lose out on some topic views being recorded. This is probably not a concern if you are looking at fine tuning Redis persistance for performance in 99% of cases.

Recently Browsing 0

  • No registered users viewing this page.