On 28 July 2015 at 15:37:55, sumit jain (
sumit...@gmail.com) wrote:
> 1. Is the policy change detected instantly?
As soon as policy changes reach the node, so pretty much instantly.
> 2. What is the broker behavior when the policy is changed. Existing
> data will not be moved, but what happens to the queues? Say, if
> count is increased, are the old ones deleted or reused?
> Does publishing stop until transition is complete? Do consumers
> need to re-register? In short, what is the observable effect
> on application producers/consumers during resharding?
As the README explains, sharded queues are logical and backed by N "physical"
queues (that can have on disk storage, etc).
When you increase count, the plugin will declare more "physical" queues and bind
them accordingly. Existing queues or consumers won't be affected except that there
will be a moment when bindings are updated in bulk (so in theory some messages
may end up being unrouted — publishing as mandatory will make sure those are returned
to the published using basic.return).
Re-adding consumers is not technically necessary but if you want them to consume from
all the shards, it's a good idea.