Re: [SOGo] DNS A record round robin

2022-11-10 Thread Marco Moock
Am 09.11.2022 schrieb "Odhiambo Washington" (odhia...@gmail.com)
:

> You can have this load-balancing implemented if you wanted, probably
> even locally on the host

We have SOGo 2 on RHEL6 without systemd-resolved, load balancing works.
On our SOGo 5 on RHEL 8, also without systemd-resolved, it doesn't work.

Our nameservers are in resolv.conf and they do round-robin by randomly
sending the responses. Our DNS is finde, I tried it.


Re: [SOGo] DNS A record round robin

2022-11-09 Thread nico...@hoeft.de
As sogo does not resolve by itself the hostname, I'd recommend setting 
up your resolver to return the records accordingly. This can be also 
done on a per-host basis. E.g. by configuring systemd-resolved (which 
randomizes) or unbound (which defaults to round-robin) locally on the 
host via resolv.conf.



Nicolas

Am 08.11.22 um 12:42 schrieb Marco Moock 
(marco.mo...@urz.uni-heidelberg.de):

Hello,
at work we have 2 IMAP servers. There is a hostname with 2 A records.
Does sogo do DNS round-robin by using them randomly or does sogo use
just the first and only uses the second if the first is unreachable?
Currently the requests only go to the machine listed in the 1st A.



Re: [SOGo] DNS A record round robin

2022-11-09 Thread Odhiambo Washington
On Tue, Nov 8, 2022 at 8:59 PM Marco Moock  wrote:

> Am 08.11.2022 um 18:48:47 Uhr schrieb Odhiambo Washington:
>
> > Well, this is something that you can check from SOGo's logs. If you
> > gave it that name as the IMAP server,
> > you can check on the logs to see the IP address it is making a
> > connection to.
>
> It currently only connects to the server in the fist A record (no 
> set, our admins haven't already set up IPv6, sadly).
>

You can have this load-balancing implemented if you wanted, probably even
locally on the host
running SOGo. dnsdist, haproxy, traefik all come to mind. You just need a
TCP load balancer.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)


Re: [SOGo] DNS A record round robin

2022-11-08 Thread Marco Moock
Am 08.11.2022 um 18:48:47 Uhr schrieb Odhiambo Washington:

> Well, this is something that you can check from SOGo's logs. If you
> gave it that name as the IMAP server,
> you can check on the logs to see the IP address it is making a
> connection to.

It currently only connects to the server in the fist A record (no 
set, our admins haven't already set up IPv6, sadly).


Re: [SOGo] DNS A record round robin

2022-11-08 Thread Odhiambo Washington
On Tue, Nov 8, 2022 at 6:36 PM Marco Moock  wrote:

> Am 08.11.2022 um 16:48:53 Uhr schrieb Odhiambo Washington:
>
> > SOGo is not a load-balancer.
> > SOGo daemon only listens and responds to what the web server requests
> > of it.
>
> I talked about the connection to the IMAP server. Does sogo do any load
> balancing there is it is possible, e.g. because multiple A,  or
> CNAME are set for the DNS fo the IMAP server?
>

Well, this is something that you can check from SOGo's logs. If you gave it
that name as the IMAP server,
you can check on the logs to see the IP address it is making a connection
to.
I will leave the definitive answer to the developers to talk about how the
DNS libraries behave :)


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)


Re: [SOGo] DNS A record round robin

2022-11-08 Thread Marco Moock
Am 08.11.2022 um 16:48:53 Uhr schrieb Odhiambo Washington:

> SOGo is not a load-balancer.
> SOGo daemon only listens and responds to what the web server requests
> of it.

I talked about the connection to the IMAP server. Does sogo do any load
balancing there is it is possible, e.g. because multiple A,  or
CNAME are set for the DNS fo the IMAP server?


Re: [SOGo] DNS A record round robin

2022-11-08 Thread Odhiambo Washington
SOGo is not a load-balancer.
SOGo daemon only listens and responds to what the web server requests of it.

On Tue, Nov 8, 2022 at 4:38 PM Marco Moock  wrote:

> Hello,
> at work we have 2 IMAP servers. There is a hostname with 2 A records.
> Does sogo do DNS round-robin by using them randomly or does sogo use
> just the first and only uses the second if the first is unreachable?
> Currently the requests only go to the machine listed in the 1st A.
>
> --
> kind regards
> Marco
>


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)


[SOGo] DNS A record round robin

2022-11-08 Thread Marco Moock
Hello,
at work we have 2 IMAP servers. There is a hostname with 2 A records.
Does sogo do DNS round-robin by using them randomly or does sogo use
just the first and only uses the second if the first is unreachable?
Currently the requests only go to the machine listed in the 1st A.

-- 
kind regards
Marco