-
Notifications
You must be signed in to change notification settings - Fork 708
wait for cache sync and DAG build before starting xDS server #5672
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
sunjayBhatia
merged 21 commits into
projectcontour:main
from
snapp-incubator:cache-sync-tracking
Oct 10, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
40bd073
track dag's internal cache sync
therealak12 f46e379
remove unused test
therealak12 af4c82f
move CacheSyncCheckInterval to handler config
therealak12 1cc7ece
rebuild dag only if cache is synced
therealak12 63cd04f
remove sync tracker
therealak12 86f1c5d
track upstream cache syncs
therealak12 3564d09
check cache syncs before dag rebuild
therealak12 d5c6464
wait for delivery of the initial list before starting the xds server
therealak12 87a9a7c
fix lint issues
therealak12 8dc9017
remove unused mgr field
therealak12 08d2e79
wait for the first DAG build before starting the XDS server
therealak12 8ae0d32
fix lint issues
therealak12 9e91551
add changelog
therealak12 193ebac
start XDS server without waiting for StatusUpdates
therealak12 a2f9da9
call observer before setting initialDagBuilt to true
therealak12 23223e8
set lastDAGRebuild after delivering the status updates
therealak12 4d7b9c4
return early when err != nil
therealak12 8642367
update release note
therealak12 310dc2f
use atomic bool to be concurrent safe
therealak12 c0924fb
apply clayton-gonsalves' suggestions
therealak12 d6881e7
improve the comment for the syncTracker
therealak12 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ## Contour now waits for the cache sync before starting the DAG rebuild and XDS server | ||
|
|
||
| Before this, we only waited for informer caches to sync but didn't wait for delivering the events to subscribed handlers. | ||
| Now contour waits for the initial list of Kubernetes objects to be cached and processed by handlers (using the returned `HasSynced` methods) | ||
| and then starts building its DAG and serving XDS. |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.