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

maxReplicaCount doesnt work for Scaling Jobs using ScaledObject #749

Closed
dangelm opened this issue Apr 16, 2020 · 1 comment
Closed

maxReplicaCount doesnt work for Scaling Jobs using ScaledObject #749

dangelm opened this issue Apr 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@dangelm
Copy link

dangelm commented Apr 16, 2020

i am trying to execute a job per message in rabbitmq.
Setting maxReplicaCount for ScaledObject of 'job' type is not doing anything. i would expect that if i set this value to x, and there is x messages in the queue, x jobs will be created.
my yaml file looks like this:

apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: {scaled-object-name}
spec:
scaleType: job
jobTargetRef:
deploymentName: {scaled-object-name}
parallelism: 1
completions: 1
activeDeadlineSeconds: 300
backoffLimit: 1
template:
# job description - starting image with nodejs app with rabbit listener
pollingInterval: 5
cooldownPeriod: 5
minReplicaCount: 0
maxReplicaCount: 20
triggers:
- type: prometheus
metadata:
serverAddress: {promotheus address}
metricName: {metric name for rabbit metrics in promotheus}
threshold: 1
query: {queue-name}

Expected Behavior

for x messages in the queue i would expect x jobs would be created.

Actual Behavior

only 1 job is created and only after termination a new job spawns.

Steps to Reproduce the Problem

  1. start 5 jobs simultaneously

Specifications

  • KEDA Version: 1.3
  • Platform & Version: linux 64bit
  • Kubernetes Version: Major:"1", Minor:"15", GitVersion:"v1.15.10"
  • Scaler(s): Prometheus
@tomkerkhove
Copy link
Member

Closing in favor of #801

SpiritZhou pushed a commit to SpiritZhou/keda that referenced this issue Jul 18, 2023
…e#749)

Signed-off-by: Mark DeNeve <xphyr@users.noreply.github.com>
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
None yet
Development

No branches or pull requests

2 participants