Skip to content

ocp-power-automation/benchmark-operator

 
 

Repository files navigation

Benchmark Operator

The intent of this Operator is to deploy common workloads to establish a performance baseline of Kubernetes cluster on your provider.

Installation

Installing the benchmark-operator is easiest by using the helm chart and can be done with the following commands. This requires your machine to have Helm installed. Install Helm

Note: If running on openshift you'll need to run this command before installing the chart. oc adm policy -n my-ripsaw add-scc-to-user privileged -z benchmark-operator

git clone https://github.com/cloud-bulldozer/benchmark-operator
cd benchmark-operator/charts/benchmark-operator
helm install benchmark-operator . -n my-ripsaw --create-namespace

To delete this release, you can do so with the following command:

helm delete benchmark-operator -n my-ripsaw --purge

Workloads status

Workload Use ElasticSearch indexing Reconciliation usage VM support (kubevirt) Kata Containers
UPerf Network Performance Yes Used, default : 3second Working Working
Iperf3 Network Performance No Used, default : 3second Not Supported Preview
fio Storage IO Yes Used, default : 3second Working Working
Sysbench System Performance No Used, default : 3second Not Supported Preview
YCSB Database Performance Yes Used, default : 3second Not Supported Preview
Byowl User defined workload Yes Used, default : 3second Not Supported Preview
Pgbench Postgres Performance Yes Used, default : 3second Not Supported Preview
Smallfile Storage IO Performance Yes Used, default : 3second Not Supported Preview
fs-drift Storage IO Longevity Yes Not used Not Supported Preview
hammerdb Database Performance Yes Used, default : 3second Not Supported Preview
Service Mesh Microservices No Used, default : 3second Not Supported Preview
Vegeta HTTP Performance Yes Used, default : 3second Not Supported Preview
Scale Openshift Scale Openshift Cluster Yes Used, default : 3second Not Supported Preview
stressng Stress system resources Yes Used, default: 3second Not Supported Preview
kube-burner k8s Performance Yes Used, default : 3second Not Supported Preview
cyclictest Real-Time Performance Yes Used, default : 3second Not Supported Preview
oslat Real-Time Latency Yes Used, default : 3second Not Supported Preview

Reconciliation

Previously the Benchmark Operator didn't properly take advantage of the reconciliation period. Going forward we will make every attempt to utilize the reconciliation period.

Why did we decide to switch to this? Our operator would implement long running tasks, due to the nature of benchmarks. However, long running tasks blocks the Operator, causing us to delete the Operator and re-create the operator to un-block it. The benchmarks mentioned above that state Used for Reconciliation, no longer have this issue.

Optional workload images

Optional locations for workload images can now be added easily without the need to rebuild the operator. To do so in the workload args section of the CR add image: [location]

NOTE: This is not a required arguement. If omitted it will default to the currently verified workload image. Additionally, this is NOT enabled for YCSB

For Example:

apiVersion: ripsaw.cloudbulldozer.io/v1alpha1
kind: Benchmark
metadata:
  name: example-benchmark
  namespace: my-ripsaw
spec:
  elasticsearch:
    url: "http://my-es.foo.bar:80"
  metadata_collection: true
  cleanup: false
  workload:
    name: "foo"
    args:
      image: my.location/foo:latest

User Provided UUID

All benchmarks in the benchmark-operator utilize a UUID for tracking and indexing purposes. This UUID is, by default, generated when the workload is first started. However, if desired, a user provided UUID can be added to the workload cr.

NOTE: The provided UUID must be in format XXXXX-XXXXX-XXXXX

For Example:

apiVersion: ripsaw.cloudbulldozer.io/v1alpha1
kind: Benchmark
metadata:
  name: example-benchmark
  namespace: my-ripsaw
spec:
  uuid: 6060004a-7515-424e-93bb-c49844600dde
  elasticsearch:
    url: "http://my-es.foo.bar:80"
  metadata_collection: true
  cleanup: false
  workload:
    name: "foo"
    args:
      image: my.location/foo:latest

Installation

Installation

Contributing

Contributing

Metadata Collection

Metadata Collection

Cerberus Integration

Cerberus Integration

Indexing to Elasticsearch

Indexing to Elasticsearch

Capturing Prometheus Data

Capturing Prometheus Data

Cache dropping

Cache dropping

Community

Key Members(slack_usernames): ravi, mohit, dry923, rsevilla or rook

About

The Chuck Norris of cloud benchmarks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 65.1%
  • Shell 29.5%
  • Python 3.8%
  • Smarty 1.1%
  • Dockerfile 0.5%