Make consumer_timeout
configurable via TLS Parameters
#3345
Replies: 7 comments 4 replies
-
No experience with erlang; but happy to try a PR if what I suggest seems amenable 😬 |
Beta Was this translation helpful? Give feedback.
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how TLS is relevant here. I'll assume you mean "connection parameters". You can "allow for false" by setting the value to something like 24 hours. After a certain threshold, a high enough timeout becomes irrelevant. AMQP 0-9-1 and AMQP 1.0 clients can specify additional consumer settings at the protocol level. If the goal is to disable the limit, though, why would it matter where the timeout value is fetched from? |
Beta Was this translation helpful? Give feedback.
-
One scenario I can think of where client-side control would be really necessary is hosted RabbitMQ that is entirely outside of application developer's control. @kjnilsson WDYT? |
Beta Was this translation helpful? Give feedback.
-
Apparently this setting is at the channel level and there can be multiple consumers per channel, which significantly complicates any possible implementation: delivery tags are not associated with specific consumer state.
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to set the consumer_timeout in /etc/rabbitmq/rabbitmq.conf but It does not seem to take affect. I set it to 30 seconds so that my QE team is able to test a particular scenario but when having the consumer service timeout for 40 seconds we are still able to ack without any error. To confirm after setting the value I stopped the server (stop_app) , reset with rabbitmqctl. To confirm that the changes of conf file take affect, we changed the username and password and can confirm our consumer services were unable to connect. Are we missing anything with regards to the consumer_timeout? thanks you |
Beta Was this translation helpful? Give feedback.
-
Some managed RabbitMQ hosting providers such as AWS AmazonMQ do not provide ability to set custom configuration. URI params configuration for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#2990, it's fair to say, is not a universally loved change; for myself, it kind of breaks our whole program 😢.
One compromise I believe makes sense, is to allow
consumer_timeout
to be set by the consumer, as part of the connection URI (preferably allowing forfalse
), since it seems reasonable the client should have a say in how long it may take to complete a task.See: https://www.rabbitmq.com/uri-query-parameters.html#tls
Originally posted in #2990 (comment)
Beta Was this translation helpful? Give feedback.
All reactions