[Dovecot] adding servers to director_mail_servers
Is there a specific order in which one has to add servers to director_mail_servers, Let's say I have 20 loadbalanced director servers (I dont, but for arguments sake). I want to add 5 servers to director_mail_servers. If I do this by restarting each director server 1 by 1 with an updated conf, it seems the 5 new servers dont get added. Or at least I dont get what makes it work eventually. Only after restarting a few times they seem to all want to agree on the new list of servers.
Cor
On Sat, 2010-12-11 at 13:14 +0100, Cor Bosman wrote:
Is there a specific order in which one has to add servers to director_mail_servers, Let's say I have 20 loadbalanced director servers (I dont, but for arguments sake). I want to add 5 servers to director_mail_servers. If I do this by restarting each director server 1 by 1 with an updated conf, it seems the 5 new servers dont get added. Or at least I dont get what makes it work eventually. Only after restarting a few times they seem to all want to agree on the new list of servers.
Well, the way it should have worked is that you add it to previous and next director's config in the ring and restart those two (or maybe only one of those needed the restart, can't remember). The rest of the directors anyway don't care about them because they aren't directly connected to them.
The previous/next server is determined by IP address. So each server always connects to the server with the next highest IP address (the last one wrapping to lowest IP address).
It's of course possible that there are bugs in this. And yeah, it should be easier to do this. Maybe a new doveadm director command for adding a new director.
Timo, sorry to get back to this, but im still confused :) It seems every time I want to add a director, or other need to restart one or work on its config, im having a hard time making things work again without service disruption (or minimal service disruption).
Lets say I have the following situation:
director1 director2 director3
They form a ring. Now I shut down director2. Then director1 and 3 connect to each other to fix the ring right? Now I restart director2. What happens? Do I have to restart director1 and 3 as well? And if so, what order do I do this?
And another situation. Lets say I have:
director1 director2 director3
Now I want to add director4. So I change the config, add a new director server to the config. I put this new config on all director servers. Now what order should I start and/or restart everything?
Regards,
Cor
participants (2)
-
Cor Bosman
-
Timo Sirainen