Giter VIP home page Giter VIP logo

Comments (6)

gleicon avatar gleicon commented on August 30, 2024

Hi, I've been using a dbid > 0 w/o recon problems but my db is small. What's the db size ? Is the problem happening with password ? My conn pool size is the default 10. If there's any event that we can capture to help delay the select would be good but I dont think there is. Probably the best idea would be to set a block/backoff strategy when applying select to try again. Ideas are welcome. Thanks

from txredisapi.

fiorix avatar fiorix commented on August 30, 2024

This is very bad news to me. On the other hand, why would redis listen on the port but not take commands during the start up? We can definitely work around it.

  • Does redis reply to any command during the start up? If so, we can use that to determine the connection state
  • Does it always reply with the same error? If so, we can also leverage that

Once we know the status we can defer the select() command, and keep the driver in "disconnected" mode. A task would eventually retry to select(), and once replied with successful response the driver would make the pool available again.

from txredisapi.

jonathanslenders avatar jonathanslenders commented on August 30, 2024

We have about 4,000,000 keys. And it happens also without password. The problem is that selecting the database doesn't work. I haven't had the time to figure it out, but I think it responds to any command like that.

However, I also don't see any reason why redis needs to have the database in memory for executing a select command. It doesn't touch the actual data set.

from txredisapi.

jonathanslenders avatar jonathanslenders commented on August 30, 2024

redis/redis#1024

from txredisapi.

fiorix avatar fiorix commented on August 30, 2024

Gotta love the Internet.

from txredisapi.

gleicon avatar gleicon commented on August 30, 2024

gotta love @antirez

from txredisapi.

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.