Skip to content

Commit fe017c0

Browse files
authored
Created an attention grabbing headline at the top (#269)
1 parent a8963dd commit fe017c0

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

docs/05-go-client/21-worker-auto-scaling.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ title: Worker auto scaling
44
permalink: /docs/go-client/worker-auto-scaling
55
---
66

7+
## From Manual Tuning to Zero-Config: The AutoScaler That Eliminates Cadence Scaling Headaches
8+
9+
### Visualizing the CPU utilization problem
10+
11+
The following Grafana dashboards demonstrate the CPU utilization issue that AutoScaler solves:
12+
13+
#### CPU Utilization vs CPU Quota
14+
![CPU Utilization](img/cpu-utilization-vs-quota.png)
15+
*Low CPU utilization (5-15%) despite active workflow processing, leading to incorrect downscaling by compute autoscalers. See how utilization jumps inside the target range (45%) once the worker autoscaler is enabled.*
16+
17+
#### Worker Instance Count Impact
18+
![Worker Instances](img/worker-instance-count.png)
19+
*Worker instance count fluctuations caused by CPU-based autoscaling decisions. Once the autoscaler is enabled, the instance count decreases 50%, saving on compute spend.*
20+
721
## Overview
822

923
### What AutoScaler does
@@ -23,7 +37,7 @@ The AutoScaler addresses these critical production problems:
2337
- **Production reliability**: Prevents scaling-related incidents and workflow processing delays
2438

2539
### How to get started
26-
>To get started, just add the following to your worker options:
40+
> To get started, just add the following to your worker options:
2741
```go
2842
worker.Options{
2943
...
@@ -48,7 +62,7 @@ worker.Options{
4862

4963
**Poller Count Setup**: Before enabling AutoScaler, ensure your initial poller count equals the maximum of your decision and activity worker poller counts. This prevents AutoScaler from starting with insufficient polling capacity.
5064

51-
>For example:
65+
> For example:
5266
```go
5367
worker.Options{
5468
...
@@ -96,17 +110,7 @@ When AutoScaler detects that workers are genuinely underutilized (based on Caden
96110

97111
This approach prevents the common scenario where compute autoscalers scale down workers that appear idle but are actually critical for maintaining workflow performance. AutoScaler provides a more accurate representation of worker utilization that can be used to make better scaling decisions at both the worker configuration level and the compute infrastructure level.
98112

99-
### Visualizing the CPU utilization problem
100-
101-
The following Grafana dashboards demonstrate the CPU utilization issue that AutoScaler solves:
102-
103-
#### CPU Utilization vs CPU Quota
104-
![CPU Utilization](img/cpu-utilization-vs-quota.png)
105-
*Low CPU utilization (5-15%) despite active workflow processing, leading to incorrect downscaling by compute autoscalers*
106-
107-
#### Worker Instance Count Impact
108-
![Worker Instances](img/worker-instance-count.png)
109-
*Worker instance count fluctuations caused by CPU-based autoscaling decisions*
113+
> 📊 **See the problem in action**: [See visualizations above](#visualizing-the-cpu-utilization-problem)
110114
111115

112116
## Scenario: Task List Backlogs
@@ -153,10 +157,9 @@ The following dashboard shows how AutoScaler addresses task list imbalances:
153157

154158
### Key metrics to monitor
155159

156-
**Client Dashboards** http://localhost:3000/d/dehkspwgabvuoc/cadence-client
160+
**Client Dashboards**: http://localhost:3000/d/dehkspwgabvuoc/cadence-client
157161
> **Note**: Make sure to select a Domain in Grafana for the dashboards to display data. The dashboards will be empty until a domain is selected from the dropdown.
158162
159-
160163
Monitor these key metrics to understand AutoScaler performance:
161164

162165

0 commit comments

Comments
 (0)