This is an automated email from the ASF dual-hosted git repository.
jchen21 pushed a commit to branch feature/overflow-example
in repository https://gitbox.apache.org/repos/asf/geode-examples.git
The following commit(s) were added to refs/heads/feature/overflow-example by
this push:
new c82fca2 Clarified expected output in README.md
c82fca2 is described below
commit c82fca246de61cb4a5c01fbd7cc1636d45bf00e8
Author: Jianxia Chen <[email protected]>
AuthorDate: Fri Jun 22 12:28:13 2018 -0700
Clarified expected output in README.md
Signed-off-by: Patrick Johnson <[email protected]>
---
overflow/README.md | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/overflow/README.md b/overflow/README.md
index 99ed0a0..c9671da 100644
--- a/overflow/README.md
+++ b/overflow/README.md
@@ -19,8 +19,8 @@ limitations under the License.
This examples demonstrates how to use Geode's Overflow to disk.
-In this example a server hosts a partitioned region that stores strings.
-The example shows data being overflowed to disk and removed from memory.
+In this example, a server hosts a partitioned region that stores strings.
+The example shows entry values being overflowed to disk and removed from
memory.
This example assumes that Geode is installed.
@@ -30,19 +30,27 @@ current working directory.
Each step in this example specifies paths relative to that directory.
2. Run a script that starts a locator and two servers. The script
-then creates the ```example-region``` region and puts 4 values.
+then creates the ```example-region``` region and puts 4 entries.
$ gfsh run --file=scripts/start.gfsh
+
+Note that both the region size and `totalEntriesOnlyOnDisk` are 0 before we
put any entries.
3. Shut down the cluster
$ gfsh run --file=scripts/stop.gfsh
-4. Notice the line
-`diskstore | totalEntriesOnlyOnDisk | 2` from `show metrics
--region=example-region`.
+4. In the output of the second `show metrics --region=example-region` command,
notice the line
+
+`diskstore | totalEntriesOnlyOnDisk | 2`
+
This shows that 2 values have been overflowed to disk and are no longer in
memory.
-Notice that the size from `describe region --name=example-region`
-is still 4 `Region | size | 2`.
+Notice that the size from the second `describe region --name=example-region`
+is still 4
+
+`Region | size | 4`
+
+Because all the keys remain in memory.
The entries are still accessible.