Skip to content

Commit 1c4c5fd

Browse files
committed
Update chart for poller auto-scaling.
1 parent 67c1718 commit 1c4c5fd

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

charts/benchmark-workers/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ The following table lists the configurable parameters for the benchmark-workers
5959
| `temporal.grpcEndpoint` | Temporal frontend endpoint | `temporal-frontend.temporal:7233` |
6060
| `temporal.namespace` | Temporal namespace | `default` |
6161
| `temporal.taskQueue` | Task queue name | `benchmark` |
62-
| `temporal.workflowTaskPollers` | Number of workflow task pollers | `16` |
63-
| `temporal.activityTaskPollers` | Number of activity task pollers | `8` |
62+
| `temporal.maxWorkflowTaskPollers` | Maximum workflow task pollers (poller auto-scaling cap) | SDK default |
63+
| `temporal.maxActivityTaskPollers` | Maximum activity task pollers (poller auto-scaling cap) | SDK default |
6464
| `temporal.tls.enabled` | Enable TLS | `false` |
6565
| `temporal.tls.key` | TLS key content (base64 encoded) | `""` |
6666
| `temporal.tls.cert` | TLS certificate content (base64 encoded) | `""` |
@@ -213,12 +213,11 @@ additionalEnv:
213213

214214
## Examples
215215

216-
### Deploy workers with increased pollers
216+
### Deploy workers with higher activity poller auto-scaling cap
217217

218218
```bash
219219
helm install benchmark-workers oci://ghcr.io/temporalio/charts/benchmark-workers \
220-
--set temporal.workflowTaskPollers=32 \
221-
--set temporal.activityTaskPollers=16
220+
--set temporal.maxActivityTaskPollers=150
222221
```
223222

224223
### Deploy with a high load soak test

charts/benchmark-workers/templates/deployment-workers.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ spec:
3939
value: {{ .Values.temporal.namespace | quote }}
4040
- name: TEMPORAL_TASK_QUEUE
4141
value: {{ .Values.temporal.taskQueue | quote }}
42-
- name: TEMPORAL_WORKFLOW_TASK_POLLERS
43-
value: {{ .Values.temporal.workflowTaskPollers | quote }}
44-
- name: TEMPORAL_ACTIVITY_TASK_POLLERS
45-
value: {{ .Values.temporal.activityTaskPollers | quote }}
42+
{{ with .Values.temporal.maxWorkflowTaskPollers }}
43+
- name: TEMPORAL_MAX_WORKFLOW_TASK_POLLERS
44+
value: {{ . | quote }}
45+
{{- end }}
46+
{{ with .Values.temporal.maxActivityTaskPollers }}
47+
- name: TEMPORAL_MAX_ACTIVITY_TASK_POLLERS
48+
value: {{ . | quote }}
49+
{{- end }}
4650
{{- if .Values.metrics.enabled }}
4751
- name: PROMETHEUS_ENDPOINT
4852
value: {{ .Values.metrics.prometheusEndpoint | quote }}

charts/benchmark-workers/values.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ temporal:
1212
grpcEndpoint: "temporal-frontend.temporal:7233"
1313
namespace: "default"
1414
taskQueue: "benchmark"
15-
workflowTaskPollers: "16"
16-
activityTaskPollers: "8"
17-
15+
# Upper bound for poller auto-scaling (Temporal SDK PollerBehaviorAutoscaling).
16+
# maxWorkflowTaskPollers: "150"
17+
# maxActivityTaskPollers: "150"
18+
1819
tls:
1920
enabled: false
2021
# Provide these values or use an existing Secret

0 commit comments

Comments
 (0)