Giter Club home page Giter Club logo

3scale-perf-setup's Introduction

Readme 3scale-perf-setup

As series of scripts to automate preparing a cluster for Performance Testing

  • Databases
  • ApiManager(3scale)
  • Monitoring
  • Product

Usage

Databases Setup

NOTE: Script to be run before 3scale-operator is installed chmod and run the script against a fresh cluster

chmod 771 setup_db.sh
./setup_db.sh

ApiManager Setup

setup_apimanager.sh script needs to be run after setup_db.sh chmod and run the script

chmod 771 setup_apimanager.sh
./setup_apimanager.sh

setup_apimanager.sh also can take in a development operator index as a command line argument to use your operator index

./setup_apimanager.sh "quay.io/<YOUR_ORG>/3scale-index:<YOUR_TAG>"

Monitoring Setup

setup_monitoring.sh script needs to be run after setup_db.sh and setup_apimanager.sh chmod and run the script

chmod 771 setup_monitoring.sh
./setup_monitoring.sh

Product Setup

setup_product.sh script needs to be run after setup_db.sh and setup_apimanger chmod and run the script

chmod 771 setup_product.sh
./setup_product.sh

Caputure Resource Metrics

This script requires 2 files containing the start and end times generated with date -u +%Y-%m-%dT%TZ > perf-test-start-time.txt and date -u +%Y-%m-%dT%TZ > perf-test-end-time.txt respectlively

  • a "perf-test-start-time.txt" file with a valid rfc3339 timestamp from a moment before performance tests started
  • a "perf-test-end-time.txt" file with a valid rfc3339 timestamp from a moment after performance tests finished

capture_resource-metrics.sh

chmod 771 capture_resource-metrics.sh
./capture_resource_metrics.sh
64
32
31.64
277.05847930908203
122.5894775390625
110.1988525390625
4.415
5287.2557373046875
4215.2372829861115
0.09181629062352627
0.09181629062352627
4521.91015625
0.09843198155966482
0.09843198155966482

You can copy the output to our google spreadsheet where it will be formated

Alerts Check

This script can be run at the start of a test run and it will capture any alerts or pending alerts while running, at the end of the run hit Ctrl C to exit

chmod 771 alert_check.sh
./alert_check.sh
No alert firing
Tue 07 May 2024 14:46:17 IST

=================== Sleeping for 5 seconds ======================

No alert firing
Tue 07 May 2024 14:46:23 IST

=================== Sleeping for 5 seconds ======================

^C

While running it will generate and update two files which will capture any alerts that fire or go pending

threescale-alert-firing-report.csv
threescale-alert-pending-report.csv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.