Skip to content

Latest commit

 

History

History
42 lines (39 loc) · 2.6 KB

README.md

File metadata and controls

42 lines (39 loc) · 2.6 KB

Hazelcast Simulator Scenarios (CP)

The project explores the performance of Hazelcast CP Subsystem. It uses Hazelcast Simulator to run the tests.

Setup

  1. Make sure you have brew installed. If not then install it from here
  2. Read the hazelcast simulator README.md to get a basic understanding of the simulator.
  3. Follow the Install section of the simulator project. Make sure that you modify ~/.bash_profile or ~/.zshrc as per the instructions. I create virtual environments
cd ../hazelcast-simulator
python -m venv .venv
source .venv/bin/activate
pip3 install -U ansible pyyaml matplotlib signal-processing-algorithms pandas plotly boto3
./build
  1. source ../hazelcast-simulator/.venv/bin/activate to activate the virtual environment.
  2. Install AWS as brew install awscli
  3. For the first time login, follow the steps below (documentation):
    1. For Hazelcast SSO, go to AWS Login. You may use any other mechanism to login as well.
    2. Against the Account, click Command line or programmatic access
    3. Copy SSO Start URL and SSO Region
    4. Run aws configure sso and provide details as copied above.
    5. Best to give profile name as default
  4. OR, if you have already executed above step once then simply run aws sso login --profile default to login.
  5. Run inventory apply to create the infrastructure.
    1. inventory_plan.yaml uses default VPC, default internet gateway and predefined AMI. This repo has it set for ap-south-1 region. If you running on your own region and/or account then modify the inventory_plan.yaml accordingly.
  6. you can ssh via ssh -i key ubuntu@<ip>. <ip> is the IP of the machine as generated in inventory.yaml
  7. Install Java inventory install java and simulator inventory install simulator
  8. Using tc set latency to 8m on one of the VMs

Run Tests

  1. In case you add your own tests or modify the code, do the following:
cd ../hazelcast-simulator
source .venv/bin/activate
./build
  1. perftest run test-IAtomicLong.yaml or perftest run test-3member-iatomicreference-128kb-set-alter-cas-casopt.yaml. There are many test files in this repo. You can run any of them.

Destroy

  1. Run inventory destroy to destroy the infrastructure.

Notes

  1. This project was created via command perftest create --template cp-ec2 simu-cp