cfc891de6eeafd4bf17baa030360acd5447182d9 |
|
06-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Add mail_host.ip_str
This avoids having to use net_ip2addr() all the time to convert it into a
string. |
00cc7eb569710722af0e0af652034b9fc22c57df |
|
03-Apr-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
director: Make director_consistent_hashing=yes mandatory |
b3abfd0ac256ffa0cbfd74c3793eac4e83d41f78 |
|
30-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
director: Log vhost count changes and HOST-UP/DOWN |
b44033e45e9f48f8a6e1ac5905234fec5de6d6cc |
|
08-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
director: Keep per-tag directory |
33d70dcbb6bf10fd47aa62f29ca8e5f92d116ae4 |
|
08-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
director: Code cleanup - Reorder includes
This is required to enable typedef of
user_free_hook |
4af552f09aad93a2ae09efa6024f4ec6bb11f499 |
|
08-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
director: const mail_host in mail_host_get_tag |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
ae32667c54480d329eed994b3defab89cd76c077 |
|
24-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
director: Fixed backend selection when multiple tags were used.
The previous algorithm was causing an uneven load for backends.
This change breaks compatibility with older director servers that were using
tags because of the different selection algorithm. The new director code
refuses to run within a cluster with old directors if tags are used. |
e3751d40053ce9ad5001284f1bc8a0e5ba42ce10 |
|
23-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
director: Code cleanup - rename tag to tag_name in mail_host_*() parameters.
In preparation for the following changes. |
093b42b11c1236a687d3da564b26a324e2189ae6 |
|
23-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
director: Code cleanup - access host->tag via mail_host_get_tag()
In preparation for the following changes. |
87842f621233257b7a7945d994ba931508b34877 |
|
23-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
director: Code cleanup - make most mail_host_*() list parameters unnecessary. |
9de5eb9e1ac3a07c4197a60fdefd412d6cc78eb2 |
|
19-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
director: Remember backends' hostnames and send them in login reply.
This allows login processes to verify the remote server's hostname in SSL
certificate. |
131cb5910775213d5bc0dcf75e4fddda6f8c5a11 |
|
12-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
director: Added mail_hosts_hash(), which identifies the current mail_hosts configuration. |
8752573c44bcd139ae3ecc6d8e917c2c60bcb89f |
|
10-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
director: Don't become desynced if two directors change the same backend in incompatible ways.
This would have caused "User hash .. is being redirected to two hosts"
errors, which wouldn't easily go away as the directors have a different view
of what hosts currently exist. |
a5ddfd7a8b473f73135b93d5e081e470a87f0f7e |
|
18-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Added "up" vs "down" states and doveadm director up/down commands.
These commands are intended to be used by automated watchdogs that detect if
backends are up or down. This way the vhost count doesn't get forgotten
after server goes down. It also means that admin can manually take down a
server by setting its vhost count to 0 without the watchdog automatically
bringing it back up. |
09060303d565e15d54e42b4ef722f9d3c26f5336 |
|
12-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
director: Added support for backend cluster "tags".
This allows using a single director ring for multiple backend clusters. By
default everything has an empty tag. A passdb lookup can return
"director_tag" field containing the wanted tag name. If there aren't any
backend servers with the wanted tag, it's treated the same as if there
aren't any backend servers available (= wait for 30 secs for a backend and
then return temporary failure).
Tags can be added to configuration by adding @tag suffix to IPs/hosts. For
example:
director_mail_servers = 10.0.0.100-10.0.0.110@name1 10.0.0.120@name2
"doveadm director add" can also add tags either with @tag suffix or with -t
parameter. "doveadm director status user@domain" requires giving the user's
correct tag with -t parameter or the results won't be correct (empty tag's
results are shown). Tags can't currently be changed for an existing host
without removing it first. |
eb209d12e3b1cfed564c35cf19fdb1bf7fcc6811 |
|
12-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
director: Added director_consistent_hashing setting.
This should have been the default since the beginning. I didn't thik it was
worth the trouble originally because in theory it shouldn't matter much if
users jump between multiple backends. But this makes caching behavior worse,
especially for systems which are using local cache files. |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
edd318d5866ac3fbc6e8df28fb24a4dfef93c884 |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director status user: Show more ways of what user's potential hosts are.
--HG--
branch : HEAD |
cf9d67e4a9bfee31cf3be05244555d51a3d1b9fe |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
director: Code cleanup - keep mail hosts in a struct rather than in static variables.
--HG--
branch : HEAD |
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fb |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
Added initial implementation of a director process (for NFS users).
There are still some unimplemented features and bugs. Also changing mail
server list doesn't yet make sure that other directors won't assign the
same user to a different server at the same time.
--HG--
branch : HEAD |