-
Notifications
You must be signed in to change notification settings - Fork 183
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
add sentinel multi monitor #376
base: master
Are you sure you want to change the base?
add sentinel multi monitor #376
Conversation
Hey guys, Thank you! |
A lot of changes going on here and I'm not a redis expert. @ekohl you maybe? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if it should be a defined type instead (redis::sentinel::instance
or something). It should concat all monitored instances. The reason I think about this is that it's becoming harder to monitor.
@ekohl |
@ekohl redis::sentinel::instance is missleading, because it is not for sentinel instances. I think it's fine as it is. Otherwise we would have a solution that has been in demand for a long time, which works very well and is already being used successfully in over 10 environments. |
If it's all in the same class, concat is not needed. However, if you use a defined type I think it will be needed.
I think passing a complex hash to a class is a painful API that's harder to understand than calling multiple defined types. In the end it'll result in the same content on disk so it's more about a usability from a developers point of view. Does that make sense and help to elaborate my view? |
Ok, that makes sense. Thanks for your detailed answer!
You mean i should write an defined resource, that we can do something like this?: redis::sentinel::monitor { 'my_redis_cluster':
redis_host => '1.2.3.4',
redis_port => 6881,
down_after => 5000,
failover_timeout => 12000,
quorum => 2,
parallel_sync => 1,
auth_pass => 'secret',
} Sorry, i think i missunderstood you in the past. |
Hi, I'm facing the same need, is there any updates ? Thanks |
Hi @gizmo15 , sorry, i didn't have time to write the code in the past months. If you need a quick solution, give it a try. I will look into it, to complete the code like @ekohl suggested it, in the next couple of days. If anybody else have an idea, feel free to contribute :) |
Hi, |
Dear @basti-nis, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Pull Request (PR) description
After multi instance was added we should let redis-sentinel watch over these instances
This Pull Request (PR) add following features and fixes the following issues
This will close following Issues:
Close #319
Close #223