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 with invalid queueName creates connections that persist #6283

Open
mauvilsa opened this issue Oct 30, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@mauvilsa
Copy link

Report

When a scaledObject is created with rabbitmq trigger and queueName pointing to a queue that doesn't exist in that rabbitmq, the keda-operator pod increasingly creates new connections that persist. Eventually a limit can be reached and new connections to rabbitmq are rejected.

Expected Behavior

When a rabbitmq queue doesn't exist, the scaledObject fail and close any opened connections to rabbitmq.

Actual Behavior

The scalerObject fails periodically, and the number of connections to rabbitmq keep increasing until creating new connections fail.

Steps to Reproduce the Problem

  1. Create a scaledObject with proper details to connect to rabbitmq
  2. Set a queueName to a queue that doesn't exist in that rabbitmq
  3. Wait for failures and see in the rabbitmq web ui how number of connections keeps increasing

Logs from KEDA operator

ERROR scale_handler error getting metric for trigger {"scaledObject.Namespace": "...", "scaledObject.Name": "...", "trigger": "rabbitMQScaler", "error": "error inspecting rabbitMQ: Exception (404) Reason: \"NOT_FOUND - no queue '...' in vhost '/'\""}
ERROR scale_handler error getting scale decision {"scaledObject.Namespace": "...", "scaledObject.Name": "...", "scaler": "rabbitMQScaler", "error": "error establishing rabbitmq connection: dial tcp ...: i/o timeout"}

KEDA Version

2.14.0

Kubernetes Version

1.30

Platform

Microsoft Azure

Scaler Details

rabbitmq

Anything else?

No response

@mauvilsa mauvilsa added the bug Something isn't working label Oct 30, 2024
@JorTurFer
Copy link
Member

Hello
Are you using AMQP or HTTP?

@mauvilsa
Copy link
Author

Hello Are you using AMQP or HTTP?

amqps://

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

2 participants