We have 2 branch offices in different cities connected by fiber optic… We have something similar to a MAN network, but sometimes the fiber link goes down and we lost the communication.
I want to install a replica of my discourse in the other branch office, this way when the fiber goes down they dont lost the access to the discourse.
Is posible make something like this? How can I manage the synchronization when the link come back?
set DISCOURSE_REDIS_HOST/PORT to the office B Redis server
set DISCOURSE_REDIS_SENTINELS in office B to sentinels B,C
Aaand there’s more to cover that I haven’t got into yet, like synchronizing uploads/backups (use S3 I guess?)
Now that I’m writing this down, I’m not actually sure that anyone has actually done this before. You might run into problems that require code changes.
edit: after reading about redis sentinel some more, I think my above advice is at least a little bit wrong. So, good luck!
I think I would probably start with an easier solution and just configure an automatic backup restoration everyday or more frequently depending on how much time a restore would take.