Zero Down Time
-
So I was wondering if anyone knew how to setup NodeBB to have zero down time. When something goes wrong, and NodeBB gets rebooted with Forever, there is a window of time that the site is down. Are there steps to having 2 NodeBBs running at the same time sharing the same database? (Database redundancy is a separate project for later.)
-
@RefinedSoftware said:
Are there steps to having 2 NodeBBs running at the same time sharing the same database? (Database redundancy is a separate project for later.)
Oh, now that's a fun idea... one could play around with pm2's built-in cluster functionality to run
x
NodeBB instances, wherex
is the number of CPU cores... -
That would be so useful. Not to mention my downtime is horrible, lol this is partly due to the thousands of changes it goes through per week.
Having something like this would be critical to maintaining redundancy and improving overall downtime. Those 1-2 (sometimes 5~) min of downtime add up per week/month. I'm sure for larger sites this would serve to be extremely useful.
-
Yes one of the points of having 2 NodeBBs running would be for rolling updates of plugins that cause a reboot. I assume this would be very tricky or impossible to have rolling updates when a NodeBB Update requires schema changes to the Database.
-