Spec

1 minute read

All experiments are Kubernetes objects. This means they follow a similar pattern to other Kubernetes resources in that they include TypeMeta and ObjectMeta data. Additional details can be found in the experiment reference.

Example

In the next few pages we will walk you through building an experiment file for the Online Boutique demo application and introduce concepts along the way.

In this example, we will tune the memory and cpu resources for the frontend and the product catalog. The performance will be measured by comparing a relative cost with the duration.

1
2
3
4
5
6
7
8
9
apiVersion: optimize.stormforge.io/v1beta2
kind: Experiment
metadata:
  name: shopping
  labels:
    stormforge.io/application: shopping
    stormforge.io/scenario: 20-user

spec:

Next, we will define parameters to explore for our experiment.

Last modified August 25, 2021