Giter VIP home page Giter VIP logo

bench-tps-dos-test's Introduction

bench-tps-dos Test

This is a implementation for bench-tps-dos gist

Usage

Check  bench-tps-dos-QUIC & bench-tps-dos-UDP in buildkite.

Environment in buildkite example

  TEST_TYPE: "QUIC"         # This will show on report
  GIT_TOKEN: "xxxxx"     
  BUILD_SOLANA: "true"
  SOLANA_BUILD_BRANCH: "master"  # same-as-cluster / master /v1.10 / v1.10.32 ...
  # api.inernal
  NDPOINT: "http://123.123.123.123"
  NUM_CLIENT: 2
  SLACK_WEBHOOK: ""
  USE_TPU_CLIENT: "false"
  TPU_DISABLE_QUIC: "false" # add --tpu-disable-quic
  DURATION: 1800
  TX_COUNT: 2000
  THREAD_BATCH_SLEEP_MS: 10
  SUSTAINED: "true"
  KEYPAIR_FILE: "xxxx.yaml"
  KEEP_INSTANCES: "true"  # do not delete instances after bench-tps test
  • Mandatory: ENDPOINT / NUM_CLIENT / SLACK_WEBHOOK / TEST_TYPE
  • BUILD_SOLANA: "true" to build bench-tps from solana source
  • SOLANA_BUILD_BRANCH: git checkout branch/version to build solana (same-as-cluster/master/v1.10.32/10.1 ...etc.) default: same-as-cluster
  • AVAILABLE_ZONE: zones to create google cloud instance. (Be aware of quota issue)
  • NUM_CLIENT: 10 (default 10 for QUIC & 1 for UDP)
  • USE_TPU_CLIENT/DURATION/TX_COUNT/SUSTAINED/THREAD_BATCH_SLEEP_MS arguments for bench-tps
  • KEYPAIR_FILE: keypair_files to use

Flow

  • creates NUM_CLIENT google clound instances
  • builds solana to use the latest bench-tps (option)
  • starts UDP/QUIC bench-tps DOS test by runing scripts in the instances
  • analyzes data by querying influxcloud
  • sends report to slack channel(SLACK_WEBHOOK)

Files

  • dos-run.sh Main process. To prepare environment variables, create google cloud instances, run benchmark and generate a report then send to slack
  • start-build-solana.sh The script downloads and builds solana
  • start-dos-test.sh The script runs bench-tps DOS test in dynamically created gc instances
  • exec-start-template.sh This file is used to generate exec-start-build-solana.sh to execute start-build-solana.sh This file is used to generate exec-start-dos-test.sh to execute start-dos-test.sh
  • dos-report-env.sh The script is stored in bench-tps-dos bucket. It is downloaded by start-dos-test.sh. It has confidential environment for executing start-dos-test.sh
  • dos-report.sh The script generates a report from influxCloud and send it to a slack channel
  • influx_data.sh The script stores flux commands.

Files in cloud storage

Private files are stored in bench-tps-dos bucket in cloud storage.
+ environment variables for report
+ a key to ssh to dynamically created google cloud instances
+ keypair files for bench-tps
+ key for bench-tps

bench-tps-dos-test's People

Contributors

pieceofr avatar yihau avatar

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.