-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Use predis to support replication and Sentinel #45
Comments
Using predis is a good idea. |
I can create a PR. Also do we want to leave basic socket connection? Or since we're using predis for replication and sentinel - we can use it for basic connection too, therefore we'll have only one class. |
Sure
|
Relying on predis only sounds OK to me. |
High availability is a hard requirement for my project so I need something like this. yii2-redis adoption of Predis' new Sentinel feature would be good for that project. |
I noticed that predis is showing signs of having been abandoned. There was a little activity in the summer but nothing since July. Daniele's 12 month activity, compared to Twitter activity, shows perhaps a change of interests. predis is used by Laravel and Doctrine and other projects. Does anyone have ideas who might be recruited into maintaining it? |
reference for sentinel implementation in yii 1.1.: yiisoft/yii#3106 |
@tom-- I noticed this issue while browsing GitHub and just want to take the chance to clarify the current situation around Predis: it is definitely not an abandoned project! Sure there's been little to no activity from me on GitHub because I had an extremely busy 2015 (and btw I don't tweet that much compared to most of my tweeps ;-)) but thankfully the library is very stable with only a very few aknowledged but minor issues reported. Native support for redis-sentinel has been almost ready since... well, months! But I tend to hold back new important features until I'm not satisfied about how they are implemented and that's always been the case, even back when I had many green squares plotted in my GitHub activity graph ;-) Things should change in the next few weeks anyway. |
@nrk I already noticed that activity resumed because I "subscribed" to all of predis in November. That was a relief. In my own project, we are using @djagya's fork for now. I imagine his offer to send a PR with his fixes is still open. Proper integration test of a realistic HA setup including clients for a predis+redis+sentinel is not at all simple and I understand your hesitance to release that, and especially because it is an HA feature. We've done basic testing on three VMs with our application using PHP sessions provided by Yii 2 via our fork of yii2-redis that uses predis and sentinel. But that's certainly not enough to really say that it works. |
https://github.com/Liv1020/yii2-redis |
Hello, have you any news, guys? |
No. Noone is working on it at the moment. |
Do we want to add a new connection class, that will use predis (as e.g. laravel does) to support such features as replication and sentinel support? Or it could be set of abstract connection class with common things and two inherited to implement basic socket connection and predis connection.
I think it's a good step to HA.
Though sentinel support is still not in the stable predis branch, but it will soon, i think.
The text was updated successfully, but these errors were encountered: