原 GreenPlum优化参数之数据库参数gp_interconnect_tcp_listener_backlog和操作系统内核参数net.core.somaxconn调优 SetupTCPInterconnect: too many expected incoming connections(352), Interconnect setup might possibly fail
Tags: 原创GreenPlum参数net.core.somaxconn内核参数gp_interconnect_tcp_listener_backlog
现象
使用Navicat做了一个比较大的SQL查询,由多个union all组成,结果报警告:
WARNING: SetupTCPInterconnect: too many expected incoming connections(352), Interconnect setup might possibly fail (seg4 slice41 192.10.26.101:6000 pid=72434)
HINT: Try enlarging the gp_interconnect_tcp_listener_backlog GUC value and OS net.core.somaxconn parameter
但是,并不影响执行结果,可以正常获取到结果。
分析
HINT提示很明显了,涉及OS内核参数net.core.somaxconn和数据库参数gp_interconnect_tcp_listener_backlog
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | [gpadmin@mdw2 ~]$ gpconfig -s gp_interconnect_type Values on all segments are consistent GUC : gp_interconnect_type Master value: tcp Segment value: tcp [gpadmin@mdw2 ~]$ gpconfig -s gp_interconnect_tcp_listener_backlog Values on all segments are consistent GUC : gp_interconnect_tcp_listener_backlog Master value: 128 Segment value: 128 [gpadmin@mdw2 ~]$ exit logout You have new mail in /var/spool/mail/root [root@mdw2 ~]# sysctl -a | grep net.core.somaxconn net.core.somaxconn = 128 |
这些参数是因为GP配置了tcp的内部网络连接导致的: