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
I'm trying to use the Async API. Everything works fine, the load is balanced on my masters. My test software shows an output of 160k req/s (only GET commands)
If I set my connection to READONLY, only the 3 master instances seems to be used (doing a simple "top" shows only 3 instances working)
Here is a code extract of what i do (removed error checks):
hiredis-cluster does not support the READONLY part of the example.
Currently it only uses the known masters when finding out whom to send the command to, but it might be a nice feature.
I believe you would need to make sure the READONLY command is sent to all nodes, have some state and make changes to node_get_by_table().
The second argument in redisClusterAsyncConnect is legacy and its an alternative way to set configuration flags.
Hello,
I'm trying to use the Async API. Everything works fine, the load is balanced on my masters. My test software shows an output of 160k req/s (only GET commands)
If I set my connection to READONLY, only the 3 master instances seems to be used (doing a simple "top" shows only 3 instances working)
Here is a code extract of what i do (removed error checks):
Is this the correct way to handle this ? Also what is the purpose of the second parameter of redisClusterAsyncConnect ?
Thanks
The text was updated successfully, but these errors were encountered: