Skip to content
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

[#1191] add weightedResponseTime loadbalancer #1204

Merged
merged 7 commits into from
Jan 31, 2024
Merged

[#1191] add weightedResponseTime loadbalancer #1204

merged 7 commits into from
Jan 31, 2024

Conversation

chengyouling
Copy link
Collaborator

No description provided.

@chengyouling chengyouling self-assigned this Jan 24, 2024
import org.springframework.cloud.client.ServiceInstance;

public class ServiceInstanceMetrics {
private final static Map<String, ServerMetrics> INSTANCE_SERVER_METRICS_MAP = new ConcurrentHashMap<>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use cache map with key expiration to avoid memory leak

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -80,6 +84,8 @@ protected <T> T doExecute(URI url, @Nullable String uriTemplate, @Nullable HttpM
Assert.notNull(url, "URI is required");
Assert.notNull(method, "HttpMethod is required");
ClientHttpResponse response = null;
InvocationContext context = InvocationContextHolder.getOrCreateInvocationContext();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about gateway ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add gateway record

@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3a56826) 0.00% compared to head (6dca78e) 0.00%.
Report is 6 commits behind head on master.

❗ Current head 6dca78e differs from pull request most recent head 083ec0b. Consider uploading reports for the commit 083ec0b to get more accurate results

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1204   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         123     123           
  Lines        2319    2318    -1     
  Branches      201     201           
======================================
+ Misses       2319    2318    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liubao68 liubao68 merged commit 1cc7e35 into huaweicloud:master Jan 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants