Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Multiple Gateways for redundancy

Multiple Gateways for redundancy

Scheduled Pinned Locked Moved Hardware
9 Posts 7 Posters 4.1k Views 12 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David
    wrote on last edited by
    #1

    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.

    F 1 Reply Last reply
    1
    • dbemowskD Offline
      dbemowskD Offline
      dbemowsk
      wrote on last edited by
      #2

      Out of curiosity, why do you think you would need that much redundancy?

      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

      mfalkviddM M 2 Replies Last reply
      0
      • dbemowskD dbemowsk

        Out of curiosity, why do you think you would need that much redundancy?

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        1
        • D David

          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.

          F Offline
          F Offline
          fleinze
          wrote on last edited by
          #4

          @David I think it can work as long as you sure that only one Gateway is able to send and the others are mute. Kind of the same as with redundant hot standby server systems.

          1 Reply Last reply
          0
          • dbemowskD dbemowsk

            Out of curiosity, why do you think you would need that much redundancy?

            M Offline
            M Offline
            Mihai
            wrote on last edited by
            #5

            @dbemowsk
            If it is used as an alarm system, not only for intruders, but for smoke detection, water leak etc you must count on its reliability close to 100%.
            Also as mfalkvidd mention, you may not want to stay outside automated closed door...

            1 Reply Last reply
            0
            • D Offline
              D Offline
              David
              wrote on last edited by
              #6

              @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.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TimO
                Hero Member
                wrote on last edited by
                #7

                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?!

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  David
                  wrote on last edited by
                  #8

                  Perhaps the gateways just need to share each other the table of distributed/allocated ID and routing paths to the sensors.
                  I'm not a developer, so perhaps it's too complicated...

                  1 Reply Last reply
                  0
                  • gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #9

                    It all depends if it is mission critical stuff, otherwise just keep a spare rpi and an arduino board pre-programmed that you can easily swap.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    21

                    Online

                    11.7k

                    Users

                    11.2k

                    Topics

                    113.1k

                    Posts


                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • MySensors
                    • OpenHardware.io
                    • Categories
                    • Recent
                    • Tags
                    • Popular