HBase
  1. HBase
  2. HBASE-6128

Use weights instead of block counts in DoubleBlockCache with CacheBuilder

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Thanks to HBASE-5739 we can now specify a max weight instead of a maximum number of blocks in the DoubleBlockCache. This will give a more accurate control over its memory usage.

        Activity

        Jean-Daniel Cryans created issue -
        Hide
        Michael Drzal added a comment -

        Jean-Daniel Cryans could you add a bit more detail on this? We are looking for some work to pickup, and this might be of interest.

        Show
        Michael Drzal added a comment - Jean-Daniel Cryans could you add a bit more detail on this? We are looking for some work to pickup, and this might be of interest.
        Hide
        Jean-Daniel Cryans added a comment -

        I'm talking about this:

        http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheBuilder.html#weigher(com.google.common.cache.Weigher)

        You could write one that weights each block in terms of how big they are. Not all blocks are created equal.

        Show
        Jean-Daniel Cryans added a comment - I'm talking about this: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheBuilder.html#weigher(com.google.common.cache.Weigher ) You could write one that weights each block in terms of how big they are. Not all blocks are created equal.
        Cosmin Lehene made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Hide
        Cosmin Lehene added a comment -

        Marking as improvement. Jean-Daniel Cryans, Nick Dimiduk is this still valid?

        Show
        Cosmin Lehene added a comment - Marking as improvement. Jean-Daniel Cryans , Nick Dimiduk is this still valid?
        Hide
        Anoop Sam John added a comment -

        DoubleBlockCache is no longer there in trunk. Closing this

        Show
        Anoop Sam John added a comment - DoubleBlockCache is no longer there in trunk. Closing this
        Anoop Sam John made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        953d 13h 17m 1 Anoop Sam John 08/Jan/15 11:25

          People

          • Assignee:
            Unassigned
            Reporter:
            Jean-Daniel Cryans
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development