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

job-status-consumer: does not reconnect when RabbitMQ connection fails #436

Open
VMois opened this issue Mar 24, 2022 · 0 comments
Open
Labels

Comments

@VMois
Copy link

VMois commented Mar 24, 2022

Originated from reanahub/reana-job-controller#357 (comment)

After connection to RabbitMQ fails in job-status-consumer, sometimes, it does not automatically reconnect. So manual intervention is needed to restart the r-w-controller pod.

This is unusual behavior because Kombu-based consumers should reconnect on failure.

Some of the errors that might cause the issue:

Screenshot 2022-03-24 at 11 29 14

Screenshot 2022-03-24 at 14 47 17

I found this comment that might explain why the consumer is disconnecting, and also offers a possible solution to reduce PREFETCH_COUNT.

But, it might also indicate some deeper problems with consumer logic. For example, when the workflow is finished/failed it can take up to a few minutes for the consumer to process this message because of recalculating quotas for the workflow.

@VMois VMois added the type/bug label Mar 24, 2022
VMois pushed a commit to VMois/reana that referenced this issue Mar 25, 2022
- set job-status-consumer RabbitMQ prefetch value to 10;
- this should reduce the risk of getting 406 PRECONDITION error on message ack.

addresses reanahub/reana-workflow-controller#436
VMois pushed a commit to VMois/reana that referenced this issue Mar 25, 2022
- set job-status-consumer RabbitMQ prefetch value to 10;
- this should reduce the risk of getting 406 PRECONDITION error on message ack, and possibly consumer disconnection issue.

addresses reanahub/reana-workflow-controller#436
VMois pushed a commit to VMois/reana that referenced this issue Mar 25, 2022
- set job-status-consumer RabbitMQ prefetch value to 10;
- this should reduce the risk of getting 406 PRECONDITION error on message ack, and possibly consumer disconnection issue.

addresses reanahub/reana-workflow-controller#436
VMois pushed a commit to VMois/reana that referenced this issue Mar 29, 2022
- set job-status-consumer RabbitMQ prefetch value to 10;
- this should reduce the risk of getting 406 PRECONDITION error on message ack, and possibly consumer disconnection issue.

addresses reanahub/reana-workflow-controller#436
VMois pushed a commit to VMois/reana-workflow-controller that referenced this issue Mar 30, 2022
VMois pushed a commit to VMois/reana-workflow-controller that referenced this issue Mar 31, 2022
VMois pushed a commit to VMois/reana that referenced this issue Mar 31, 2022
- set job-status-consumer RabbitMQ prefetch value to 10;
- this should reduce the risk of getting 406 PRECONDITION error on message ack, and possibly consumer disconnection issue.

addresses reanahub/reana-workflow-controller#436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant