RAC的心跳线不仅承担了心跳的作用,同时,当出现gc的时候,心跳网络还需要传输数据块。默认Ethernet的MTU是1500,当数据块为8K时,一个数据块需要传送6次才可以传送完毕。
巨帧则取消了MTU 1500的限制,目前可以开启到9000,这样,同样传递一个数据块,由于分块的大小变大,传送的次数会大大降低。
在Linux下开启巨帧很简单。
ifconfig eth2 mtu 9000
可以用ping來测试是否正常工作
[node01]$ ping -c 2 -M do -s 8972 node02-priv
PING node02-priv (10.10.10.2) 1472(1500) bytes of data.
1480 bytes from node02-priv (10.10.10.2): icmp_seq=0 ttl=64 time=0.220 ms
1480 bytes from node02-priv (10.10.10.2): icmp_seq=1 ttl=64 time=0.197 ms
[node01]$ ping -c 2 -M do -s 8973 node02-priv
From node02-priv (10.10.10.1) icmp_seq=0 Frag needed and DF set (mtu = 9000)
From node02-priv (10.10.10.1) icmp_seq=0 Frag needed and DF set (mtu = 9000)
--- node02-priv ping statistics ---
0 packets transmitted, 0 received, +2 errors
不过,不是所有的网卡都可以开启到9000,如果上面ping测试不通的话,可以逐渐的减少。直到找到一个稳定的值。
参考:
https://blogs.oracle.com/XPSONHA/entry/jumbo_frames_for_rac_interconn_1
Recommendation for the Real Application Cluster Interconnect and Jumbo Frames [ID 341788.1]
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/19423/viewspace-1060132/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/19423/viewspace-1060132/