双环境下,TDengine应该怎么部署?A网交换机坏了,TDengine怎么保证使用B网交换机正常工?有没有遇到过这个问题?目前看TDengine的fqdn机制有些问题:
(1)/etc/hosts里面如果双网配置同一个域名,A网断了,是无法通过B网进行连接的;
例如/etc/hosts里面配置
192.168.11.101 server1
192.168.22.101 server1
如果192.168.11.101网络异常,则无法通过server1建立连接;
(经测试,这种场景MySQL是不影响正常通讯的。)
(2)如果双网配置不同的域名,A网断了,通过B网对应的域名,是可以建立连接,但是访问数据异常
例如/etc/hosts里面配置
192.168.11.101 server1A
192.168.22.101 server1B
如果192.168.11.10网络异常,使用server1B可以与涛思服务器建立连接,但是查询数据、写入数据时,提示DB error: Unable to establish connection (0.028392s),日期中错误信息如下:
11/07 09:05:44.173269 00012425 UTL ERROR failed to connect socket, ip:0x650ba8c0, port:6030(target host cannot be reached)
11/07 09:05:44.173280 00012425 RPC ERROR failed to connect to:0x650ba8c0:6030
11/07 09:05:44.173314 00012425 RPC ERROR TSC 0x5, failed to set up connection(Unable to establish connection)
11/07 09:05:44.176607 00012422 TSC WARN 0x5 it shall renew table meta, code:Unable to establish connection, retry:1
11/07 09:05:44.179676 00012425 UTL ERROR failed to connect socket, ip:0x650ba8c0, port:6030(target host cannot be reached)
11/07 09:05:44.179686 00012425 RPC ERROR failed to connect to:0x650ba8c0:6030
11/07 09:05:44.179688 00012425 RPC ERROR TSC 0x5, failed to set up connection(Unable to establish connection)
11/07 09:05:44.181732 00012422 TSC WARN 0x5 it shall renew table meta, code:Unable to establish connection, retry:2
11/07 09:05:44.184658 00012425 UTL ERROR failed to connect socket, ip:0x650ba8c0, port:6030(target host cannot be reached)
11/07 09:05:44.184666 00012425 RPC ERROR failed to connect to:0x650ba8c0:6030
11/07 09:05:44.184668 00012425 RPC ERROR TSC 0x5, failed to set up connection(Unable to establish connection)
11/07 09:05:44.186637 00012422 TSC WARN 0x5 it shall renew table meta, code:Unable to establish connection, retry:3
11/07 09:05:44.189103 00012425 UTL ERROR failed to connect socket, ip:0x650ba8c0, port:6030(target host cannot be reached)
11/07 09:05:44.189110 00012425 RPC ERROR failed to connect to:0x650ba8c0:6030
11/07 09:05:44.189112 00012425 RPC ERROR TSC 0x5, failed to set up connection(Unable to establish connection)
11/07 09:05:44.191630 00012422 TSC WARN 0x5 it shall renew table meta, code:Unable to establish connection, retry:4
11/07 09:05:44.194181 00012425 UTL ERROR failed to connect socket, ip:0x650ba8c0, port:6030(target host cannot be reached)
11/07 09:05:44.194191 00012425 RPC ERROR failed to connect to:0x650ba8c0:6030
11/07 09:05:44.194193 00012425 RPC ERROR TSC 0x5, failed to set up connection(Unable to establish connection)
11/07 09:05:44.196886 00012422 TSC WARN 0x5 it shall renew table meta, code:Unable to establish connection, retry:5
11/07 09:05:44.199397 00012425 UTL ERROR failed to connect socket, ip:0x650ba8c0, port:6030(target host cannot be reached)
11/07 09:05:44.199406 00012425 RPC ERROR failed to connect to:0x650ba8c0:6030
11/07 09:05:44.199408 00012425 RPC ERROR TSC 0x5, failed to set up connection(Unable to establish connection)
11/07 09:05:44.201599 00012422 TSC WARN 0x5 it shall renew table meta, code:Unable to establish connection, retry:6
11/07 09:05:44.201603 00012422 TSC ERROR 0x5 max retry 5 reached, give up
11/07 09:05:45.911921 00012442 UTL cache:rpcObj will be cleaned up
