medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
439 stars 211 forks source link

Investigate possibility of scaling API horizontally #6265

Open garethbowen opened 4 years ago

garethbowen commented 4 years ago

Identify all the code that must only run once. Check any caching to ensure it'll still be useful or consider a cluster wide caching solution or sticky sessions. Profile performance with the scalability suite to profile performance changes.

In production use nginx ingress for load balancing with ip_hash and health checks for cpu utilization.

garethbowen commented 4 years ago

Relevant to https://github.com/medic/cht-core/issues/6246