[AIAB-02] Automate performance tests
Next you will need to create a workflow that specifies how Akamas applies the parameters to be optimized, how to automate the launch of JMeter performance tests, and how to collect metrics from Prometheus telemetry. For now, you will create a simple automation workflow that executes a quick two-minute performance test to make sure everything is working properly.
The file workflow-baseline.yaml
contains the definition of the steps to perform during the test:
Please make sure to modify the workflow-baseline.yaml
file replacing the following placeholders with the correct references to your environment:
hostname should reference your Konakart instance in place of the placeholder target_host
username and key must reflect your Konakart instance user and SSH private key file (also check the path /home/jsmith)
TARGET_HOST in the JMeter command line should reference your Konakart instance in place of the placeholder target_host
Then create the workflow:
To execute this workflow we'll use a simple Akamas study that includes a single step of type baseline
. This type of step simply executes one experiment without leveraging Akamas AI - you will add the AI-driven optimization step later.
The study-baseline.yaml
file defines the study as follows:
Create the study:
Now, you can run the study by clicking Start from the UI, or by executing the following command:
You should now see the baseline experiment running in the Progress tab of the Akamas UI.
Notice that you can also monitor JMeter performance tests live by accessing Grafana on port 3000
of your Konakart instance, then selecting the JMeter Exporter dashboard:
You can relaunch the baseline study at any time you want by pressing the Start button again. If you want, you can also adjust the JMeter scenario settings in the workflow - see the Konakart setup guide for more details on the JMeter plans and variables you can set.
You will notice that the baseline experiment will fail on the telemetry task - see Progress tab in the UI. This is expected, as you still have not configured the Akamas telemetry, i.e. how Akamas can collect metrics - you will do this in the next section.
Last updated