geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (GEODE-1897) Users should be able to configure eviction through gfsh
Date Wed, 25 Oct 2017 15:20:00 GMT


ASF GitHub Bot commented on GEODE-1897:

jdeppe-pivotal commented on a change in pull request #969: GEODE-1897: Add eviction option
to create region

 File path: geode-core/src/main/java/org/apache/geode/management/internal/cli/i18n/
 @@ -861,6 +861,15 @@
       "Action to be taken on a region that has exceeded the TTL expiration.";
+  public static final String CREATE_REGION__EVICTION_ACTION = "eviction-action";
+  public static final String CREATE_REGION__EVICTION_ACTION__HELP =
+      "The eviction action to apply. Must be either 'destroy' or 'overflow-to-disk'";
 Review comment:
   Yes, you're right. The current implementation does have the action as `local-destroy`.
I have another PR in the wings which switches `EvictionAction` to an enum and that was what
I was thinking of. When that hits, the eviction action option will be `destroy`.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Users should be able to configure eviction through gfsh
> -------------------------------------------------------
>                 Key: GEODE-1897
>                 URL:
>             Project: Geode
>          Issue Type: Sub-task
>          Components: docs, gfsh
>            Reporter: Swapnil Bawaskar
>            Assignee: Jens Deppe
> While creating a region in gfsh, users should be able to configure eviction for that
> All three modes of eviction should be supported:
> 1. Eviction driven by the resource manager:
> {noformat}
> gfsh>create region --name=myRegion --type=REPLICATE --eviction-enabled
> {noformat}
> 2. eviction driven by entry count in the region:
> {noformat}
> gfsh>create region --name=myRegion --type=REPLICATE --eviction-entry-count=1000
> {noformat}
> 3. eviction driven by bytes used:
> {noformat}
> gfsh>create region --name=myRegion --type=REPLICATE --eviction-max-memory=100m
> {noformat}
> And also specify the eviction action as
> {noformat}
> --eviction-action=overflow-to-disk or
> --eviction-action=destroy
> {noformat}

This message was sent by Atlassian JIRA

View raw message