-
Notifications
You must be signed in to change notification settings - Fork 221
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
Conversation
import org.springframework.cloud.client.ServiceInstance; | ||
|
||
public class ServiceInstanceMetrics { | ||
private final static Map<String, ServerMetrics> INSTANCE_SERVER_METRICS_MAP = new ConcurrentHashMap<>(); |
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.
Use cache map with key expiration to avoid memory leak
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.
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(); |
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.
How about gateway ?
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.
add gateway record
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
No description provided.