-
Notifications
You must be signed in to change notification settings - Fork 680
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
[flyteagent] Default Service Config Using Round Robin Mechanism #6179
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Future-Outlier <[email protected]>
Code Review Agent Run #141009Actionable Suggestions - 1
Review Details
|
Changelist by BitoThis pull request implements the following key changes.
|
Endpoint: "", | ||
Insecure: true, | ||
DefaultTimeout: config.Duration{Duration: 10 * time.Second}, | ||
DefaultServiceConfig: `{"loadBalancingConfig": [{"round_robin":{}}]}`, |
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.
Consider making the default service config more configurable by moving it to a separate constant or configuration option rather than hardcoding the round robin load balancing config directly in the default config struct.
Code suggestion
Check the AI-generated fix before applying
const (
+ DefaultServiceConfig = `{"loadBalancingConfig": [{"round_robin":{}}]}`
)
Endpoint: "",
Insecure: true,
DefaultTimeout: config.Duration{Duration: 10 * time.Second},
- DefaultServiceConfig: `{"loadBalancingConfig": [{"round_robin":{}}]}`,
+ DefaultServiceConfig: DefaultServiceConfig,
Code Review Run #141009
Is this a valid issue, or was it incorrectly flagged by the Agent?
- it was incorrectly flagged
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6179 +/- ##
==========================================
- Coverage 37.06% 37.06% -0.01%
==========================================
Files 1318 1318
Lines 132644 132644
==========================================
- Hits 49164 49161 -3
- Misses 79230 79234 +4
+ Partials 4250 4249 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Future-Outlier <[email protected]>
Code Review Agent Run #f18921Actionable Suggestions - 0Review Details
|
Tracking issue
#3936
Why are the changes needed?
This PR adds a default gRPC service configuration to the agent plugin that enables round-robin load balancing.
This ensures consistent and fair distribution of requests across multiple agent instances.
What changes were proposed in this pull request?
DefaultServiceConfig
in the default agent configuration with round-robin load balancing policy{"loadBalancingConfig": [{"round_robin":{}}]}
dns:///flyteagent.flyte.svc.cluster.local:8000
tok8s://flyteagent:8000
https://github.com/flyteorg/flyte/pull/6179/files#diff-98835a3d321cfb860916a188ca66ea98efe6c9f3a8314ea89ec2cfdf8ad50066R42-R47
How was this patch tested?
unit test and sandbox.
Labels
Please add one or more of the following labels to categorize your PR:
This is important to improve the readability of release notes.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
Implementation of round-robin load balancing for Flyte agent service, including default configuration through DefaultServiceConfig field and transition from DNS-based to Kubernetes native service discovery. Updates include endpoint configuration modifications, security-related changes to shared secrets and checksums in sandbox and development manifests, with comprehensive test coverage to validate configuration values.Unit tests added: True
Estimated effort to review (1-5, lower is better): 2