Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25278

Add option to toggle CACHE_BLOCKS in count.rb

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.4.0
    • shell
    • None
    • Reviewed
    • Hide
      A new option, CACHE_BLOCKS, was added to the `count` shell command which will force the data for a table to be loaded into the block cache. By default, the `count` command will not cache any blocks. This option can serve as a means to for a table's data to be loaded into block cache on demand. See the help message on the count shell command for usage details.
      Show
      A new option, CACHE_BLOCKS, was added to the `count` shell command which will force the data for a table to be loaded into the block cache. By default, the `count` command will not cache any blocks. This option can serve as a means to for a table's data to be loaded into block cache on demand. See the help message on the count shell command for usage details.

    Description

      A trick I've found myself doing a couple of times (hat-tip to psomogyi) is to edit table.rb so that the `count` shell command will not instruct RegionServers to not cache any data blocks. This is a quick+dirty way to force a table to be loaded into block cache (i.e. for performance testing).

      We can easily add another option to avoid having to edit the ruby files.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: