We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
On my ScaledObject, I configured a type: cron trigger. The cron type trigger allows me to scale to 0, as shown here: https://keda.sh/docs/2.13/scalers/cron/#scale-to-0-during-off-hours.
ScaledObject
type: cron
minReplicaCount:0
type: cpu
type: datadog
1) With the configuration below scaledobject-cron-only.yaml.
scaledobject-cron-only.yaml
It works as expected.
desiredReplicas: 2
minReplicaCount: 0
spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: nuxtjs-helloworld-green minReplicaCount: 0 triggers: - type: cron metadata: timezone: "Europe/Paris" start: "0 7 * * *" end: "30 10 * * *" desiredReplicas: "2"
2) With the configuration below scaledobject-cron-memory.yaml
scaledobject-cron-memory.yaml
scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: nuxtjs-helloworld-green minReplicaCount: 0 pollingInterval: 30 cooldownPeriod: 3 maxReplicaCount: 5 fallback: failureThreshold: 3 replicas: 5 triggers: - type: memory metricType: Utilization metadata: value: "1" - type: cron metadata: timezone: "Europe/Paris" start: "0 7 * * *" end: "30 10 * * *" desiredReplicas: "2"
3) With the configuration below scaledobject-cron-datadog.yaml
scaledobject-cron-datadog.yaml
It doesn't work as expected.
triggers: - type: cron metadata: timezone: "Europe/Paris" start: "0 7 * * *" end: "30 10 * * *" desiredReplicas: "2" - authenticationRef: kind: ClusterTriggerAuthentication name: keda-datadog metadata: age: "120" lastAvailablePointOffset: "1" metricUnavailableValue: "1" query: sum:nginx.net.request_per_s{env:preprod,service:nuxtjs-helloworld} queryValue: "100" timeWindowOffset: "30" metricType: AverageValue type: datadog
Could you explain to me why configuration 3 does not enforce the minReplicaCount: 0 ?
Thanks a lot, Benoît
As stated in my 3) point, when I put a type:datadog trigger with a trigger type:cron, it doesn't work.
type:datadog
type:cron
As stated in my 3) point, you can use the configuration below.
example
2.13.0
1.28
Microsoft Azure
No response
We use Keda version 2.13.2 (not possible to select this version in KEDA Version dropdown list)
2.13.2
KEDA Version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Report
Hello,
On my
ScaledObject
, I configured atype: cron
trigger.The cron type trigger allows me to scale to 0, as shown here: https://keda.sh/docs/2.13/scalers/cron/#scale-to-0-during-off-hours.
minReplicaCount:0
applied.type: cpu
ortype: datadog
Expected Behavior
1) With the configuration below
scaledobject-cron-only.yaml
.It works as expected.
desiredReplicas: 2
minReplicaCount: 0
is applied2) With the configuration below
scaledobject-cron-memory.yaml
It works as expected.
desiredReplicas: 2
, plus autoscaling works well on memoryminReplicaCount: 0
is applied3) With the configuration below
scaledobject-cron-datadog.yaml
It doesn't work as expected.
desiredReplicas: 2
minReplicaCount: 0
is not applied. There is a pod that is created.Could you explain to me why configuration 3 does not enforce the
minReplicaCount: 0
?Thanks a lot,
Benoît
Actual Behavior
As stated in my 3) point, when I put a
type:datadog
trigger with a triggertype:cron
, it doesn't work.Steps to Reproduce the Problem
As stated in my 3) point, you can use the configuration below.
Logs from KEDA operator
KEDA Version
2.13.0
Kubernetes Version
1.28
Platform
Microsoft Azure
Scaler Details
No response
Anything else?
We use Keda version
2.13.2
(not possible to select this version inKEDA Version
dropdown list)The text was updated successfully, but these errors were encountered: