eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[ISSUE #3874] Add a load balance strategy: source ip hash

Open pandaapo opened this issue 2 years ago • 6 comments

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

pandaapo avatar May 07 '23 06:05 pandaapo

Codecov Report

Merging #3875 (9e60028) into master (0ce8d57) will decrease coverage by 0.23%. The diff coverage is 64.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

codecov[bot] avatar May 09 '23 07:05 codecov[bot]

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.

github-actions[bot] avatar Apr 22 '24 18:04 github-actions[bot]

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.

Files Patch % Lines
...entmesh/client/http/util/HttpLoadBalanceUtils.java 0.00% 12 Missing :warning:
...n/loadbalance/SourceIPHashLoadBalanceSelector.java 88.00% 2 Missing and 1 partial :warning:
...ache/eventmesh/common/utils/CommonStringUtils.java 83.33% 1 Missing :warning:
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.

codecov-commenter avatar Apr 22 '24 18:04 codecov-commenter

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.

github-actions[bot] avatar Jun 22 '24 18:06 github-actions[bot]

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.

github-actions[bot] avatar Aug 22 '24 18:08 github-actions[bot]