The architecture of a highly available ELMA365 cluster involves the interaction of ELMA365 application microservices with the R7-Office document server, ONLYOFFICE Docs Server. The HAProxy configuration discussed in this article assumes even load balancing of traffic between the two document servers.
Example HAProxy configuration for document server
HAProxy evenly distributes client connections arriving at r7office.your_domain
between the two document servers. For more details on preparing the configuration for load balancing traffic between two document servers, refer to Install R7-Office document server.
Open the haproxy.cfg configuration file for editing using the command:
sudo nano /etc/haproxy/haproxy.cfg
Example configuration for load balancing between two document servers using HAProxy to add to the haproxy.cfg file:
### Docs Server ###
listen docsserver
bind r7office.your_domain:80
mode http
balance leastconn
server r7office1 r7office-server1.your_domain:80 check inter 2s
server r7office2 r7office-server2.your_domain:80 check inter 2s
### Docs Server ###
Example HAProxy configuration using SSL
### Docs Server ### |
Restart HAProxy:
sudo systemctl restart haproxy
Found a typo? Highlight the text, press ctrl + enter and notify us