Am 28.12.2017 um 19:37 schrieb Eric DUVAL ([email protected]): > Hello, > > I use SOGo3 on 2 servers (master/master). > DNS configured in roundrobin. (webmail.example.com with 2 IPs). > In front of SOGo servers I have 2 haproxy.
Do you use 2 IPs in order to loadbalance between the two haproxys? Else I would use one service IP and switch that between the haproxys in case of failure/updates/replacement e.g. with heartbeat. Beware: There are still clients out there, who can not handle 2 IPs and will therefore only use the first one all the time. > Mencached is used on each SOGo server. > Yes, that is the fastest solution. > Is it ok to share the mysql database between the 2 SOGo servers? > Yes, of course, just make sure it can handle the load. Else you would need a synchronisation between two mysql servers (cluster mode). > I have a cache problem on the 2 servers: "[SOGoCache]> an error occurred > when caching value for key ... "SERVER HAS FAILED AND IS DISABLED UNTIL > TIMED RETRY" Do you have an idea to fix this problem? > Does memcached run at all? Which memcached settings do you have in sogo.conf? > What are the best practices for using 2 SOGo servers (master / master)? > As you can not predict, which of the servers the user uses, you have to share temporary Information between the two server e.g. via NFS too. By "temporary Information" I mean the content of SOGoMailSpoolPath and NGMimeBuildMimeTempDirectory in sogo.conf. The first is used for storing new emails and their attachments in order to transcode them into MIME format. The second is used to temporarily store file uploads till they are completed. Alternative would be to use source IP pinning, which is more complicated. Kind regards, Christian Mack -- Christian Mack Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung Basisdienste 78457 Konstanz +49 7531 88-4416
smime.p7s
Description: S/MIME Cryptographic Signature
