Google Cloud(GCP)香港机房测评(附抢先开通方法)

Google Cloud的香港机房即将上线,目前只能通过命令行的方式去开通。菠萝尝鲜开通了一个微型套餐,以用于测试,暂时不建议用于生产环境。

性能测试

I/O 似乎有点弱啊

网络测试

网络速度差强人意,电信直连,联通和移动大部分节点绕路

开通方法(10月24日update:目前已经可以正常开通)

由于香港机房还没有正式上线,目前开通的方法比较曲折一些

1、首先手动在VPC网络里创建一个asia-east2地区的子网,定义一个内网IP段,名称随意(除default外),我这里取“hknet”。

2、

按照正常方法创建VM实例,配置好以后不要点创建,点击”等效 REST 或命令行” 中的 “命令行”,点击在 Cloud Shell 中运行,会在你的Cloud Shell里粘贴类似下面的代码(不完全一样,请勿直接复制):

gcloud beta compute –project=proj-name instances create boluo 
–zone=asia-east2-a –machine-type=f1-micro –subnet=hknet 
–network-tier=PREMIUM –maintenance-policy=MIGRATE 
–service-account=214293171470-compute@developer.gserviceaccount.com 
–scopes=https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring.write,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/trace.append
 –image=debian-9-stretch-v20181011 –image-project=debian-cloud 
–boot-disk-size=10GB –boot-disk-type=pd-standard 
–boot-disk-device-name=boluo

注意subnet参数,更改为你创建的子网名称。

3、创建完成后该节点是没有防火墙规则的。比如你会无法ping通、无法ssh。需要重新为该网络创建防火墙规则。