Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
_Vault_ Posted February 23, 2021 Posted February 23, 2021 (edited) 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 February 23, 2021 by _Vault_
bfarber Posted February 24, 2021 Posted February 24, 2021 You can restart Redis at any time - this should not log users out. _Vault_ 1
_Vault_ Posted February 24, 2021 Author Posted February 24, 2021 5 hours ago, bfarber said: You can restart Redis at any time - this should not log users out. Cool, also with bgsave off?
bfarber Posted February 25, 2021 Posted February 25, 2021 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. _Vault_ 1
Recommended Posts