GithubHelp home page GithubHelp logo

Comments (5)

smadappa avatar smadappa commented on August 15, 2024

You should be able to get more QPS. Typical bottlenecks will be

  1. connection yields -> Increase the pool size and see if QPS increases
  2. Bandwidth -> See if you are hitting bandwidth limits
  3. Blocking -> If you are blocking on sets to ensure they are completed before you perform next operation. If so try to check the status of writes in a separate thread.

from evcache.

shengang1978 avatar shengang1978 commented on August 15, 2024

I'm increasing the pool size. It seems it's the simplest way :).
Is there recommended size besides of the default 1? We have about 6 tomcat servers connect one cache server.

from evcache.

smadappa avatar smadappa commented on August 15, 2024

One works well for most of the use cases. If you keep increasing the pool size, beyond some point your throughput decreases and latency increases as the jvm needs to keep polling the selector. Best is to experiment and see at what point the throughput and latencies increase. From this stage onwards your only option will be to add more servers.

from evcache.

shengang1978 avatar shengang1978 commented on August 15, 2024

I increase the poolSize to 2. But, after several days investigation, it seems it doesn't reduce the low set/delete operations.
I'm planning to add more nodes. I'm confused by the "EVCACHE_CUSTOMER-NODES" setting in the "Simple EVCache" doc. What is the "servergroup"? What difference are below settings:

  1. one servergroup with two hosts. For example: servergroup1=memcachedIp:11211,memcachedIp:11212
  2. two servergroup with one host. For example:
    servergroup0=memcachedIp:11211;servergroup1=memcachedIp:11212

Below is the sample setting in the doc:
System.setProperty("EVCACHE_CUSTOMER-NODES", "servergroup0=host01:port,host02:port;servergroup1=host11:port,host12:port;servergroup2=host21:port,host22:port,host23:port");

from evcache.

smadappa avatar smadappa commented on August 15, 2024

A ServerGroup (a.k.a replica) holds one copy of data. If you have 2 instances the data is spread out among them. if you have 2 server groups with one instance each, then each server group will hold entire data.

from evcache.

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.