Git Product home page Git Product logo

Comments (5)

sazzad16 avatar sazzad16 commented on August 27, 2024 1

@ashok-mariyala Sorry, I can't. These depend on application, system, network, design, strategy, etc. You would have to tune accordingly.

If you have a huge number of operations, the number of connections could be one thousand or even several thousands.

from jedis.

sazzad16 avatar sazzad16 commented on August 27, 2024

@ashok-mariyala The code looks awfully similar to the code in #3838 and #3844. Is the exception mentioned there resolved?

from jedis.

ashok-mariyala avatar ashok-mariyala commented on August 27, 2024

@sazzad16 Thank you for the quick response. As you mentions, #3838 and #3844 these 2 tickets used JedisPool where as I am using JedisPooled class. BTW Those are not related to my application codebase. I have taken above tickets reference few days back may be due to that you observed similar code base. Kindly please help me, what might be issue in my code base. Thanks in advance.

from jedis.

sazzad16 avatar sazzad16 commented on August 27, 2024

You are using new JedisPooled("redis", 6379, timeout, "default", "Ashok@Redis") constructor which uses the default pool config of size 8. As you are performing huge write and read operations, you should allow a larger pool size. You can do that by GenericObjectPoolConfig<Connection> (or simply ConnectionPoolConfig). You can learn more about pool configuration by studying apache commons pool version 2. Here is a short guide on Configuring Connection pool.

from jedis.

ashok-mariyala avatar ashok-mariyala commented on August 27, 2024

@sazzad16 Sure I will try to increase the pool size. Could you please suggest me, what is suggestable connection pool recommendation (max total, min idle, max idle) for production grade for huge writes and reads.
Thanks in advance.

from jedis.

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.