Skip to content
New issue

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

CooldownPeriod cannot take effect #5321

Closed
528548004 opened this issue Dec 29, 2023 · 1 comment
Closed

CooldownPeriod cannot take effect #5321

528548004 opened this issue Dec 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@528548004
Copy link

Report

When I use cron trigger, the cooldownPeriod cannot take effect

Expected Behavior

I created a scaledobject and then modified it and it should take effect based on my newly modified configuration

Actual Behavior

。。。

Steps to Reproduce the Problem

1.create scaledobject yaml
image
it is ok
image
2.update scaledobject
image
3.
image
The initial cooldownPeriod was set to five minutes. After I changed it to 0, it was not taken into effect and the cooling time for scaling was still five minutes.
4.kubernetes-version : 1.23.17;keda-version:2.8.2

Logs from KEDA operator

2023-12-29T14:00:07.240315873+08:00 2023-12-29T06:00:07Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "77603f08-5a23-482f-b1a6-e6f0007e1178"}

2023-12-29T14:00:22.272108428+08:00 2023-12-29T06:00:22Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "0ca8347e-d54f-4ce9-a042-b0554f115cfa"}

2023-12-29T14:05:03.158475756+08:00 2023-12-29T06:05:03Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "0365d91e-fdaa-45a3-ad94-6ebd1aebdd7a"}

2023-12-29T14:05:03.167100167+08:00 2023-12-29T06:05:03Z	INFO	Initializing Scaling logic according to ScaledObject Specification	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "0365d91e-fdaa-45a3-ad94-6ebd1aebdd7a"}

2023-12-29T14:06:17.963901685+08:00 2023-12-29T06:06:17Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "e999e536-4432-4a2d-9ad2-e403a425cc8f"}

2023-12-29T14:06:17.984620219+08:00 2023-12-29T06:06:17Z	INFO	Updated HPA according to ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "e999e536-4432-4a2d-9ad2-e403a425cc8f", "HPA.Namespace": "default", "HPA.Name": "keda-hpa-ba-0223-msa-001"}

2023-12-29T14:06:17.984663430+08:00 2023-12-29T06:06:17Z	INFO	Initializing Scaling logic according to ScaledObject Specification	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "e999e536-4432-4a2d-9ad2-e403a425cc8f"}

2023-12-29T14:06:17.993788883+08:00 2023-12-29T06:06:17Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "0b8910d2-0b64-45e0-afdb-c014a412c2eb"}

2023-12-29T14:06:23.098648233+08:00 2023-12-29T06:06:23Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "cfcb2cfa-3307-41ba-83ee-09c4f4bb4669"}

2023-12-29T14:07:08.178775442+08:00 2023-12-29T06:07:08Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "f07f97de-0c3f-47a0-8820-21868bb50165"}

2023-12-29T14:11:53.698628532+08:00 2023-12-29T06:11:53Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "5c771fde-deae-455c-8543-e6d9f07f487b"}

2023-12-29T14:12:08.725706728+08:00 2023-12-29T06:12:08Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "eeb62f74-e412-441e-86b0-7da9d30de4a5"}

2023-12-29T14:14:15.199002212+08:00 2023-12-29T06:14:15Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "scaledObject": {"name":"ba-0223-msa-001","namespace":"default"}, "namespace": "default", "name": "ba-0223-msa-001", "reconcileID": "bbf3213f-bd92-4ebb-a235-8a51ff209760"}

KEDA Version

None

Kubernetes Version

None

Platform

None

Scaler Details

No response

Anything else?

But when I set the minimum number of copies to 0, the configured cooling time can take effect immediately
image
image

@528548004 528548004 added the bug Something isn't working label Dec 29, 2023
@JorTurFer
Copy link
Member

I close this as duplicated: #5008
Let's push the topic in that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants