Server tip: Load balancing


(Lars Ă˜verland) #1

Hi,

a tip to server admins for large DHIS 2 installations.

Certain web API calls in DHIS 2, like the analytics APIs, are compute intensive. As a result it is favorable to rate limit these APIs in order to allow all users of the system to utilize a fair share of the server resources. In other words, if too many users make too many analytics request, the server might grind to a halt.

One approach to achieve rate limiting is to use nginx which is a reverse proxy (put simply a web server in front of Tomcat). You can find a guide for achieving rate limiting here:

https://docs.dhis2.org/master/en/implementer/html/install_reverse_proxy_configuration.html#install_rate_limiting

regards,

Lars