We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我们部门有一套k8s服务、然后grpc服务下线的时候不是用的jvm hook来通知注册中心嘛。就会造成下线不稳定、有时候不能主动下线成功。
The text was updated successfully, but these errors were encountered:
做个ApplicationListener, 手动反注册,然后sleep阻塞一段时间,实现延迟下线, k8s要配置terminationGracePeriodSeconds PolarisAutoServiceRegistration polarisAutoServiceRegistration = SpringContextHolder.getApplicationContext().getBean(PolarisAutoServiceRegistration.class); polarisAutoServiceRegistration.stop(); Thread.sleep(10000);
Sorry, something went wrong.
后续会在 polaris-java 提供标准的无损上下线 API 设计,暂时先移到 grpc-java-polaris
这里需要引入最新的 polaris-java 支持无损上下线
chuntaojun
No branches or pull requests
我们部门有一套k8s服务、然后grpc服务下线的时候不是用的jvm hook来通知注册中心嘛。就会造成下线不稳定、有时候不能主动下线成功。
The text was updated successfully, but these errors were encountered: