项目作者: chaitanyaenr

项目描述 :
OpenShift Scale Tests/Workloads Orchestrator - POC
高级语言: Shell
项目地址: git://github.com/chaitanyaenr/cogwheel.git
创建时间: 2019-04-18T19:36:19Z
项目社区:https://github.com/chaitanyaenr/cogwheel

开源协议:

下载


CogWheel

OpenShift Scale Tests Orchestrator

Alt text

Dependencies

  1. - Git
  2. - Latest OC client

Run

  1. $ git clone https://github.com/chaitanyaenr/cogwheel.git
  2. $ cd cogwheel
  3. $ cp cogwheel_env.example.sh cogwheel_env.sh

Options supported by cogwheel:

  1. $ ./cogwheel.sh help
  2. Usage: source cogwheel_env.example.sh; ./cogwheel.sh
  3. Options supported:
  4. run_scale_test=str, str=true or false
  5. scale_test_image=str, str=Image to run
  6. cleanup=str, str=true or false
  7. kubeconfig_path=str, str=path to the kubeconfig
  8. cogwheel_repo_location=str, str=path to the cogwheel repo
  9. properties_file_path=str, str=path to the properties file
  10. capture_prometheus_db=str, str=true or false
  11. prometheus_db_path=str, str=path to export the prometheus DB

Workload Images and OCP clusters supported:

Workload Image Description Privileged Scale Cluster Starter OSD
ravielluri/image:nodevertical kubelet density focused test which creates max pods per compute node False :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
ravielluri/image:mastervertial control plane density focused test False :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
BYO ( Bring your own workload ) Any image which works on OCP cluster True/False ( False is preferred for it to work on Starter and OSD clusters NA NA NA

Create a properties file ( key=value format ), this gets converted to a configmap for the workload. For example for nodevertical, it’s just JOB=nodevertical. Set the environment variables in cogwheel_env.sh, source it and run cogwheel:

  1. $ source cogwheel_env.sh
  2. $ ./cogwheel.sh

Using pbench for running cogwheel and prometheus tarball storage

Assuming that the pbench - https://github.com/distributed-system-analysis/pbench is installed on the host on which cogwheel is running, kickoff cogwheel using pbench:

  1. $ source cogwheel_env.sh
  2. $ pbench-user-benchmark -C <Test name> -- <cogwheel_dir>/coghweel.sh

Assuming that the pbench server is up and keys are setup correctly, move the results to the pbench server:

  1. $ pbench-move-results --prefix=<prefix for the results>

Look for the cogwheel controller hostname for results at https:///results.

Credits

Created my free logo at LogoMakr.com.