Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5034

visorcmd: we need to fix cache info visor prints

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: visor
    • Labels:
      None

      Description

      Look at example of cache command result in AI 2.0

      visor> cache -c=c_partitioned -a
      Time of the snapshot: 04/20/17, 14:18:30
      +==================================================================================================================================+
      |      Name(@)       |    Mode     | Nodes |       Entries (Heap / Off-heap)       |   Hits    |  Misses   |   Reads   |  Writes   |
      +==================================================================================================================================+
      | c_partitioned(@c0) | PARTITIONED | 2     | min: 134588 (100001 / 34587)          | min: 0    | min: 0    | min: 0    | min: 0    |
      |                    |             |       | avg: 150001.50 (100001.00 / 50000.50) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
      |                    |             |       | max: 165415 (100001 / 65414)          | max: 0    | max: 0    | max: 0    | max: 0    |
      +----------------------------------------------------------------------------------------------------------------------------------+
      
      Cache 'c_partitioned(@c0)':
      +-----------------------------------------------------------+
      | Name(@)                     | c_partitioned(@c0)          |
      | Nodes                       | 2                           |
      | Total size Min/Avg/Max      | 134588 / 150001.50 / 165415 |
      |   Heap size Min/Avg/Max     | 100001 / 100001.00 / 100001 |
      |   Off-heap size Min/Avg/Max | 34587 / 50000.50 / 65414    |
      +-----------------------------------------------------------+
      
      Nodes for: c_partitioned(@c0)
      +===============================================================================================================+
      |       Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |         Size         | Hi/Mi/Rd/Wr |
      +===============================================================================================================+
      | AF7CAEFE(@n0), 192.168.1.40 | 8    | 23.76 %   | 8.20 %   | 00:01:19:153 | Total: 165415        | Hi: 0       |
      |                             |      |           |          |              |   Heap: 100001       | Mi: 0       |
      |                             |      |           |          |              |   Off-Heap: 65414    | Rd: 0       |
      |                             |      |           |          |              |   Off-Heap Memory: 0 | Wr: 0       |
      +-----------------------------+------+-----------+----------+--------------+----------------------+-------------+
      | C36C23B3(@n1), 192.168.1.40 | 8    | 11.62 %   | 8.80 %   | 00:01:19:209 | Total: 134588        | Hi: 0       |
      |                             |      |           |          |              |   Heap: 100001       | Mi: 0       |
      |                             |      |           |          |              |   Off-Heap: 34587    | Rd: 0       |
      |                             |      |           |          |              |   Off-Heap Memory: 0 | Wr: 0       |
      +---------------------------------------------------------------------------------------------------------------+
      

      This cache has onheapCacheEnabled = false and it means that all data should be in off-heap by default but visor shows wrong info.
      The configuration of this cache is

          <bean id="c_partitioned" class="org.apache.ignite.configuration.CacheConfiguration">
              <property name="name" value="c_partitioned"/>
              <property name="onheapCacheEnabled" value="false"/>
          </bean>
      

      My test load puts into the cache 100001 of keys and I'm expected that all keys should be in off-heap.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pkonstantinov Pavel Konstantinov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: