Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2656 gfsh should be at parity with cache.xml
  3. GEODE-1897

Users should be able to configure eviction through gfsh

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • docs, gfsh
    • None

    Description

      While creating a region in gfsh, users should be able to configure eviction for that region.

      All three modes of eviction should be supported:
      1. Eviction driven by the resource manager:

      gfsh>create region --name=myRegion --type=REPLICATE --eviction-enabled
      

      2. eviction driven by entry count in the region:

      gfsh>create region --name=myRegion --type=REPLICATE --eviction-entry-count=1000
      

      3. eviction driven by bytes used:

      gfsh>create region --name=myRegion --type=REPLICATE --eviction-max-memory=100
      (value in megabytes)
      

      And also specify the eviction action as

      --eviction-action=overflow-to-disk or
      --eviction-action=local-destroy
      

      and an object sizer, so that users can plug-in custom object sizes as

      --eviction-object-sizer=my.company.geode.MySizer
      

      the sizer should only apply to heap and memory based eviction.

      Attachments

        Activity

          People

            dbarnes Dave Barnes
            swapnil.bawaskar Swapnil Bawaskar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: