The project explores the performance of Hazelcast CP Subsystem. It uses Hazelcast Simulator to run the tests.
- Make sure you have
brew
installed. If not then install it from here - Read the hazelcast simulator README.md to get a basic understanding of the simulator.
- 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
source ../hazelcast-simulator/.venv/bin/activate
to activate the virtual environment.- Install AWS as
brew install awscli
- For the first time login, follow the steps below (documentation):
- For Hazelcast SSO, go to AWS Login. You may use any other mechanism to login as well.
- Against the Account, click
Command line or programmatic access
- Copy
SSO Start URL
andSSO Region
- Run
aws configure sso
and provide details as copied above. - Best to give profile name as
default
- OR, if you have already executed above step once then simply run
aws sso login --profile default
to login. - Run
inventory apply
to create the infrastructure.inventory_plan.yaml
uses default VPC, default internet gateway and predefined AMI. This repo has it set forap-south-1
region. If you running on your own region and/or account then modify theinventory_plan.yaml
accordingly.
- you can ssh via
ssh -i key ubuntu@<ip>
.<ip>
is the IP of the machine as generated ininventory.yaml
- Install Java
inventory install java
and simulatorinventory install simulator
- Using tc set latency to 8m on one of the VMs
- In case you add your own tests or modify the code, do the following:
cd ../hazelcast-simulator
source .venv/bin/activate
./build
perftest run test-IAtomicLong.yaml
orperftest run test-3member-iatomicreference-128kb-set-alter-cas-casopt.yaml
. There are many test files in this repo. You can run any of them.
- Run
inventory destroy
to destroy the infrastructure.
- This project was created via command
perftest create --template cp-ec2 simu-cp