ufosky commented on issue #926: 为什么只有连接池模式才能关闭空闲连接
URL: https://github.com/apache/incubator-brpc/issues/926#issuecomment-533951655
使用SelectiveChannel将正常节点和备用节点放到不同的subchannel里面,然后通过策略让一般情况选择正常节点的subchannel,但是现在的问题是一旦备用节点的channel建立了连接,就一直不断开了
ufosky commented on issue #926: 为什么只有连接池模式才能关闭空闲连接
URL: https://github.com/apache/incubator-brpc/issues/926#issuecomment-533484415
如果要让单连接模式可以关闭空闲连接,可以怎么实现?
This is an automated message from the Apache Git Service.
To respond
ufosky commented on issue #926: 为什么只有连接池模式才能关闭空闲连接
URL: https://github.com/apache/incubator-brpc/issues/926#issuecomment-533411904
backup节点也有另外的服务在用,就是说流量高的时候会分一部分流量到别的服务的节点,但平时都走正常节点,关闭不必要的连接
This is an automated message from
ufosky commented on issue #926: 为什么只有连接池模式才能关闭空闲连接
URL: https://github.com/apache/incubator-brpc/issues/926#issuecomment-533387953
因为策略上的原因,需要在流量上升时用到某些节点,但是大部分时间应该是用不到的
This is an automated message from the Apache Git Service