These are chat archives for spring-cloud/spring-cloud

15th
Feb 2016
Niklas Herder
@herder
Feb 15 2016 11:56
Hi, spring-cloud-starter-stream-rabbit doesn't seem to set a TTL for messages, is that correct? I would like to set a pretty short lifetime for these messages, but can't seem to find a property for that.
Niklas Herder
@herder
Feb 15 2016 12:16
More specifically: I had problems with > 2000000 messages in the queue when our turbine-amqp server had rolled up and died over the weekend :)
Dave Syer
@dsyer
Feb 15 2016 12:22
I think the default is a non-durable queue
This message was deleted
(calling @mbogoevici for consult)
So if the consumer really died you'd expect the broker to delete the queue
What versions of Spring Cloud bits are you using?
Niklas Herder
@herder
Feb 15 2016 12:26
Brixton.M5
There are a few hystrix queues: binder.springCloudHystrixStream.default seems to be published to, but not consumed. Is that maybe an binding from an earlier version of Spring Cloud?
Dave Syer
@dsyer
Feb 15 2016 12:28
I don't know
You could try with a fresh broker and see what the names are now
Niklas Herder
@herder
Feb 15 2016 12:29
yeah, I'll try deleting the queues and restart the services.
Niklas Herder
@herder
Feb 15 2016 12:34
binder.springCloudHystrixStream.default gets re-created and bound to the binder.springCloudHystrixStream exchanage , but doesn't seem to be read from? It's also set to durable: true
Stevo Slavić
@sslavic
Feb 15 2016 14:06
thanks @dsyer for fixing spring-cloud/spring-cloud-commons#90 so quickly
Niklas Herder
@herder
Feb 15 2016 14:42
Hm... I really think that the binder.{springCloudBus|springCloudHystrixStream}.default queues need to have a TTL. They are bound to their respective exchanges and get all messages, but nothing consumes from the queues, which kills RabbitMQ after a while.
...or rather, the messages sent to them
Dave Syer
@dsyer
Feb 15 2016 14:52
possibly
Why not raise an issue in github?
Niklas Herder
@herder
Feb 15 2016 14:53
Doing just that now :)
spring-cloud/spring-cloud-stream#348
Dave Syer
@dsyer
Feb 15 2016 14:56
Thanks
Dave Syer
@dsyer
Feb 15 2016 15:26
Turns out it's a duplicate
You can simply delete that queue until they fix it in stream
Niklas Herder
@herder
Feb 15 2016 15:28
Great, thanks!