You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using AWS cluster - Trouble writing values to it #166
Hi,
Working on my app, everything looks fine in my local development environment with a single redis server on standard port. Running into problems when using an AWS environment with a cluster. Is there anything specific that needs to be set for a cluster?
The initial connection seems to go correctly using the following:
Ok, this means you are using a Redis cluster. As I said above, Boost.Redis does not provide any facility for cluster setups. In this case you would have to deal with the redirect yourself as describe under the in MOVED Redirection, which means creating a new connection to that node and maintaining a map of connections to prevent from opening more than one connection to the same node. Feel free to open an issue to add Redis cluster support, however I can't give you an estimate about when I will come up with it.
Activity
mzimbres commentedon Nov 3, 2023
Do you mean a Redis cluster? So far there is not support for Redis-cluster in Boost.Redis.
mzimbres commentedon Nov 3, 2023
It is important to know what message is contained in that error.
mzimbres commentedon Nov 3, 2023
Can you please replace
response<int, boost::redis::ignore_t>withresponse<int, int>and add this to your codeLet me then know what diagnostic do you get.
ferchor2003 commentedon Nov 3, 2023
This is what the response now:
Where xxx-xxx-xxx is one of the cluster nodes
mzimbres commentedon Nov 3, 2023
Ok, this means you are using a Redis cluster. As I said above, Boost.Redis does not provide any facility for cluster setups. In this case you would have to deal with the redirect yourself as describe under the in MOVED Redirection, which means creating a new connection to that node and maintaining a map of connections to prevent from opening more than one connection to the same node. Feel free to open an issue to add Redis cluster support, however I can't give you an estimate about when I will come up with it.
nqf commentedon Apr 15, 2025
Has there been any progress in supporting clusters?
criatura2 commentedon Apr 15, 2025
@nql Unfortunately no. That would be a large task and I don't have the resources for implementing it at the moment.