msgbartop
用铅笔写日记,记录那最原始的美丽
msgbarbottom

本站已托管至谷歌云平台

最近忽然对国外的几个互联网巨头的云服务产生了浓厚的兴趣,利用手里的外币卡分别开通了Amazon AWS,Microsoft Azure 以及 Google GCP.

AWS 和 GCP 都声称可以免费试用一年,分别给了一定的试用金额度,以两者中先消耗殆尽的为准。

Azure 的免费试用期只有一个月,后来发现一个月到期后只要升级到 即用即付 订阅,微软还是提供了几个low-level 的云产品的一年试用配额的,也算是有点良心啊~哈哈

不过GCP 和 Azure 一年试用到期后,我是不打算在继续用了,因为微软的太贵,而谷歌的线路炸的太厉害,可能是国内很多人通过“删除结算账号,再添加一张新信用卡”的方式,反复获取那$300一年的免费试用周期吧,给我感觉很不稳定。

倒是 AWS 让我眼前一亮,AWS Lightsail 套餐月付只有$3.5,折合人民币二十几块钱,日本线路ping 值很低,几乎50+- ms,性价比极高。本人吐血推荐购买。

以上是题外话。

本来我的博客是托管在搬瓦工(BWH)上面的,也是同样的问题,线路炸的太频繁,没有让我感觉到它的任何优点。一次偶然的机会让我看到了GCP 提供一个美区(不包括北弗吉尼亚地区)的 f1-micro 实例供用户永久免费使用。具体配置如下:

每月 1 个 f1-micro 实例(仅限美国区域 - 不包括北弗吉尼亚地区)

每月 30 GB HDD,每月 5 GB 快照

每月 1 GB 网络出站流量 - 从北美到所有区域目的地(不包括中国和澳大利亚)

参见: Google Cloud Platform 免费方案

这让我眼前一亮,我现在这个bwh服务器年付$39.99,说实话用处也不大,速度嘛也没啥优势,况且我现在也套了cf 的 cdn,感觉没啥区别了。

留着它用处确实没啥,索性把网站搬到GCP 美区实例上去,把bwh 给退了。能省则省嘛,哈哈。

说干就干,找个空闲的时候,我就把数据,配置备份,然后在新实例上部署环境,确认两边ok后,把数据导入了进去。由于套了cf 的cdn,登陆cf 后台,改了一下DNS相关记录,就坐等生效了。

搬完之后访问了一下,速度还蛮OK的。

附延迟测试数据:

on GCP via Cloudflare
MacBook-Pro-3:Documents toplist$ ping xiazhengxin.name
PING xiazhengxin.name (104.27.176.20): 56 data bytes
64 bytes from 104.27.176.20: icmp_seq=0 ttl=54 time=179.096 ms
64 bytes from 104.27.176.20: icmp_seq=1 ttl=54 time=165.458 ms
64 bytes from 104.27.176.20: icmp_seq=2 ttl=54 time=221.086 ms
64 bytes from 104.27.176.20: icmp_seq=3 ttl=54 time=244.089 ms
64 bytes from 104.27.176.20: icmp_seq=4 ttl=54 time=266.278 ms
64 bytes from 104.27.176.20: icmp_seq=5 ttl=54 time=185.729 ms
64 bytes from 104.27.176.20: icmp_seq=6 ttl=54 time=208.304 ms
64 bytes from 104.27.176.20: icmp_seq=7 ttl=54 time=232.247 ms
64 bytes from 104.27.176.20: icmp_seq=8 ttl=54 time=254.497 ms
64 bytes from 104.27.176.20: icmp_seq=9 ttl=54 time=176.149 ms
64 bytes from 104.27.176.20: icmp_seq=10 ttl=54 time=198.623 ms
64 bytes from 104.27.176.20: icmp_seq=11 ttl=54 time=222.786 ms
64 bytes from 104.27.176.20: icmp_seq=12 ttl=54 time=244.178 ms
64 bytes from 104.27.176.20: icmp_seq=13 ttl=54 time=251.045 ms
64 bytes from 104.27.176.20: icmp_seq=14 ttl=54 time=188.904 ms
^C
--- xiazhengxin.name ping statistics ---
15 packets transmitted, 15 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 165.458/215.898/266.278/31.276 ms

on BWH
MacBook-Pro-3:Documents toplist$ ping bwh.xzx.im
PING bwh.xzx.im (104.153.103.172): 56 data bytes
64 bytes from 104.153.103.172: icmp_seq=0 ttl=50 time=141.367 ms
64 bytes from 104.153.103.172: icmp_seq=1 ttl=50 time=142.667 ms
64 bytes from 104.153.103.172: icmp_seq=2 ttl=50 time=145.147 ms
64 bytes from 104.153.103.172: icmp_seq=3 ttl=50 time=142.224 ms
64 bytes from 104.153.103.172: icmp_seq=4 ttl=50 time=188.251 ms
64 bytes from 104.153.103.172: icmp_seq=5 ttl=50 time=142.178 ms
64 bytes from 104.153.103.172: icmp_seq=6 ttl=50 time=234.048 ms
64 bytes from 104.153.103.172: icmp_seq=7 ttl=50 time=252.443 ms
64 bytes from 104.153.103.172: icmp_seq=8 ttl=50 time=170.327 ms
64 bytes from 104.153.103.172: icmp_seq=9 ttl=50 time=193.155 ms
64 bytes from 104.153.103.172: icmp_seq=10 ttl=50 time=217.860 ms
64 bytes from 104.153.103.172: icmp_seq=11 ttl=50 time=240.174 ms
64 bytes from 104.153.103.172: icmp_seq=12 ttl=50 time=160.681 ms
64 bytes from 104.153.103.172: icmp_seq=13 ttl=50 time=259.157 ms
64 bytes from 104.153.103.172: icmp_seq=14 ttl=50 time=271.898 ms
64 bytes from 104.153.103.172: icmp_seq=15 ttl=50 time=228.873 ms
^C
--- bwh.xzx.im ping statistics ---
16 packets transmitted, 16 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 141.367/195.653/271.898/46.145 ms

on GCP
MacBook-Pro-3:Documents toplist$ ping gcp.xzx.im
PING gcp.xzx.im (35.230.16.233): 56 data bytes
64 bytes from 35.230.16.233: icmp_seq=0 ttl=50 time=204.657 ms
64 bytes from 35.230.16.233: icmp_seq=1 ttl=50 time=226.352 ms
64 bytes from 35.230.16.233: icmp_seq=2 ttl=50 time=248.862 ms
64 bytes from 35.230.16.233: icmp_seq=3 ttl=50 time=169.600 ms
64 bytes from 35.230.16.233: icmp_seq=4 ttl=50 time=191.350 ms
64 bytes from 35.230.16.233: icmp_seq=5 ttl=50 time=219.921 ms
64 bytes from 35.230.16.233: icmp_seq=6 ttl=50 time=237.154 ms
64 bytes from 35.230.16.233: icmp_seq=7 ttl=50 time=261.225 ms
64 bytes from 35.230.16.233: icmp_seq=8 ttl=50 time=182.807 ms
64 bytes from 35.230.16.233: icmp_seq=9 ttl=50 time=203.962 ms
64 bytes from 35.230.16.233: icmp_seq=10 ttl=50 time=227.414 ms
64 bytes from 35.230.16.233: icmp_seq=11 ttl=50 time=250.583 ms
64 bytes from 35.230.16.233: icmp_seq=12 ttl=50 time=172.640 ms
64 bytes from 35.230.16.233: icmp_seq=13 ttl=50 time=194.657 ms
64 bytes from 35.230.16.233: icmp_seq=14 ttl=50 time=214.056 ms
64 bytes from 35.230.16.233: icmp_seq=15 ttl=50 time=230.942 ms
^C
--- gcp.xzx.im ping statistics ---
16 packets transmitted, 16 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 169.600/214.761/261.225/27.036 ms