Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12238

Cli should support size command for the cache operation

    Details

    • Type: Enhancement
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.0.0.Dev02, 11.0.3.Final
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None

      Description

      dist cache owners="2"
      I have 3 nodes

      [infinispan-0-32936@infinispan//containers/default/caches/x-site-async]> stats
      {
        "time_since_start" : 2695,
        "time_since_reset" : 2695,
        "current_number_of_entries" : 72,
        "current_number_of_entries_in_memory" : 72,
        "total_number_of_entries" : 4827,
        "off_heap_memory_used" : 378000,
        "data_memory_used" : 541056,
        "stores" : 4827,
        "retrievals" : 4830,
        "hits" : 4759,
        "misses" : 71,
        "remove_hits" : 0,
        "remove_misses" : 0,
        "evictions" : 0,
        "average_read_time" : 0,
        "average_read_time_nanos" : 347614,
        "average_write_time" : 2,
        "average_write_time_nanos" : 2076623,
        "average_remove_time" : 0,
        "average_remove_time_nanos" : 0,
        "required_minimum_number_of_nodes" : 2
      }
      [infinispan-1-11783@infinispan//containers/default/caches/x-site-async]> stats
      {
        "time_since_start" : 2758,
        "time_since_reset" : 2758,
        "current_number_of_entries" : 72,
        "current_number_of_entries_in_memory" : 72,
      [infinispan-2-20579@infinispan//containers/default/caches/x-site-async]> stats
      {
        "time_since_start" : 2825,
        "time_since_reset" : 2825,
        "current_number_of_entries" : 56,
        "current_number_of_entries_in_memory" : 56,
      

      How many entries I have in my cache? ( the first has the full output the others I truncated )

      cli should support size command

      [infinispan-0-32936@infinispan//containers/default/caches/x-site-async]> size
      Command not found
      

      The following rest call will return the size of the cache

      GET /rest/v2/caches/{name}
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dlovison Diego Lovison
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: