eventmesh
eventmesh copied to clipboard
[ISSUE #3874] Add a load balance strategy: source ip hash
Fixes #3874.
Motivation
Add a load balance strategy: source ip hash. Make the same client machine always arrive at the same server.
Modifications
Add a new LoadBalanceSelector for implementing source ip hash algorithm. Add unit test for new LoadBalanceSelector.
Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? JavaDocs
Codecov Report
Merging #3875 (9e60028) into master (0ce8d57) will decrease coverage by
0.23%. The diff coverage is64.44%.
:exclamation: Current head 9e60028 differs from pull request most recent head 78c6b51. Consider uploading reports for the commit 78c6b51 to get more accurate results
@@ Coverage Diff @@
## master #3875 +/- ##
============================================
- Coverage 14.24% 14.01% -0.23%
+ Complexity 1320 1303 -17
============================================
Files 579 572 -7
Lines 28967 28891 -76
Branches 2802 2818 +16
============================================
- Hits 4125 4049 -76
- Misses 24450 24469 +19
+ Partials 392 373 -19
| Impacted Files | Coverage Δ | |
|---|---|---|
| ...entmesh/client/http/util/HttpLoadBalanceUtils.java | 53.57% <0.00%> (ø) |
|
| ...ache/eventmesh/common/utils/CommonStringUtils.java | 83.33% <83.33%> (ø) |
|
| ...n/loadbalance/SourceIPHashLoadBalanceSelector.java | 88.00% <88.00%> (ø) |
|
| .../eventmesh/common/loadbalance/LoadBalanceType.java | 81.81% <100.00%> (+1.81%) |
:arrow_up: |
... and 142 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.
If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.
Codecov Report
Attention: Patch coverage is 64.44444% with 16 lines in your changes missing coverage. Please review.
Project coverage is 14.01%. Comparing base (
0ce8d57) to head (9e60028). Report is 533 commits behind head on master.
:exclamation: Current head 9e60028 differs from pull request most recent head 78c6b51
Please upload reports for the commit 78c6b51 to get more accurate results.
Additional details and impacted files
@@ Coverage Diff @@
## master #3875 +/- ##
============================================
- Coverage 14.24% 14.01% -0.23%
+ Complexity 1320 1303 -17
============================================
Files 579 572 -7
Lines 28967 28891 -76
Branches 2802 2818 +16
============================================
- Hits 4125 4049 -76
- Misses 24450 24469 +19
+ Partials 392 373 -19
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.
If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.
If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.