-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Similar to #32, I'd like to propose adding support for Redis clustering to java-cfenv. Since Redis clustering allows for node discovery via the various CLUSTER commands, there is greater flexibility in how cluster support can be signaled. One nice aspect is that only a single node need be provided in order for additional nodes to be discovered.
For spring-data-redis to enable clustering, I believe it is only required that the property spring.redis.cluster.nodes be set.
Here are some proposals on how this could be implemented:
- If the service instance tag also contains the word
cluster, (in addition toredis), then theuriis used to determine a host:port to set inspring.redis.cluster.nodes. - If the uri scheme is either
redis-clusterorrediss-cluster, then theuriis used to determine the host:port of the cluster. - An additional array of
redis_nodesis provided; for example:
"redis_nodes": [
{
"hostname": "x.x.x.x",
"port": "xxxx"
},
{
"hostname": "x.x.x.x",
"port": "xxxx"
}
]
I'd be happy to provide a PR for this work.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request