Skip to content

[probes.grpc] Provide an option to not reuse connections. - #1036

Merged
manugarg merged 3 commits into
mainfrom
grpx
Mar 10, 2025
Merged

manugarg merged 3 commits into
mainfrom
grpx

Conversation

@manugarg

@manugarg manugarg commented Mar 10, 2025 •

Copy link
Copy Markdown
Contributor

Note that in gRPC, it's not default because gRPC application usually behave that way -- they establish a connection once and keep on reusing it. gRPC probes try to mimic that. In a way they are more focussed on testing the service functionality rather than connectivity.

However, if your service is behind a loadbalancer, you might want to target as many instances as possible. To do that, its necessary that you either establish a new connection everytime or you use a large number of connections (num_conns) in each probe cycle.

See #1022 for longer discussion.

Note that in gRPC, it's not default because gRPC application usually
behave that way -- they establish a connection once and keep on reusing
it. gRPC probes try to mimic that. In a way they are more focussed on
testing the service functionality rather than connectivity.

However, if your service is behind a loadbalancer, you might want to
target as many instances as possible. To do that, its necessary that you
either establish a new connection everytime or you use a large number
of connections (num_conns) in each probe cycle.
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.

1 participant