-
Notifications
You must be signed in to change notification settings - Fork 408
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
proposal: reuse list/watch requests in the nodepool for reducing clou… #2226
proposal: reuse list/watch requests in the nodepool for reducing clou… #2226
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2226 +/- ##
==========================================
- Coverage 45.24% 45.18% -0.06%
==========================================
Files 422 422
Lines 28779 28779
==========================================
- Hits 13021 13005 -16
- Misses 14447 14460 +13
- Partials 1311 1314 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2. Different leader election strategies can be supported, such as random, mark, etc. | ||
- random: controller select one ready node as leader at random. | ||
- mark: controller select one ready node as leader from nodes that are specified by labelselector. | ||
3. Leader Yurthub will start to list/watch pool scope metadata from control-plane and store on local memory for sharing. |
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.
When we refer to local memory are we talking about RAM or Disk?
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.
local memory here is about RAM.
d1f64b4
to
2a63a31
Compare
…d-edge network traffic Signed-off-by: rambohe-ch <[email protected]>
2a63a31
to
d9b8c22
Compare
Quality Gate passedIssues Measures |
/LGTM |
|
||
This field is used only when LeaderElectionStrategy is mark. controller will elect leader from nodes that filtered by this label selector. | ||
|
||
+ Spec.PoolScopeMetadata: []schema.GroupVersionKind [Allowed to change] |
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.
I think we can use a string slice here, formatted as 'group/version/kind'. It just requires adding a parser to process it. This way, users can enable this ability by specifying the group, groupVersion, or a specific gvk in the nodepool.
poolScopeMetadata:
- v1
- discovery.k8s.io/v1
Additionally, string slice would be more user-friendly. How do you think?
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.
I think that []metav1.GroupVersionKind slice maybe more understandable for end users, and if we formated as 'group/version/kind' string slice, end users need to know the format at first before configure pool scope metadata.
so I prefer []metav1.GroupVersionKind slice to formated []string slice.
What type of PR is this?
/kind feature
What this PR does / why we need it:
add a proposal to reuse list/watch requests in the nodepool for reducing cloud-edge network traffic.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
other Note