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

Use of (p)redis transactions prevents use of sentinel for high-availability redis deployment #193

Closed
pdbreen opened this issue Oct 11, 2017 · 1 comment

Comments

@pdbreen
Copy link
Contributor

pdbreen commented Oct 11, 2017

Attempting to deploy Horizon using redis-sentinel (via https://github.com/monospice/laravel-redis-sentinel-drivers) for high-availability is mostly working. However, it hits the following exception when attempting to gather stats (and possibly other operations).

Predis\NotSupportedException · Cannot initialize a MULTI/EXEC transaction over aggregate connections.
Raw

The following - predis/predis#404 - indicates this can be avoided

That said, it's still possible to avoid $client->transaction(), which uses the above-mentioned abstraction, and just use the good old MULTI and EXEC commands (that is, $client->multi() and $client->exec()).

Any chance of Horizon being updated to make use of this work around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant