-
Notifications
You must be signed in to change notification settings - Fork 887
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
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
35b2fed
feat: HA tailnet coordinator
coadler 68a812b
fixup! feat: HA tailnet coordinator
coadler 774c5da
fixup! feat: HA tailnet coordinator
coadler bd82c5e
remove printlns
coadler 02e079d
Merge branch 'main' into colin/pg-coordinate
coadler fbad8d0
close all connections on coordinator
coadler 46803aa
impelement high availability feature
coadler d38391e
fixup! impelement high availability feature
coadler a0bcd64
fixup! impelement high availability feature
coadler 1f33018
fixup! impelement high availability feature
coadler b6a5070
fixup! impelement high availability feature
coadler 1883430
Add replicas
kylecarbs 7dc968c
Add DERP meshing to arbitrary addresses
kylecarbs 1dcf0d0
Move packages to highavailability folder
kylecarbs 5c43d63
Merge branch 'main' into colin/pg-coordinate
kylecarbs 4804269
Merge branch 'colin/pg-coordinate' into replica
kylecarbs 289e139
Move coordinator to high availability package
kylecarbs 585bc1d
Add flags for HA
kylecarbs fdb3557
Rename to replicasync
kylecarbs 9124b00
Denest packages for replicas
kylecarbs d5555f6
Add test for multiple replicas
kylecarbs 8dfc261
Fix coordination test
kylecarbs ff5968b
Add HA to the helm chart
kylecarbs 557b390
Rename function pointer
kylecarbs 186a5e2
Add warnings for HA
kylecarbs de5b13b
Add the ability to block endpoints
kylecarbs 9a50ac4
Add flag to disable P2P connections
kylecarbs 6fa941f
Wow, I made the tests pass
kylecarbs abff96b
Add replicas endpoint
kylecarbs d6ce216
Ensure close kills replica
kylecarbs c3786a5
Merge branch 'main' into replica
kylecarbs d7cc0ff
Update sql
kylecarbs 9914840
Add database latency to high availability
kylecarbs c1aa3d2
Pipe TLS to DERP mesh
kylecarbs 0cc4263
Fix DERP mesh with TLS
kylecarbs f9177e4
Add tests for TLS
kylecarbs ee59d88
Fix replica sync TLS
kylecarbs 8641e58
Fix RootCA for replica meshing
kylecarbs 3dfb796
Remove ID from replicasync
kylecarbs ec2c1f1
Fix getting certificates for meshing
kylecarbs 590f0f8
Remove excessive locking
kylecarbs d8580d1
Fix linting
kylecarbs ae956fb
Store mesh key in the database
kylecarbs d703e2d
Fix replica key for tests
kylecarbs 9bb021c
Fix types gen
kylecarbs 76c9e2c
Fix unlocking unlocked
kylecarbs 09e87b0
Fix race in tests
kylecarbs 18c0464
Update enterprise/derpmesh/derpmesh.go
kylecarbs 6f25b2d
Rename to syncReplicas
kylecarbs efb6ece
Merge branch 'replica' of github.com:coder/coder into replica
kylecarbs 1e85039
Reuse http client
kylecarbs ae0aa5f
Delete old replicas on a CRON
kylecarbs 332d435
Merge branch 'main' into replica
kylecarbs bd7fb13
Fix race condition in connection tests
kylecarbs bb5b347
Fix linting
kylecarbs 76e0511
Fix nil type
kylecarbs 1ff5f7d
Move pubsub to in-memory for twenty test
kylecarbs b732184
Add comment for configuration tweaking
kylecarbs 38465ac
Fix leak with transport
kylecarbs 72555e2
Fix close leak in derpmesh
kylecarbs e54072a
Fix race when creating server
kylecarbs 27d5f40
Remove handler update
kylecarbs 4d0b1d8
Skip test on Windows
kylecarbs 129f5ba
Fix DERP mesh test
kylecarbs 4e5d30e
Wrap HTTP handler replacement in mutex
kylecarbs 0359a7e
Fix error message for relay
kylecarbs f364d1f
Fix API handler for normal tests
kylecarbs 423a47e
Fix speedtest
kylecarbs c3a77fe
Fix replica resend
kylecarbs 729f8a0
Fix derpmesh send
kylecarbs ae0bc5d
Ping async
kylecarbs d7d50db
Increase wait time of template version jobd
kylecarbs 77d23dc
Fix race when closing replica sync
kylecarbs 435bbbb
Add name to client
kylecarbs 9b7c41a
Log the derpmap being used
kylecarbs 9615402
Don't connect if DERP is empty
kylecarbs bcb97ac
Improve agent coordinator logging
kylecarbs e2f6a19
Fix lock in coordinator
kylecarbs c855c9b
Fix relay addr
kylecarbs a0e5cab
Fix race when updating durations
kylecarbs 9878fc5
Fix client publish race
kylecarbs 7a40bf8
Run pubsub loop in a queue
kylecarbs 08b9681
Store agent nodes in order
kylecarbs 79991a9
Fix coordinator locking
kylecarbs 020171b
Check for closed pipe
kylecarbs 6a57554
Merge branch 'main' into replica
kylecarbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix client publish race
- Loading branch information
commit 9878fc51d4b6a464e87bcb5f59f6891e1e39d5d9
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this returns the memory address of the underlying node would this not potentially cause problems if they modified the values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly would