Skip to content

feat: Add high availability for multiple replicas #4555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 86 commits into from
Oct 17, 2022
Merged

feat: Add high availability for multiple replicas #4555

merged 86 commits into from
Oct 17, 2022

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Oct 14, 2022

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