-
Notifications
You must be signed in to change notification settings - Fork 558
Indis based d2 warmup for restli client #1124
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
Conversation
| /** | ||
| * Records the callee service information and periodically sends out the recorded information to a persistence medium. | ||
| */ | ||
| public interface D2CalleeInfoRecorder { |
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.
This interface should've been added here and re-used in grpc infra. However, now I'll add an adapter internally to re-use that one for its implementation.
golthitarun
left a comment
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.
LGTM
| // the call fails, we still *intend* to use serviceName, so it should be in _usedServices. | ||
| String serviceName = LoadBalancerUtil.getServiceNameFromUri(request.getURI()); | ||
| _usedServices.add(serviceName); | ||
| if (_d2CalleeInfoRecorder != null && D2_SCHEME_NAME.equalsIgnoreCase(request.getURI().getScheme())) |
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.
I'm curious, what is the reason for checking the scheme?
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.
I'm not sure if this decorator LB is only ever used for d2:// requests. Currently, the recording of warmup service names doesn't happen here. Those are fetched from the d2 data stored on disk, which happens asynchronously via the property buses. I just wanna be sure that we don't record any unneeded information here.
Description
Adds fetching of downstream services to warmup using Indis. Builds on #1123.
Testing done
Deployed locally.