# Configuring Automation via UI

{% hint style="info" %}
Configuration automation via the UI is supported in **autoscaler version 1.0.43** and above.
{% endhint %}

UI-based automation is designed for teams who want to get started quickly without configuring CRDs. It provides a simple, guided way to set up and manage automation directly in PerfectScale, removing friction for new users or teams less familiar with declarative setups.

{% hint style="warning" %}
UI automation provides a simplified experience and supports only part of the features. Full functionality and advanced configuration are available [via CRDs](/enable-automation/configuring-automation-with-crd.md).
{% endhint %}

{% hint style="success" %}
You can start with the UI to quickly set up and validate automations, and later move to CRDs for more advanced customization and granular control.&#x20;

☝🏼 If automation is configured via CRD in addition to UI-based settings, the UI-based automation will be disabled.
{% endhint %}

Once the [Automation Agent is installed](/enable-automation/automation-setup-instructions.md#step-1-install-perfectscale-automation-agent), you can easily configure automation for your clusters and workloads using a guided UI flow.

{% hint style="warning" %}
Only **Admin** users can configure automation via the UI. Other users can view the list of automated workloads but cannot create, edit, or disable automation.
{% endhint %}

To automate an entire cluster or specific workloads via the UI, go to the **Overview** screen, hover over the desired cluster, and click the **Automate** button in the **Automation** column.

<figure><img src="/files/EjSdZEogordQansBkDSP" alt=""><figcaption><p>Configuring automation via UI</p></figcaption></figure>

Clicking the **Automate** button opens the Automation configuration screen. You have a few options:

* **Enable Cluster Automation** - enables the automation configuration, but no workloads are automated yet.

{% hint style="info" %}
This step is required to proceed with automation configuration.
{% endhint %}

* **Automate the entire cluster** - autonomous optimization is applied to all workloads within the cluster.
* **Automate specific workloads** - autonomous optimization is applied only to the workloads you select within the cluster.

## UI automation settings overview

This approach is designed to help teams quickly set up automation without the need to dig in and configure automation CRDs. While it offers less flexibility than a CRD-based configuration, it provides everything you need to start optimizing your workloads autonomously.&#x20;

### Automating a cluster

To automate the entire cluster, enable the **Cluster Automation** toggle. Once done, the **Enable** button next to the number of workloads in the cluster becomes active. Clicking **Enable** will turn on all toggles for the workloads automatically. Finally, click **Save Changes**. Within a few minutes, PerfectScale will begin optimizing the cluster autonomously.

<figure><img src="/files/QPnF1yz2p0jbttYHZMUv" alt=""><figcaption><p>Automating a cluster via UI</p></figcaption></figure>

### Automating specific workloads

To enable automation for specific workloads, first turn on the **Cluster Automation** toggle. Once enabled, the toggles for individual workloads become active, allowing you to select the ones you want to automate. Click **Save Changes**, and within a few minutes, PerfectScale will start optimizing the selected workloads autonomously.

<figure><img src="/files/fydUmSx8HWVsMKOIlqTw" alt=""><figcaption><p>Automating workloads via UI</p></figcaption></figure>

Alternatively, you can automate a workload directly from its zoom-in window. Click the workload to open the window, then toggle **Automation** on with a single click. Within a few minutes, PerfectScale will begin optimizing this workload autonomously.

<figure><img src="/files/BsY1XqlRVWMJrgf1XjKD" alt=""><figcaption><p>Automating a workload via UI</p></figcaption></figure>

{% hint style="info" %}
Automation is applied only to explicitly selected workloads. Newly created workloads are not automated by default. You need to select them in the UI and enable automation manually.
{% endhint %}

{% hint style="warning" %}
If any system or user-defined limitations prevent automation, or if you are trying to automate an [unsupported workload type](#supported-workload-types), a pop-up or [automation status](/enable-automation/verifying-automation-status.md) will be displayed to notify you. In this case, automation will not be applied.

![](/files/IG9wIv86vuUwJRVYlMUt)
{% endhint %}

### Additional configurations

Additionally, you can choose whether automation should respect your configured CPU limits. Generally, we recommend removing CPU limits to allow workloads to use available CPU resources more freely, improving performance and efficiency.&#x20;

If you want to keep your configured limits, click the **three dots** button next to the cluster name in the Automation window and check **Keep CPU Limit**.

<figure><img src="/files/eRj1kKkdv7YD81I7N8qU" alt=""><figcaption><p>Additional configurations</p></figcaption></figure>

To revert all automation changes and disable automation for the cluster, click the **Cleanup All Automation** button and confirm the action.

{% hint style="info" %}
**Keep CPU Limit** and **Cleanup All Automation** are cluster-level settings.
{% endhint %}

### Supported workload types

Automation via the UI supports the same workload types as CRD-based automation, including **Deployments**, **DaemonSets**, **StatefulSets**, **CronJobs**, **Jobs**, **Rollouts,** and [**custom grouped workloads by label**](/customize-workflow/ephemeral-workloads-grouping.md). If a workload type is not supported, a corresponding status will be displayed to indicate this.

<figure><img src="/files/VMWAHUps3rUPQ3iq4RFx" alt=""><figcaption><p>Not supported workload</p></figcaption></figure>

### Automation configuration defaults

<table><thead><tr><th>Config</th><th>Default</th></tr></thead><tbody><tr><td>stopAllAutomation</td><td>false</td></tr><tr><td>cleanupAllAutomation</td><td>false</td></tr><tr><td>automationMode</td><td>Enabled</td></tr><tr><td>workloadLabelSelectors</td><td>nil</td></tr><tr><td>wasteMaxAutomationFrequency</td><td><p>Deployment: 30m</p><p>Rollout: 30m</p><p>CronJob: 30m</p><p>Job: 30m</p><p>DaemonSet: 4h</p><p>StatefulSet: 24h</p></td></tr><tr><td>fixResiliencyMaxAutomationFrequency</td><td>30m</td></tr><tr><td>maintenanceWindowIgnoredForResiliency</td><td>false</td></tr><tr><td>maintenanceWindowIgnoredMinResiliencyLevel</td><td>""</td></tr><tr><td>maintenanceWindow</td><td><pre><code>monday:
  - "00:00-23:59"
tuesday:
  - "00:00-23:59"
wednesday:
  - "00:00-23:59"
thursday:
  - "00:00-23:59"
friday:
  - "00:00-23:59"
saturday:
  - "00:00-23:59"
sunday:
  - "00:00-23:59"
</code></pre></td></tr><tr><td>workloadMinWasteUSDPerMonth</td><td>5</td></tr><tr><td>cpuManagement</td><td><p><strong>request:</strong></p><p>IncreaseEnabled: false<br>DecreaseEnabled: true<br>MinimumCores: -1 // no limit<br>MaximumCores: -1 //no limit<br><br><strong>limit:</strong><br>KeepLimit: true</p></td></tr><tr><td>memoryManagement</td><td><p><strong>request:</strong></p><p> IncreaseEnabled: false<br> DecreaseEnabled: true<br> MinimumGiB: -1 // no limit<br> MaximumGib: -1 //no limit<br><br><strong>limit:</strong><br> IncreaseEnabled: false<br> DecreaseEnabled: false<br> MinimumGiB: -1 // no limit<br> MaximumGib: -1 //no limit<br><br><strong>maxMemoryIncreaseIterations:</strong><br> Daily: 3<br> Weekly: 6</p></td></tr></tbody></table>

## Disabling automation via UI

You can disable automation in the UI only if it was originally configured through the UI. To do so, open the **Automation** window, click **Disable**, and save your changes.

<figure><img src="/files/oJo62gdVhEmokWnDmS17" alt=""><figcaption><p>Disabling automation via UI</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.perfectscale.io/enable-automation/configuring-automation-via-ui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
