Comments (5)
Running into problems when using an AWS environment with a cluster
Do you mean a Redis cluster? So far there is not support for Redis-cluster in Boost.Redis.
from redis.
Got RESP3 simple-error. [boost.redis:11]
It is important to know what message is contained in that error.
from redis.
Can you please replace response<int, boost::redis::ignore_t>
with response<int, int>
and add this to your code
if (std::get<0>(resp).has_error()) {
std::cout << "Type: " << to_string(std::get<0>(resp).error().data_type) << std::endl;
std::cout << "Diagnostic: " << std::get<0>(resp).error().diagnostic << std::endl;
}
if (std::get<1>(resp).has_error()) {
std::cout << "Type: " << to_string(std::get<1>(resp).error().data_type) << std::endl;
std::cout << "Diagnostic: " << std::get<1>(resp).error().diagnostic << std::endl;
}
Let me then know what diagnostic do you get.
from redis.
This is what the response now:
Type: simple_error
Diagnostic: MOVED 10848 xxx-xxx-xxx-xxx-xxx.cache.amazonaws.com:7000
Type: simple_error
Diagnostic: MOVED 10848 xxx-xxx-xxx-xxx-xxx.cache.amazonaws.com:7000
Where xxx-xxx-xxx is one of the cluster nodes
from redis.
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.
from redis.
Related Issues (20)
- Pass socket close errors to the caller HOT 1
- Understand why we have to call connection.cancel in the TLS test
- MGET with invalid key unexpectedly reports error HOT 4
- Remove resp3::read and resp3::async_read
- Enable reading server pushes in batches
- geoadd error HOT 1
- Boost docs formatting problems
- Docs styles minor tweaks
- Add ability to check if initial connection to server succeeded HOT 2
- Support containers in CI HOT 1
- No way to specify CA/client certificate for SSL connections. HOT 10
- Where to reinstate SSL verification spec? HOT 4
- Redis client fails to process all the requests. HOT 30
- How to use cmake or link an example? HOT 5
- Windows Visual Studio 2022 C++17/C++20 failed compilation of src.hpp. HOT 14
- Are distinct connection objects thread safe ? HOT 24
- How to treat well return nothing lua function ? HOT 2
- Question about boost::redis::request::config HOT 17
- second call to async_exec hangs and never returns HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis.