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

After the service restarts, requests do not come through. #1124

Open
tiandaye opened this issue Jul 8, 2024 · 0 comments
Open

After the service restarts, requests do not come through. #1124

tiandaye opened this issue Jul 8, 2024 · 0 comments
Labels
question A question about this library or its usage

Comments

@tiandaye
Copy link

tiandaye commented Jul 8, 2024

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

  • 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

image

Adding the following configuration will work,I think it was because the service list was not refreshed when the GRPC service was restarted.

spring:
  cloud:
    gateway:
      discovery:
        locator:
          enabled: true

image

@tiandaye tiandaye added the question A question about this library or its usage label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about this library or its usage
Projects
None yet
Development

No branches or pull requests

1 participant