There are two services, server-a and server-b, each with two instances. server-a will call the server-b service, and after one instance of server-b restarts, all traffic will go to the other instance of server-b.
The application's environment
Spring (boot):3.0.2
grpc-java:1.51.0
grpc-spring-boot-starter:2.14.0.RELEASE
java: version + architecture (64bit?)
java 17.0.5 2022-10-18 LTS
Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)
Additional information
Shutting down the service will print the following information, restarting will not print it
Adding the following configuration will work,I think it was because the service list was not refreshed when the GRPC service was restarted.
The question
There are two services, server-a and server-b, each with two instances. server-a will call the server-b service, and after one instance of server-b restarts, all traffic will go to the other instance of server-b.
The application's environment
Additional information
Shutting down the service will print the following information, restarting will not print it
Adding the following configuration will work,I think it was because the service list was not refreshed when the GRPC service was restarted.