Multiple Gateways for redundancy
-
Hello All,
For redundancy, I've configured a cluster of 3 RPi with Docker services (Domoticz, Usefull scripts, Mysensors Gateway, ...) and a replicated NFS central storage.
I'm wondering if it is possible to start multiple mysensors gateways (one on each RPi machine)
As a gateway use the ID 0 I think it's not possible but how do you manage redundancy ?
Do I need to configure a HA cluster to start/stop the mysensors gateway?Thanks for your lights,
David. -
In a fully automated home, the inhabitants would be unable to lock/unlock doors, turn on/off lights or use automated appliances. When that happens, spouse acceptance factor hits rock bottom. So in my view, that much redundancy is absolutely critical for widespread home automation.
-
Hello All,
For redundancy, I've configured a cluster of 3 RPi with Docker services (Domoticz, Usefull scripts, Mysensors Gateway, ...) and a replicated NFS central storage.
I'm wondering if it is possible to start multiple mysensors gateways (one on each RPi machine)
As a gateway use the ID 0 I think it's not possible but how do you manage redundancy ?
Do I need to configure a HA cluster to start/stop the mysensors gateway?Thanks for your lights,
David. -
@mfalkvidd , @Mihai fully agree with you, why to build a genius system that is able to do a lot of things without thinking of reliability?
The problem I'm facing is, Swarm (the docker scheduler) is not able to create services with privileged access and/or device access.So I think I will use keepalived with a script that manage the start/stop of the gateway or Swarm with a Docker proxy.
FYI some examples of what you can do with keepalived and scripts: https://tobrunet.ch/2013/07/keepalived-check-and-notify-scripts/
or Docker proxy for Swarm: https://github.com/calh/docker_priv_proxy (Not yet tested)If the devs could think about redundancy capability of the gateway for the next versions, it would be great.
Anyway, MySensors is really really a good project.
Regards,
David. -
A first start could be the possibility to sleep and a second command to wake the gateway via a command from the gateway. So the controller may decide which gateway is active and which gateway is not.
The gateway is initialized but the routing of messages from serial/ethernet to NRF /RFM /RS485 is enabled / disabled.
Maybe a simple internal message?!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login