kedacore/keda

Keda Cron Scaler can't be unsuspended

开放

#4,044 创建于 2022年12月26日

 (4 条评论) (0 个反应) (0 位负责人)Go (1,457 个派生)auto 404
bughelp wantedstale-bot-ignore

仓库指标

星标
 (10,372 个星标)
PR 合并指标
 (平均合并 8天 8小时) (30 天内合并 94 个 PR)

描述

Report

Hello, We have a ScaledObject that is scaling our application based on the Cron Scaler.

Sometimes we have production events that cause us to want even more replicas than what is configured in the cron, so we just change the number of desired replicas using the suspend annotation:

kubectl annotate scaledObject -n my-apps my-app autoscaling.keda.sh/paused-replicas=25

this works, and immediatly changes the replicas to the number that is stated in the annotation. The problem is - unpause, when removing the annotation:

kubectl annotate scaledObject -n my-apps my-app autoscaling.keda.sh/paused-replicas-

this doesnt do anything, so basically once we add a pause-replicas annotations we are stuck with this number of replicas. we also dont see anything in the logs regarding the removal of the annotation like we see with other scalers when we remove the annotation. so it seems like there is a bug to get the event that the annotation was removed when using cron.

this graph shows how it looks: image

at first we were using paused-replicas on 30, after removing it nothing happened so we deleted and recreated the scaled object - and everything is back to normal, than we did paused-replicas again on 25 replicas - removed it and now we stuck on 25 replicas.

Expected Behavior

when removing the annotation of paused-replicas return to the needed number of replicas.

Actual Behavior

nothing happens when removing the annotations.

Steps to Reproduce the Problem

  1. use cron scaler
  2. add an annotation of pause-replicas
  3. remove the annotation of pause-replicas

Logs from KEDA operator

No response

KEDA Version

2.7.1

Kubernetes Version

< 1.23

Platform

Amazon Web Services

Scaler Details

Cron

Anything else?

No response

贡献者指南