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

Closed
abialas opened this issue Aug 29, 2024 · 3 comments
Closed
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity

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.

Copy link

stale bot commented Nov 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Nov 7, 2024
Copy link

stale bot commented Nov 17, 2024

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Nov 17, 2024
@github-project-automation github-project-automation bot moved this from To Triage to Ready To Ship in Roadmap - KEDA Core Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity
Projects
Status: Ready To Ship
Development

No branches or pull requests

1 participant