Godaddy VDS的实际体验,你的主机稳定吗?
|
|
我是Godaddy的VDS的用户(Economy $29.99/mo),但我发现其服务非常的不稳定,向其反应问题,它一直以中国有管制为由推脱,我在linux做了些后台监控的任务对其服务进行监视,即便我有充分的证据,但还是拿Godaddy没有办法。
我把我的方法和经验在此和大家共享一下:(注已用myHost替代了真实的域名)
[root@AIRSURPRISE-LAB zhengsr]# more wgetCheck.sh
#!/bin/sh
for arg in "$@"
do
`wget -a /root/zhengsr/$arg.log -O /root/zhengsr/tmp.html -t 1 -T 30 $arg` &
done
[root@AIRSURPRISE-LAB zhengsr]# crontab -l | tail -n 1
*/2 * * * * /root/zhengsr/wgetCheck.sh www.myHost.com www.refHost.com www.godaddy.com
[root@AIRSURPRISE-LAB zhengsr]# tail -n 15 www.godaddy.com.log
--10:54:03-- http://www.godaddy.com/
=> `/root/zhengsr/tmp.html'
Resolving www.godaddy.com... 97.74.104.201
Connecting to www.godaddy.com|97.74.104.201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 178,081 (174K) [text/html]
0K .......... .......... .......... .......... .......... 28% 48.29 KB/s
50K .......... .......... .......... .......... .......... 57% 133.68 KB/s
100K .......... .......... .......... .......... .......... 86% 85.91 KB/s
150K .......... .......... ... 100% 109.82 KB/s
10:54:06 (78.72 KB/s) - `/root/zhengsr/tmp.html' saved [178081/178081]
[root@AIRSURPRISE-LAB zhengsr]# cat www.myHost.com.log | grep '^Connecting to' | grep 'failed' | wc
61 427 4819
[root@AIRSURPRISE-LAB zhengsr]# cat www.refHost.com.log | grep '^Connecting to' | grep 'failed' | wc
0 0 0
[root@AIRSURPRISE-LAB zhengsr]# cat www.godaddy.com.log | grep '^HTTP request sent' | grep 'Read error' | wc
0 0 0
[root@AIRSURPRISE-LAB zhengsr]# cat www.myHost.com.log | grep '^HTTP request sent' | grep 'Read error' | wc
19 228 1634
[root@AIRSURPRISE-LAB zhengsr]# cat www.refHost.com.log | grep '^HTTP request sent' | grep 'Read error' | wc
1 12 86
[root@AIRSURPRISE-LAB zhengsr]# cat www.godaddy.com.log | grep '^Connecting to' | grep 'failed' | wc
0 0 0
[root@AIRSURPRISE-LAB zhengsr]#
不解释具体命令了,思路是后台任务全天的对某些网站进行访问,然后对日志进行分析,这里展示的只是最简单的分析,但也可以很清楚的看到myHost明显地不如refHost和Godaddy。
我的经验是这种方法非常有效而且直接。
换VDS是必然的了,各位有何好的建议吗? |
|
|
|
|
|
|
|
|
|
|
jeffcui18
发表于 2011-12-2 14:09:29
|
显示全部楼层
godaddy在大陆经常抽的,一方面是由于管制,另一方面godaddy自从能使用支付宝后上面各种大陆人的站点暴增,其后果大家都懂的。大陆人真的一点都不自律。
我建议既然花钱了就买个好点的,比如softlayer,MT,linode之类的。我的网站就是linode东京的,仅供参考www.sinovale.com |
|
|
|
|
|
|
|
|