Skip to content

Conversation

@shivamgupta1
Copy link
Contributor

Description

Adds fetching of downstream services to warmup using Indis. Builds on #1123.

Testing done

Deployed locally.

/**
* Records the callee service information and periodically sends out the recorded information to a persistence medium.
*/
public interface D2CalleeInfoRecorder {
Copy link
Contributor Author

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.

Copy link
Contributor

@golthitarun golthitarun left a 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()))
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@shivamgupta1 shivamgupta1 merged commit f5f0ad4 into master Nov 1, 2025
2 checks passed
@shivamgupta1 shivamgupta1 deleted the sgupta8/record branch November 1, 2025 01:02
@nickibi nickibi mentioned this pull request Nov 4, 2025
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.

4 participants