Setup
Setting up Machmeter for execution.
Table of contents
Pre-Requisites
Machmeter uses several tools under the hood. Please ensure the following are installed where Machmeter will run:
- JDK & JVM (auther version >= 8)
- Terraform Cli (auther version >= 1.3.5)
- kubectl (auther version >= v1.25.4)
- Maven (auther version >= 3.6.3)
Getting Started
It’s very easy to quickly start experimenting with Machmeter. Use on of the existing usecase templates to get started.
Installation
Create a clone of the Github repository of Machmeter as follows:
git clone https://github.com/cloudspannerecosystem/machmeter.git
# Install Dependencies
cd machmeter
./install.sh
cd machmeter
# Building the maven project
mvn clean package -P assembly
# Install the gcloud gke plugin
gcloud components install gke-gcloud-auth-plugin
Execute an existing template
Machmeter exposes three CLI commands: setup
, execute
and cleanup
. All of these commands follow similar syntax and can be executed as follows:
java -jar target/machmeter/machmeter.jar <command> <Path To Json Config>
Each Machmeter run consists of the following three phases:
setup
- Create the necessary resources required to execute a POC.execute
- Execute the acutal performance POC test.cleanup
- Delete the created resources.
Click on each step to understand how to perform it.
Setting up the Cloud Environment
We expect to set organization policy by default.
- Google Cloud Project
- Google Account - It needs roles/owner permission on your project
We use Workload Identity for authentication. The required resources will be automatically created in set up phase with the required permissions and bindings.