grpc-ecosystem / grpc-ecosystem/grpc-spring
Getting too many pings enhance calm on spring GRPC client
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
We are using the spring boot starter to create server and client side implementation for GRPC service. After we start the GRPC server service and use the client the query service after few seconds in client logs we see message TOO_MANY_PINGS enhance calm. As per the [documentation](https://grpc.github.io/grpc/core/md_doc_keepalive.html?nstoken=7SOY%2FFbMog3%2FTQb%2FaN1J5K4WWJqd0AUhDmPMhZmD%2FawJnToZN0npY9yTnZVt5XjQmlio6d37feVHtvo6LwTAw%2FeUb4cOsj75Vo4UOa2YUAsSn9Tmc77%2FL0Tqf1RlKl%2BmVKO5mAZUuQRBTwX09iEWETFbdoENXbO%2BHHFK%2FXTm49NM5JBydZ0TzoQsjd8tSJCW1x1qxi9GcEDl71xT6l13KresRPMx%2BTt%2FOEFPolQfHmCnVzvXhBIfnaKR4l30gHBiCfb9AloWY3Brq3fY38m6a7Pyn6xYfv70SdOmy%2FFUbU3qSqbr9%2F5OJaIxMkUrtYOR%2FzingcsYlg%2BofZDGgv1PLH0SpJBivYONrkZyc6u0uiVuXMzmpjfUAifyi%2F6bevOUmf2DF65ADgDvQS7%2Fp6hsCwE01NfGnoeujQW4atIa25t5NyTTn5SlkZs1MZWy&nscheck=s1Cm4Tnoi9fWndchwkz6MA%3D%3D). The property keepAliveWithoutCalls should not be set in both client and server. In spring boot GRPC, the [server](https://github.com/yidongnan/grpc-spring-boot-starter/blob/8e3df86d456102547ae023b3fa1ffa09a9dd9bcc/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/config/GrpcServerProperties.java#L170) set the property to false and client still sends ping to the server.
What is the recommended values for the properties like keep alive time client/server and how can we change the properties.
Contributor guide
Assessment
This issue has not been assessed yet.