Hi Jerry, Yes, unfortunately you can't enable statistics after your region is already created. Your best option is to recreate the region an migrate your data. You can use the export/import commands to move data from the old region to the new region.
-Dan On Wed, Jul 10, 2019 at 12:25 AM JerryChen <jewy92c...@gmail.com> wrote: > Dear Geode Community. > > I'm using Apache Geode 1.9.0. > My question is: > I want to alter geode region attribute "--enable-statistics=true" by > gfsh command line. However It seems to be impossible. > What's the best practise to accomplish that? Do I have to recreate this > region and migrate my data from the origin region? > -------------- > Here's my senario: > 1. I have already created a region , which does not enable attribute " > --enable-statistics=true". > 2. Now I want to alter its TTL attribute > "--entry-time-to-live-expiration=5", but it throws an exception. > > gfsh>alter region --name=/my_region --entry-time-to-live-expiration=5 > > Member | Status | Message > > --------- | ------ | > -------------------------------------------------------------------------------------- > > my-server | ERROR | java.lang.IllegalStateException: Cannot set time to > live when statistics are disabled > 3. According to the error message, I need to alter region attribute" > --enable-statistics" first. > 4. Here the problem comes, the alter region command(gfsh) seems don't have > the option about altering the attribute "--enable-statistics=true". > -------------- > Thanks, > Jerry > > > > >