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. Feature Requests
  3. fallback MQTT gateway

fallback MQTT gateway

Scheduled Pinned Locked Moved Feature Requests
4 Posts 2 Posters 149 Views 2 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.
  • parachutesjP Offline
    parachutesjP Offline
    parachutesj
    wrote on last edited by
    #1

    would it be somehow possible to change the MQTT gateway that it accepts a second broker IP in case connection to primary is lost?

    I am trying to have my setup more reliable in case something brakes.

    1 Reply Last reply
    0
    • TRS-80T Offline
      TRS-80T Offline
      TRS-80
      wrote on last edited by
      #2

      Did you ever implement this?

      I had some thought along the lines of doing some failover or reverse proxy type setup on my LAN (or VPN / intranet if I eventually get to the point of multiple sites). But these have just been off the top of my head thoughts when thinking (apparently) along the same lines as you.

      Curious to hear what others may have done though.

      1 Reply Last reply
      0
      • parachutesjP Offline
        parachutesjP Offline
        parachutesj
        wrote on last edited by
        #3

        I didn't find a solution to this on gateway code. What I did and seems to be working more or less.

        I have two instances running MQTT and OpenHAB. One is active, other is inactive. Both obviously do have separate IP addresses, however I have managed with "keepalive" to put a virtual IP in front. All I had to do was reflashing my gateway to the virtual IP.
        So if one of the nodes is going down, the other one becomes the master and binds to the virtual IP.
        In addition to have this seemless, the MQTT servers have a subscription to the other one. This solves the issue, that in case of a failure, there is no current data on that instance.
        OpenHAB itself was always setup in a manner that I am able to run two instances (development and production) side by side and get updates on stats of all items.

        On hardware level, I run a server on Ubuntu with VirtualBox where the instances run. On top, I have another standy node running on a RasPi.

        1 Reply Last reply
        2
        • TRS-80T Offline
          TRS-80T Offline
          TRS-80
          wrote on last edited by
          #4

          Interesting. Thanks for the explanation.

          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