Gateway Backup
-
Let's say I have a raspberry pi running as my gateway, and it's running as mqtt client gateway.
Lets also say i have a second pi configured the same way. Is there anything that would prevent me from, in the event of pi1 dying, just powering on pi2 and everything continuing to work?
-
@CrankyCoder if both rpis are in the same location, doing what you describe should work just fine. The gateway does not store any state except the routing table.
-
If you schedule a backup of the controller configuration and data, you restore those in the second rpi and you are good to go. Also swapping SD card should work just fine, given it didn't get corrupted when the first rpi died
-
This is good news. I think I could create a failover scenario to have a backup gateway in the same fashion I did with failover openhab.
-
This will work. You could even automate it with a heartbeat cluster.
-
That's what I did with my openhab setup. This could help my "single point of failure" phobia lol
-
Maybe you could write a guide on how you did it
-
especially the synchronisation of the database would be interesting.
-
@gohan how i did my openhab failover?
http://crankycoder.net/2015/11/13/home-automation-move-part-1/
http://crankycoder.net/2015/11/15/home-automation-move-part-2/
http://crankycoder.net/2016/01/24/openhab-crashing-with-z-wave-fix-it-fix-it-fix-it-fix-it/Hope that helps
Will have to do another one if i do the multiple mysensors gateways
-
@Jan-Gatzke I haven't messed with the pi gateway yet, but I am thinking maybe doing something like drbd (disk replication)