Giter Club home page Giter Club logo

Comments (5)

bjosv avatar bjosv commented on June 23, 2024

What is the used connection timeout configuration in hiredis-cluster?
It is controlled by redisClusterSetOptionConnectTimeout()
Without any configuration it might result in long timeouts depending on setup.

from hiredis-cluster.

SS-TruMinds avatar SS-TruMinds commented on June 23, 2024

Hi, we use a timeout of 5 secs.
Yes it is configured with redisClusterSetOptionConnectTimeout()
Just that some connect quickly within seconds & some take up to 5 minutes. All configured with 5 sec connection timeout.

from hiredis-cluster.

bjosv avatar bjosv commented on June 23, 2024

Sounds good with the configured timeout.

If I understand correctly you are running in Kubernetes, and I guess you have tried to manually setup a connection from the hiredis-cluster pod to the Redis pod? Like using telnet just to make sure the connection should work.
Another option would be to increase the logging in the redis node which would tell if redis sees the connection attempt.

Another area that might affect is the eventsystem that is needed for async.
Are you using an own implementation, or a public one that we have tested or can use to try to reproduce the problem?
When hiredis attempts to connect to a node it registers the socket to the eventsystem, which poll the socket for a write event or to have it timeout as in your case. This might affect the results as well.

from hiredis-cluster.

SS-TruMinds avatar SS-TruMinds commented on June 23, 2024

Our adapter is based on the reference adapter. It is similar to the ones in your repo and is well tested.

Ok, we will check if there could be any issue with the connectivity to this Redis node. Ideally there shouldn't be, as the other clients running in the same pod are able to re-connect immediately.

from hiredis-cluster.

bjosv avatar bjosv commented on June 23, 2024

This is very likely fixed by #122, please reopen if not.

from hiredis-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.