GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — geode-examples/overflow at develop · apache/geode-examples

Expand file tree

/

overflow

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

overflow

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
scripts
scripts
 
 
README.md
README.md
 
 

README.md

Outline

Geode Overflow Example

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 entry values being overflowed to disk and removed from memory.

This example assumes that Geode is installed.

Set up the region

  1. Set directory geode-examples/overflow to be the 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 entries.

     $ gfsh run --file=scripts/start.gfsh
    

Note that both the region size and totalEntriesOnlyOnDisk are 0 before we put any entries.

  1. Shut down the cluster

     $ gfsh run --file=scripts/stop.gfsh
    
  2. 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 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.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.