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

RabbitMQ trigger not work correctly for mode MessageRate and sum operator #6110

Open
abialas opened this issue Aug 29, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@abialas
Copy link

abialas commented Aug 29, 2024

Report

I am using trigger based on RabbitMQ and MessageRate as mode. As operation I am using sum and value is set to 150.
RabbitMQ has 4 queues. When every queue has incoming message rate at 50/s (200/s in sum) then I would expect to have two instances and this works fine. However, when my traffic increase and every queue has message rate 100/s (400/s in sum) I would expect three instances but Keda scales it up to my max which is six.

Expected Behavior

When sum message rate is 400/s Keda should scale to three instances based on above setup.

Actual Behavior

When sum message rate is 400/s Keda scales to six instances.

Steps to Reproduce the Problem

1.ScaledObject definition:

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: scaled-object-name
  namespace: namespace
spec:
  scaleTargetRef:
    name: release-name
  cooldownPeriod: 60
  pollingInterval: 10
  minReplicaCount: 2
  maxReplicaCount: 6
  triggers:
    - type: rabbitmq
      metadata:
        queueName: ^prefix.*$
        mode: MessageRate
        value: "150"
        unsafeSsl: "true"
        useRegex: "true"
        operation: sum
      authenticationRef:
        name: authRef
  1. Rabbit with 4 queues every with message rate 100/s
  2. Deployment release-name is scaled to six instances.

Logs from KEDA operator

No response

KEDA Version

None

Kubernetes Version

None

Platform

Amazon Web Services

Scaler Details

RabbitMQ Queue

Anything else?

No response

@abialas abialas added the bug Something isn't working label Aug 29, 2024
@abialas
Copy link
Author

abialas commented Aug 29, 2024

Issue is even worse - I have increased max replicas to 10 instances and for 400/s un sum it scales up to 10 instances.

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
Status: To Triage
Development

No branches or pull requests

1 participant