diff --git a/http-add-on/README.md b/http-add-on/README.md index be51daf2..0c529aa3 100644 --- a/http-add-on/README.md +++ b/http-add-on/README.md @@ -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 diff --git a/http-add-on/templates/scaler/deployment.yaml b/http-add-on/templates/scaler/deployment.yaml index f19fbf77..fd3412cd 100644 --- a/http-add-on/templates/scaler/deployment.yaml +++ b/http-add-on/templates/scaler/deployment.yaml @@ -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 diff --git a/http-add-on/values.yaml b/http-add-on/values.yaml index 23b586e8..d5619daa 100644 --- a/http-add-on/values.yaml +++ b/http-add-on/values.yaml @@ -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/))