-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Support redis-sentinel:// URLs when configuring a Redis client #21920
Comments
|
We could consider supporting |
Sentinel can be configured for Jedis, too. In any case, Spring Boot would have to parse the URL and provide configuration values through the Redis sentinel configuration object instead of the Redis standalone configuration object. Sentinel URL's may contain multiple hostnames which add to URL parsing complexity. It doesn't make sense to provide a Lettuce-specific option since the URL ( |
Thanks, Mark. While I knew that Sentinel can be configured for Jedis (hence the general |
As per IANA, only the |
We've opened #21999 to make the failure easier to diagnose. We'll leave this open for now while we consider what, if anything, to do. |
Support for |
Is the intention to support If however, the more advanced URIs ( |
I am not sure but we can make it Lettuce specific for a start. |
Sounds good. I'm working on a proposal for the convenience factory in spring- data-redis. |
Up until now the url was considered to conform to the redis|rediss URI scheme and therefore we only pulled the following info from the uri:
The Lettuce uri may also include the spring.redis.connect-timeout: 10s
spring.redis.url: redis://myserver?timeout=12s Should we prefer the value in the uri when set? Or, should we enforce using one form or the other (url or individual properties)? The latter is the approach taken by MongoDB auto-config for instance. |
Now that the changes to spring-data-redis have merged I will consume them in a proposal here w/in the next couple of days. |
Closing in favor of gh-27373 |
When "spring.redis.url" set with
redis-sentinel :// [[username :] password@] host1[: port1] [, host2[: port2]] [, hostN[: portN]] [/ database][?[timeout=timeout[d|h|m|s|ms|us|ns]] [&sentinelMasterId=sentinelMasterId] [&database=database]]
(refer to redisuri.uri-syntax )
got an error with:
The text was updated successfully, but these errors were encountered: