You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public void start() throws Exception {
this.requestAndResponseWriter = transportGrpcStub
.withWaitForReady()
// The deadline SHOULD be set when waitForReady is enabled
.withDeadlineAfter(10, TimeUnit.SECONDS)
.subscribeConfig(new OpenSergoSubscribeClientObserver(configCache, subscribeRegistry));
// TODO: add state management for the client.
}
问题描述
部署
opensergo-control-plane
到K8S后 , 客户端连接成功,也成功加载了并生效了相关配置,超过Deadline
限定时间(OpenSergoClient
默认10S)后自动断开Spring Boot 2.5.12,opensergo-java-sdk 0.1.0,Sentinel 2.0.0-alpha,opensergo-control-plane 基于main分支最新代码部署
问题验证
通过 sentinel-demo-opensergo-datasource 进行验证
启动客户端后连接正常(
opensergo-control-plane
可以看到客户端的连接的日志),且可以正确的获取到opensergo-control-plane
中相关CRD配置,通过请求接口验证限流规则也正确的被加载,但是gRPC连接会自动断开,本地启动客户端或者在集群中使用域名opensergo-control-plane.opensergo-system.svc.cluster.local
连接都有一样的问题。OpenSergoClient.java 中通过
withDeadlineAfter
来设置截止时间 , 通过手动将截止时间(withDeadlineAfter)设置为1分钟
然后验证功能,期间动态修改相关CRD限流规则 , 功能一切正常(限流规则可以实时生效),但是1分钟后客户端gRPC连接依然会被自动断开(具体见下面客户端日志)。其他信息
客户端日志
opensergo-control-plane
日志The text was updated successfully, but these errors were encountered: