aboutsummaryrefslogtreecommitdiffstats
path: root/ops/scale.md
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-09-18 13:21:34 -0400
committerDrew DeVault <sir@cmpwn.com>2020-09-18 13:21:34 -0400
commit590a7d3add0df1c724927863b7bdb7c2c4d1baf0 (patch)
treee0b03e672f3c6c41c9b3ba424fc58821504a11b2 /ops/scale.md
parentc31445ee2365bc547a69460de67fc8663308a117 (diff)
downloadsr.ht-docs-590a7d3add0df1c724927863b7bdb7c2c4d1baf0.tar.gz
Update scale.md
Diffstat (limited to 'ops/scale.md')
-rw-r--r--ops/scale.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/ops/scale.md b/ops/scale.md
index 5708c2a..9d9b800 100644
--- a/ops/scale.md
+++ b/ops/scale.md
@@ -43,6 +43,15 @@ Storage utilization is fine, and easily tuned if necessary. The larger problem
is that borg triggers lots of CPU consumption on the hosts which are being
backed up. Managable now but a good candidate for future research.
+## Web load balancing
+
+We're already designed with load balancing in mind. Balancing HTTP requests
+across any number of web servers ought to be trivial. However, horizontal
+scaling of web appliances is an expensive optimization, and for the most part
+this is being considered with a low number of nodes (i.e. 3) for the purposes of
+availability moreso than scaling. We should look into other scaling options
+before reaching for web load balancing.
+
# Domain-specific concerns
## PostgreSQL
@@ -60,6 +69,9 @@ entirely off of the master server and spin up a third standby. The GraphQL
backends are already transaction-oriented and use a read-only transaction when
appropriate, so this would be fairly easy.
+If we need to scale writes horizontally, sharding should be in the cards. I
+don't expect us to need that for a long time.
+
Note: right now we have one hot standby but it serves as a failover and off-site
backup, and is not typically load-bearing. Latency issues to the backup
datacenter would likely make bringing it into normal service a non-starter.