Le 21/05/2025 à 5:35 AM, Anton Shevtsov ([email protected]) a écrit :
Hi

Hi,

How can I scale SOGO?

As an example.

I have 1 server (sogo+apache) + 1 db server (postgresql)
> Sooner or later, when the load increases, I will have to scale the mail
system.

How can I do this? Does SOGO support any clustering option? How can I add more resources (instances)?

Or, as an option, make several www/sogo servers and put a balancer in front of them (keepalived/haproxy)?

Yes, here we use 4 sogo instances, each with a local dovecot "director" using our dovecot backends.

The database is mariadb/galera cluster here.

You need a reverse-proxy/load-balancer with sticky sessions (here nginx), you also need a common memcache (kind of SPOF since it's not easy to replicate, but only for cache data).

Each sogo "node" includes:
  - nginx
  - sogod
- dovecot director for imap and submission (redirects user's IMAP session to their sticky dovecot backend)
  - haproxy for database access AND memcache access

Each sogo "proxy" includes:
- memcached (only one is used in normal conditions, the other is a kind of failover) - nginx as a reverse-proxy with an additional cookie to make sessions "sticky"

Mount mail folders (maildir) from a remote server (nfs/isci/gluster/ ceph/...) What other options?


Here the mail system is distinct from sogo, but we use NFS to share maildirs to dovecot backends.

Hope this helps,

Geoffroy

Reply via email to