Thanks for clarifying that. I misinterpreted the statement in the doc "You can use the alter disk-store command to change the configuration of the region stored in the disk-store to match the configuration you will use at restart."
Regards Naba On Tue, Apr 18, 2017 at 11:08 AM Darrel Schneider <[email protected]> wrote: > The alter disk-store commands will not help you. The disk store stores > some region attributes to allow disk store attributes to create an early > version of the map that will be used later when the region is created. At > the time the region is created, if its attributes (that came from xml or > apis) differ from the ones in the disk store then the disk store ones lose > and the early version of the map is converted to match the region's > attributes. > > On Tue, Apr 18, 2017 at 10:58 AM, Nabarun Nag <[email protected]> wrote: > >> Yes, alter command's --lru-limit , --lru-action, --lru-alogorithm can be >> used to change the config of an offline diskstore and these changes will >> require a restart . >> >> Regards >> Naba >> >> >> On Tue, Apr 18, 2017 at 10:51 AM Mark Secrist <[email protected]> >> wrote: >> >>> There do appear to be some commands on the 'alter disk-store' command of >>> all places that allow specifying eviction behavior. I'm going to have to >>> play around with this to see how that would work. You have to do this >>> offline though so it's unclear how that permanently affects the cluster >>> configuration. >>> >>> On Tue, Apr 18, 2017 at 11:48 AM, Mark Secrist <[email protected]> >>> wrote: >>> >>>> Wow! Missed that one. I've run into a a few practical limitations to >>>> Cluster Config like this. I'm hoping it's on the roadmap soon. I really >>>> like the way you can manage config centrally and, more importantly, >>>> without XML. However, it feels like it only covers about 60% of the use >>>> cases right now (not a scientific calculation). >>>> >>>> On Tue, Apr 18, 2017 at 11:43 AM, Nabarun Nag <[email protected]> wrote: >>>> >>>>> Hi Mark, >>>>> >>>>> In the Apache Geode Docs at [link 1 >>>>> <http://geode.apache.org/docs/guide/11/developing/eviction/configuring_data_eviction.html>] >>>>> It is mentioned that "Note: You can also configure Regions using the gfsh >>>>> command-line interface, however, you cannot configure eviction-attributes >>>>> using gfsh." >>>>> >>>>> I believe that you right that these eviction attributes can only be >>>>> changed exclusively using xml. >>>>> >>>>> >>>>> Regards >>>>> Nabarun Nag >>>>> >>>>> [link 1] - >>>>> http://geode.apache.org/docs/guide/11/developing/eviction/configuring_data_eviction.html >>>>> >>>>> On Tue, Apr 18, 2017 at 10:00 AM Mark Secrist <[email protected]> >>>>> wrote: >>>>> >>>>>> I'm trying to sort out the current support in GemFire/Geode for >>>>>> configuring eviction and overflow from the gfsh command and using Cluster >>>>>> Configuration. As background, my objective is to use cluster config to >>>>>> accomplish the following: >>>>>> >>>>>> <cache> >>>>>> <disk-store name="Server1Persistence"> >>>>>> <disk-dirs> >>>>>> <disk-dir>persist</disk-dir> >>>>>> </disk-dirs> >>>>>> </disk-store> >>>>>> <region name="BookMaster" > >>>>>> <region-attributes refid="REPLICATE_PERSISTENT" >>>>>> disk-store-name="Server1Persistence"> >>>>>> <eviction-attributes> >>>>>> <lru-entry-count maximum="2" action="overflow-to-disk"/> >>>>>> </eviction-attributes> >>>>>> </region-attributes> >>>>>> </region> >>>>>> </cache> >>>>>> >>>>>> While I can create disk stores and set up some of the properties, >>>>>> there don't appear to be any options in 'create region' or 'alter region' >>>>>> for defining eviction as shown above. I also notice looking at the >>>>>> documentation that these capabilities are performed exclusively with xml >>>>>> configuration. Am I missing something? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Mark >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> *Mark Secrist | Sr Manager, **Global Education Delivery* >>>>>> >>>>>> [email protected] >>>>>> >>>>>> 970.214.4567 Mobile >>>>>> >>>>>> *pivotal.io <http://www.pivotal.io/>* >>>>>> >>>>>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn >>>>>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook >>>>>> <http://www.facebook.com/pivotalsoftware> | YouTube >>>>>> <http://www.youtube.com/gopivotal> | Google+ >>>>>> <https://plus.google.com/105320112436428794490> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Mark Secrist | Sr Manager, **Global Education Delivery* >>>> >>>> [email protected] >>>> >>>> 970.214.4567 Mobile >>>> >>>> *pivotal.io <http://www.pivotal.io/>* >>>> >>>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn >>>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook >>>> <http://www.facebook.com/pivotalsoftware> | YouTube >>>> <http://www.youtube.com/gopivotal> | Google+ >>>> <https://plus.google.com/105320112436428794490> >>>> >>> >>> >>> >>> -- >>> >>> *Mark Secrist | Sr Manager, **Global Education Delivery* >>> >>> [email protected] >>> >>> 970.214.4567 Mobile >>> >>> *pivotal.io <http://www.pivotal.io/>* >>> >>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn >>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook >>> <http://www.facebook.com/pivotalsoftware> | YouTube >>> <http://www.youtube.com/gopivotal> | Google+ >>> <https://plus.google.com/105320112436428794490> >>> >> >
