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

Reuse spawner service clients #1947

Conversation

bijoua29
Copy link
Contributor

This is an attempt to reduce the overhead and DDS discovery issues associated with starting multiple controllers with the spawner. See #1934 for some background.

In this PR, we save off the service client in spawner for reuse for subsequent controllers so we're not creating a new service client for each controller. This change improves the performance and reduces the failures when starting multiple controllers at a time.

There may be a better way to do this so please comment.

Also, this PR conflicts with #1944 and may not require that PR anymore.

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

This seems to be a nice enhancement. Let's see if CI is also happy.

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

The approach is right, but this restricts all the helper method "node" to be of type ServiceCallerNode, I think this is very restricting and better not this way,

@bijoua29
Copy link
Contributor Author

The approach is right, but this restricts all the helper method "node" to be of type ServiceCallerNode, I think this is very restricting and better not this way,

Suggestions?

@saikishor
Copy link
Member

Suggestions?

I've an approach. I'm testing now. I'll open a PR if it works fine

@bijoua29
Copy link
Contributor Author

Closing this PR as #1949 is a better approach

@bijoua29 bijoua29 closed this Dec 17, 2024
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.

3 participants