Repository: geode-examples Updated Branches: refs/heads/feature/GEODE-2231 912a37234 -> 34f63c68b
GEODE-2231 Tweak README for partitioning example Project: http://git-wip-us.apache.org/repos/asf/geode-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/geode-examples/commit/34f63c68 Tree: http://git-wip-us.apache.org/repos/asf/geode-examples/tree/34f63c68 Diff: http://git-wip-us.apache.org/repos/asf/geode-examples/diff/34f63c68 Branch: refs/heads/feature/GEODE-2231 Commit: 34f63c68baf68cc52943d18fca506b78b59d14f3 Parents: 912a372 Author: Karen Miller <[email protected]> Authored: Wed Feb 22 16:50:19 2017 -0800 Committer: Karen Miller <[email protected]> Committed: Wed Feb 22 16:50:19 2017 -0800 ---------------------------------------------------------------------- partitioned/README.md | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/geode-examples/blob/34f63c68/partitioned/README.md ---------------------------------------------------------------------- diff --git a/partitioned/README.md b/partitioned/README.md index 0a90284..21e3cae 100644 --- a/partitioned/README.md +++ b/partitioned/README.md @@ -80,8 +80,8 @@ The argument specification identifies the region. ``` 1. There are several ways to see the contents of the region. -Run the consumer to get and print all 10 entries in the -```EmployeeRegion```. The argument specification identifies the region. +Run the consumer to get and print all 10 entries in the `EmployeeRegion`. +The argument specification identifies the region. ``` $ ../gradlew run -Pmain=Consumer -Pargs=EmployeeRegion @@ -108,7 +108,7 @@ Run the consumer to get and print all 10 entries in the ... ``` - Note that the quantity of entries may also be observed with ```gfsh```: + Note that the quantity of entries may also be observed with `gfsh`: ``` gfsh>describe region --name=EmployeeRegion @@ -124,21 +124,18 @@ Run the consumer to get and print all 10 entries in the ------ | ----------- | --------- Region | size | 10 | data-policy | PARTITION - - gfsh>quit ``` - As an alternative, ```gfsh``` maybe used to identify how many entries + As an alternative, `gfsh` maybe used to identify how many entries there are for each region on each server by looking at statistics. ``` gfsh>show metrics --categories=partition --region=/EmployeeRegion --member=server1 ``` - Within the output, the result for ```totalBucketSize``` identifies + + Within the output, the result for `totalBucketSize` identifies the number of entries hosted on the specified server. - Vary the command to see statistics for both ```server1``` and - ```server2```. - + Vary the command to see statistics for both `server1` and `server2`. 1. The region entries are distributed across both servers. Kill one of the servers: @@ -197,6 +194,16 @@ of this example). current working directory. Each step in this example specifies paths relative to that directory. +1. The logs for the locator and 2 servers were not removed as part +of the system shut down in Part 1. Part 2 of the example works fine +without removing the logs, but the `startAll.sh` script output will +note that the regions are already hosted as the servers are started. +To start Part 2 from scratch, remove the logs and their directories: + + ``` + $ rm -r locator1 server1 server2 + ``` + 1. Run a script that starts a locator and two servers. The built JAR will be placed onto the classpath when the script starts the servers: @@ -221,7 +228,7 @@ Alternatively, use one of the `gfsh` commands to verify that the servers are hosting the 10 entries in the region. ``` - $ ../gradlew run -Pmain=Consumer -Pargs=EmployeeRegion + $ ../gradlew run -Pmain=Consumer -Pargs=BadEmployeeRegion ... INFO: 10 entries in EmployeeRegion on the server(s). ...
