Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standby "H/A" support #372

Closed
stefannilsson opened this issue Feb 5, 2017 · 3 comments
Closed

Standby "H/A" support #372

stefannilsson opened this issue Feb 5, 2017 · 3 comments
Labels
Component: mosquitto-broker Type: Enhancement A new feature for a minor or major release.

Comments

@stefannilsson
Copy link

It would have been great of Mosquitto would have supported an active/standby configuration to make underlaying server maintenance not so scary.
By maybe using file locks to indicate if some of the machines within the "availability cluster" is active.

I'm thinking of a solution where, when you start the Mosquitto process if first verifies it's able to get an exclusive file lock of the "mosquitto.db" in order to proceed. If it's not able to do so, it will keep on running and on a scheduled basis check if the file lock is released and then hook it up and start listening to incoming connections.

@stefannilsson
Copy link
Author

Someone with a good insight into the application - how much time do you think, very roughly, would be required to implement something similar as proposed above?

@toast-uz
Copy link
Contributor

Basically I agree with your wish. But due to MQTT protocol architecture, implementing duplex system is very difficult. We must care QoS packet proceeding, Retain, session persistence (it's similar but different from your comment's persistence-db), and so on.
OASIS MQTT TC considered this in working for MQTT v5, but they postponed due to its difficulty.

@toast-uz toast-uz added Type: Enhancement A new feature for a minor or major release. Component: mosquitto-broker labels Mar 2, 2018
@toast-uz
Copy link
Contributor

toast-uz commented Mar 2, 2018

Closing because it's not a bug and there is a great challenge for the cluster on mosquitto-dev ML.

@toast-uz toast-uz closed this as completed Mar 2, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: mosquitto-broker Type: Enhancement A new feature for a minor or major release.
Projects
None yet
Development

No branches or pull requests

2 participants