<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Configure optimization settings on StormForge Documentation</title>
    <link>https://docs.stormforge.io/docs/configure/</link>
    <description>Recent content in Configure optimization settings on StormForge Documentation</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="https://docs.stormforge.io/docs/configure/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Getting started with configuring Optimize Live</title>
      <link>https://docs.stormforge.io/docs/configure/configure-opt-settings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.stormforge.io/docs/configure/configure-opt-settings/</guid>
      <description>&lt;h2 id=&#34;getting-started&#34;&gt;Getting started&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#getting-started&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Optimize Live performs best when it is properly configured with goals, constraints, and requirements appropriate for the workloads it is optimizing. One of the first steps you should take when deploying Optimize Live is to &lt;strong&gt;review the available configuration options, and adjust settings as needed to suit your organization’s requirements.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Optimization settings can be applied as cluster-scoped defaults, namespace-scoped defaults, or directly to individual workloads. Making sure your cluster-scoped default values are aligned with your organization’s requirements first provides the most return for your effort. You can carve out exceptions to these settings for particular namespaces or workloads later.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configure optimization defaults for the cluster</title>
      <link>https://docs.stormforge.io/docs/configure/cluster-defaults/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.stormforge.io/docs/configure/cluster-defaults/</guid>
      <description>&lt;p&gt;The purpose of this topic is to describe how to use the &lt;code&gt;cluster-defaults&lt;/code&gt; ConfigMap to configure default optimization settings for a cluster.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Topics:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#configure-defaults&#34;&gt;Configure default optimization settings for all workloads in the cluster&lt;/a&gt;&#xA;&lt;!-- - [Preferred method: Using Helm](#annot-cluster-helm) --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#defaults-using-kubectl-apply&#34;&gt;Using &lt;code&gt;kubectl apply&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#defaults-using-kubectl-edit&#34;&gt;Using &lt;code&gt;kubectl edit&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;configure-defaults&#34;&gt;Configure default optimization settings for all workloads in the cluster&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#configure-defaults&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Cluster-level defaults:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Define the default optimization settings for all workloads in a cluster&lt;/li&gt;&#xA;&lt;li&gt;Are specified in a ConfigMap named &lt;code&gt;cluster-defaults&lt;/code&gt; in the &lt;code&gt;stormforge-system&lt;/code&gt; namespace&lt;/li&gt;&#xA;&lt;li&gt;Have the lowest configuration precedence and can be overridden by namespace annotations or by annotations on individual workload resources&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!-- &#xA;You can create this ConfigMap yourself, but it may be easier to have Helm create and manage it for you.&#xA;&#xA;### Setting cluster default values using Helm {#annot-cluster-helm}&#xA;&#xA;The `stormforge-agent` Helm chart has values you can pass to define each of the possible cluster-level default settings. Helm then creates and manages the `cluster-defaults` ConfigMap for you. &#xA;&#xA;**Preferred method: Helm chart values for cluster default settings**&#xA;&#xA;1. Optional: Check whether any cluster defaults are already set in the cluster-defaults ConfigMap by running: &#xA;    ```shell&#xA;    kubectl describe configmap cluster-defaults -n stormforge-system&#xA;    ```&#xA;    - If you see an `Error from server (NotFound): configmaps &#34;cluster-defaults&#34; not found` message, no cluster-level defaults are set. Proceed to the next step. &#xA;    - Otherwise, in the **Data &gt; cluster-defaults.yaml** section of the output, notice which annotations are set. If you need to preserve those values, include them in the `cluster-defaults.yaml` file that you create in the next step.&#xA;&#xA;1. Create a .yaml values file (for example, `cluster-defaults.yaml`) that defines the clusterDefaultConfig values you need.  &#xA;    - To save time, you can copy the sample on the **Cluster** tab in the [**Copy a template**](#annot-templates) section above. Edit or comment out annotations as needed.&#xA;      &#xA;      As an example, your `cluster-defaults.yaml` file might look something like this when you&#39;re done: &#xA;&#xA;    ```yaml&#xA;    clusterDefaultConfig:&#xA;      schedule: &#34;PT16H&#34;&#xA;      autoDeploy: &#34;true&#34;&#xA;      cpuOptimizationGoal: &#34;Savings&#34;&#xA;      memoryOptimizationGoal: &#34;Savings&#34;&#xA;      containersCpuOptimizationPolicy: &#34;RequestsAndLimits&#34;&#xA;      containersCpuRequestsMin: &#34;20m&#34;&#xA;      containersCpuRequestsMax: &#34;16000m&#34;&#xA;      containersMemoryOptimizationPolicy: &#34;RequestsAndLimits&#34;&#xA;      containersMemoryRequestsMin: &#34;32Mi&#34;&#xA;      containersMemoryRequestsMax: &#34;32Gi&#34;&#xA;    ``` &#xA;&#xA;1. Run `helm install` or `helm upgrade` and include `--values` flag and your filename. For example (remember to replace CLUSTER_NAME and CREDENTIALS_FILE with your own values):&#xA;&#xA;    ```shell&#xA;    helm upgrade stormforge-agent oci://registry.stormforge.io/library/stormforge-agent \&#xA;      --namespace stormforge-system \&#xA;      --set clusterName=CLUSTER_NAME \&#xA;      --values CREDENTIALS_FILE.yaml \&#xA;      --values cluster-defaults.yaml&#xA;    ```&#xA;      **Tip:** If you&#39;re setting only a few default values, you pass them as `--set` arguments, as shown below. Be sure to replace the `: ` separator from the template with `=` as shown in the sample command below. &#xA;      ```shell&#xA;      helm upgrade stormforge-agent oci://registry.stormforge.io/library/stormforge-agent \&#xA;        --namespace stormforge-system \&#xA;        --set clusterName=CLUSTER_NAME \&#xA;        --values CREDENTIALS_FILE.yaml \&#xA;        --set clusterDefaultConfig.autoDeploy=true \&#xA;        --set clusterDefaultConfig.cpuOptimizationGoal=balanced&#xA;      ```&#xA;&#xA;      Any previous cluster-level default values are now removed, and your new defaults are in effect, unless they are overridden at the cluster or workload level.&#xA;&#xA;1. Optional: Confirm your changes by running the following command and then reviewing the annotations in the **Data** section of the output:&#xA;    ```shell&#xA;    kubectl describe configmap cluster-defaults -n stormforge-system &#xA;    `````` &#xA;--&gt;&#xA;&lt;h3 id=&#34;defaults-using-kubectl-apply&#34;&gt;Setting cluster default values using &lt;code&gt;kubectl apply&lt;/code&gt;&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#defaults-using-kubectl-apply&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create a YAML file that defines a ConfigMap called &lt;code&gt;cluster-defaults&lt;/code&gt;, with a &lt;code&gt;cluster-defaults.yaml&lt;/code&gt; data key, and the settings you want to set in annotation syntax.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configure optimization defaults for namespaces</title>
      <link>https://docs.stormforge.io/docs/configure/annotate-namespaces/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.stormforge.io/docs/configure/annotate-namespaces/</guid>
      <description>&lt;p&gt;The purpose of this topic is to describe how to use annotations to configure optimization settings.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Topics:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#annot-ns&#34;&gt;Configure default optimization settings for all workloads in a namespace&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#annot-ns-yaml&#34;&gt;Using YAML manifests&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#annot-ns-kubectl-annotate&#34;&gt;Using &lt;code&gt;kubectl annotate&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;annot-ns&#34;&gt;Configure default optimization settings for all workloads in a namespace&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#annot-ns&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;To configure settings for all workloads in a namespace, edit the Namespace definition or run &lt;code&gt;kubectl annotate&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Namespace-level defaults:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Define the default optimization settings for all workloads in a namespace&lt;/li&gt;&#xA;&lt;li&gt;Override any equivalent cluster-level defaults&lt;/li&gt;&#xA;&lt;li&gt;Are specified using annotations on the namespace&lt;/li&gt;&#xA;&lt;li&gt;Fill in any settings not provided by annotations on the workloads themselves&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;annot-ns-yaml&#34;&gt;Using YAML manifests&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#annot-ns-yaml&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Open the namespace definition in your favorite editor. This is commonly done using commands like these (remember to replace NAMESPACE and FILENAME with your own values):&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configure optimization for individual workloads</title>
      <link>https://docs.stormforge.io/docs/configure/annotate-workloads/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.stormforge.io/docs/configure/annotate-workloads/</guid>
      <description>&lt;p&gt;The purpose of this topic is to describe how to use annotations to configure optimization settings.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Topics:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#annot-wl&#34;&gt;Configure optimization settings for a specific workload&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#annot-wl-yaml&#34;&gt;Using YAML manifests&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#annot-wl-kubectl-annotate&#34;&gt;Using &lt;code&gt;kubectl annotate&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;annot-wl&#34;&gt;Configure optimization settings for a specific workload&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#annot-wl&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;To configure settings an individual workload, edit the resource definition or run &lt;code&gt;kubectl annotate&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Workload optimization settings are defined by annotations in the &lt;code&gt;metadata.annotations&lt;/code&gt; section of a Deployment, StatefulSet, or other supported workload resource type.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configure optimization using CRDs</title>
      <link>https://docs.stormforge.io/docs/configure/optimization-configurations/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.stormforge.io/docs/configure/optimization-configurations/</guid>
      <description>&lt;p&gt;StormForge&amp;rsquo;s optimization configuration options ensure consistent right-sizing across workloads and give teams control over their work.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Platform teams&lt;/strong&gt; can set organization-wide default optimization values&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Platform teams&lt;/strong&gt; can provide different default optimization values for all workloads matching a type or label selector&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Development teams&lt;/strong&gt; can fine-tune settings further for workloads in their namespaces, or for those matching specific label selectors&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Optimization configurations are Custom Resource Definitions (CRDs) consisting of &lt;a href=&#34;#rules&#34;&gt;rules&lt;/a&gt; evaluated and applied to workloads in definition order.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
