Export Patches

Export Optimized Configuration

At the end of a StormForge Experiment, we provide a command to export a patch for the recommended configuration. This command is based on the trial number, and you can change it to a trial that you find more appropriate for your situation. For example, in a Postgres experiment, if the recommended trial is Trial #11, you can export a patch by running stormforge export -pf experiment.yaml postgres-experiment-011, where experiment.yaml is the experiment file you used to create the experiment. You can apply this patch to an application manifest or directly to the deployed application.

Apply a patch to a manifest

To apply the exported patches to the manifest of the Postgres application, run:

stormforge export postgres-experiment-011 -f experiment.yaml -f postgres.yaml --patched-target

Apply a patch to Kubernetes object

To apply the exported patches to the Postgres deployment, run:

kubectl patch -n default deployment postgres --patch=$(stormforge export -pf experiment.yaml postgres-experiment-011)

Last modified December 15, 2022