Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主机连通性检查 ping 超时控制 #11

Open
wangsu728 opened this issue Dec 12, 2016 · 1 comment
Open

主机连通性检查 ping 超时控制 #11

wangsu728 opened this issue Dec 12, 2016 · 1 comment

Comments

@wangsu728
Copy link

实际测试发现会存在部分机器 ping 正常但是通过 cloudcli ping 检查失败的情况,建议增加超时控制

# cloudcli ping -n elm-lang
elm-lang.cn                   --------------------[NG]

# ping -c4 elm-lang.cn
PING elm-lang.cn (123.57.150.34) 56(84) bytes of data.
64 bytes from 123.57.150.34: icmp_seq=1 ttl=51 time=41.5 ms
64 bytes from 123.57.150.34: icmp_seq=2 ttl=51 time=41.7 ms
64 bytes from 123.57.150.34: icmp_seq=3 ttl=51 time=41.4 ms
64 bytes from 123.57.150.34: icmp_seq=4 ttl=51 time=41.5 ms

--- elm-lang.cn ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3047ms
rtt min/avg/max/mdev = 41.479/41.583/41.733/0.096 ms
@linuxr
Copy link
Contributor

linuxr commented Dec 27, 2016

这种情况一般是权限的问题。可以把log文件中的内容也贴出来
执行 cloudcli ping 之前 如下设置试试看:

sysctl -w net.ipv4.ping_group_range="0 65535"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants