Skip to content

feat: Add high availability for multiple replicas - #4555

Merged
kylecarbs merged 86 commits into
mainfrom
replica
Oct 17, 2022
Merged

kylecarbs merged 86 commits into
mainfrom
replica

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Oct 14, 2022 •

Copy link
Copy Markdown
Member

This adds zonal high availability to the product. Multiple Coder servers started in the same zone will mesh and coordinate automatically.

I tested this manually by deploying to Kubernetes with 50 replicas and spawning 50 workspaces. It all works!

Some cool extras:

  1. If TLS is used, we reuse this certificate to encrypt traffic between Coder pods for meshing.
  2. If replicas cannot dial each other, an error will be returned on the API object. This will be used in the future to make a nice UI!
  3. Database latency is exposed as a stat on replicas, and this will be expanded in the future to other stats for monitoring.

Closes #3227

@kylecarbs
kylecarbs requested a review from coadler October 14, 2022 16:16
@kylecarbs kylecarbs self-assigned this Oct 14, 2022
@kylecarbs
kylecarbs enabled auto-merge (squash) October 17, 2022 13:37
@kylecarbs
kylecarbs merged commit 2ba4a62 into main Oct 17, 2022
@kylecarbs
kylecarbs deleted the replica branch October 17, 2022 13:43
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add multi-replica support for high availability

3 participants