Giter Site home page Giter Site logo

Near cache statistic about hazelcast HOT 6 CLOSED

hazelcast avatar hazelcast commented on May 12, 2024
Near cache statistic

from hazelcast.

Comments (6)

cameronbraid avatar cameronbraid commented on May 12, 2024

I would like this feature too..

Is there a targeted version for which this feature will be implemented ?

from hazelcast.

lukasblu avatar lukasblu commented on May 12, 2024

Hej,

I'd like to have this feature too.

EntryCount should be straight forward to implement. EntryCost (memory consumption could be difficult for InMemoryFormat.OBJECT, but as with the map statistics, you could simply only support this for InMemoryFormat.BINARY).

Besides the two already mentioned stats, a measure of hit ratio would be awesome - e.g. number of hits and number of misses. For a cache this is really fundamental to decide if maintaining this cache is useful.

Thanks and best,
Lukas

from hazelcast.

jerrinot avatar jerrinot commented on May 12, 2024

there are already hits & getCount in the LocalMapStats.
Isn't getCount - hits == misses?

from hazelcast.

eminn avatar eminn commented on May 12, 2024

I already did some work for that but never created pull request for it. I will finish that, then create a pull request for it. Hopefully version 3.2 will contain near cache statistics

from hazelcast.

lukasblu avatar lukasblu commented on May 12, 2024

@jerrinot sure, however, this is on the map - and not on the near cache.

I'd like to know, for example, the ratio of get-requests which were served directly by the near cache versus the requests that had to go to the map, possible fetch the entry from a remote node, deserialize the entry and then return it.

This allows me to decide if a cache is useful. E.g. if most of the requests go to the map anyway, for example, because entries in the near cache are invalidate before I can benefit from having it in the near cache, then the cache can/should be removed.

Okay?

Best,
Lukas

from hazelcast.

eminn avatar eminn commented on May 12, 2024

see #1458

from hazelcast.

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.