-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Feature Request]: Support for Redis Sentinel #311
Comments
Is possible via command line: iobroker setup custom |
Together with #306 it sounds like there is a rework of states- and objects-db integration needed. I already have this on my to do list. |
Feature is now available in v8.0.0-beta.1. example:
Would be nice if someone cloud test this and give some feedback. If I get no feedback, I will add this feature as "experimental" to upcoming v8.0.0 stable. Regards, |
BZW: It is more best practice to use IPs instead of hostnames because in such an "HA" environment you do not want to have a DNS as "single point of failure" :-) |
@Apollon77 Put in what ever you want as long as it is comma separated... :) |
lol (I mean maybe state in exmple or such) |
@dbeckers99 Any feedback until I move this to a stable state? Regards, |
At least it is working for me with the ENV vars in docker container (provided by an env-file). But after start and configure iobroker inside the container, I have to preform "iobroker stop" and "iobroker setup custom" to get iobroker using the Sentinel settings and entering the iobroker cluster. |
Version 8 is now stable. https://github.com/buanet/ioBroker.docker/releases/tag/v8.0.0 @dbeckers99 Do you use redis as objects db too? If yes, you have to do the Regards, |
Yes, I'm running redis for states AND objects. EDIT: some wrong things removed. Sorry |
Sorry, ich kann dir nicht folgen. Vielleicht ist es einfacher in deutsch? MfG, |
Sorry, war mein Fehler. Habe den Container bei gebaut mit falschem Hostname... |
Description
I'm running my iobroker Multihost installation with objects and states in a Redis Sentinel DB. Sentinel supports and handles automatic fail over in case of the Redis Master goes down.
iobroker supports this feature in "iobroker setup custom": you specify a comma separated list of redis Sentinel host is, next step the Sentinel port(s) - default 26379 - to this hosts. These two parameters can already be set in iobroker docker image ENV with the flags IOB_STATESDB_*.
But: during "iobroker setup custom" the next step is giving the redis master DB name, normally "mymaster". This is because iobroker asks the given list of redis Sentinel host(s) for the active redis master host by using this name and gets the IP in return.
To use a ioBroker docker image with full support of redis Sentinel this parameter (e.g. IOB_STATESDB_MASTERNAME) should be settable to ENV and used if building the container with redis Sentinel (a comma separated list of IPs).
The text was updated successfully, but these errors were encountered: