Skip to content

Commit

Permalink
feat(add-on): Supporting streamInterval configuration (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorTurFer authored Oct 5, 2023
1 parent 2695763 commit a84fbef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions http-add-on/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ their default values.
| `scaler.resources.requests.cpu` | string | `"250m"` | |
| `scaler.resources.requests.memory` | string | `"20Mi"` | |
| `scaler.service` | string | `"external-scaler"` | The name of the Kubernetes `Service` for the scaler component |
| `scaler.streamInterval` | int | `200` | Interval in ms for communicating IsActive to KEDA |
| `scaler.tolerations` | list | `[]` | Tolerations for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)) |

### Interceptor
Expand Down
2 changes: 2 additions & 0 deletions http-add-on/templates/scaler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
value: "{{ .Chart.Name }}-{{ .Values.interceptor.admin.service }}"
- name: KEDA_HTTP_SCALER_TARGET_ADMIN_PORT
value: "{{ default 9091 .Values.interceptor.admin.port }}"
- name: KEDA_HTTP_SCALER_STREAM_INTERVAL_MS
value: "{{ .Values.scaler.streamInterval }}"
resources:
{{- toYaml .Values.scaler.resources | nindent 10 }}
terminationGracePeriodSeconds: 10
Expand Down
2 changes: 2 additions & 0 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ scaler:
healthPort: 9091
# -- The number of "target requests" that the external scaler will report to KEDA for the interceptor's scaling metrics. See the [KEDA external scaler documentation](https://keda.sh/docs/2.4/concepts/external-scalers/) for details on target requests.
pendingRequestsInterceptor: 200
# -- Interval in ms for communicating IsActive to KEDA
streamInterval: 200
# -- Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/))
nodeSelector: {}
# -- Tolerations for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/))
Expand Down

0 comments on commit a84fbef

Please sign in to comment.