Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Very simple gemfire test program useful for smoke tests and simple demos

License

Notifications You must be signed in to change notification settings

vmware-archive/people-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMware has ended active development of this project, this repository will no longer be updated.


# Overview # people-loader is a simple little program which generates fake people entries with plausible names and addresses, and loads them into a gemfire cluster. It is useful for demos and smoke tests.

It uses pdx serialization. The key is an Integer unless --partition-by-zip is passed in which case the key is a custom class which implements PartitionResolver based on the zip code. Objects are inserted in batches of 100 using region.putAll.

Prerequisites

  • A running GemFire 9.0.4+ cluster with a region defined.
  • java 1.8 runtime
  • python2 or python3 (only needed for the convenience script)

Usage Examples#

  • Put 10 randomly generated Person entries into the default region (Person)
python peopleloader.py  --locator=host[port]  --count=10
  • Put 10 randomly generated Person entries into a region called Customer
python peopleloader.py  --locator=host[port]  --count=10 --region=Customer
  • Use 10 threads to put 10,000 randomly generated Person entries into a the Person region.
python peopleloader.py  --locator=host[port]  --count=10000 --threads=10000
  • Use 10 threads to put 10,000 randomly generated Person entries into a the Person region but sleep 500ms after each put
python peopleloader.py  --locator=host[port]  --count=10000 --threads=10 --sleep=500
  • Put 10 randomly generated Person entries into the default region (Person). Use a custom key so the entries will be partitioned by zip code.
python peopleloader.py  --locator=host[port]  --count=10 --partition-by-zip

About

Very simple gemfire test program useful for smoke tests and simple demos

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published