中国本土で Alibaba Cloud を検証しました

Satoshi Kojima
VELTRA Engineering
Published in
4 min readMay 29, 2017

はじめまして。VELTRA で中国事業のシステム開発を担当している Kojima です。

今回は、世界最大規模を誇る EC サイト「Alibaba」を支えるクラウド基盤サービス「Alibaba Cloud」の導入・機能・性能についてご紹介します。

導入編

Alibaba Cloud では AWS と同等の機能を備えます。また、Alibaba Cloud は中国本土またはそれ以外のグローバルで展開するためのアカウントが別となっています。

中国本土でサービス展開するためのアカウントの発行には中国携帯 SIM (SMS 認証で利用)と Alipay (電子決済アカウント)が必要となります。

また、ログインには、SMS 認証・ワンタイムパスワード認証・Alibaba Cloud のスマホアプリを利用した QR コード認証があります。QR コード認証が面白いので以下に紹介します。

PC のブラウザ上で、Alibaba Cloud のログイン画面に遷移して QR コードを表示します。

PC のブラウザ上で表示した QR コードを Alibaba Cloud のスマホアプリの認証機能読み込むことができます。この読み込みでログインすることができます。安全ですね。

機能編

ログイン後の管理画面は以下の通りです。

ICP というメニューが右上部にあり、中国特有の機能です。中国でのサイト公開は許認可制で ICP ライセンスの取得が必要となっています。ICP ライセンスにも2種類あり非営利な申請は Alibaba Cloud 上で申請することができます。

機能一覧は、以下の通りです。ロードバランサー、WEB サーバ、DB サーバなど一通りそろっています。

中国本土に幾つかのリージョンを持ち、サーバを構築することができます。中国だけで7つのリージョンがあります。

性能編

せっかくですので、Alibaba Cloud で作成した Elastic Computing Service のインスタンス(素の WEB Server)の性能試験をしてみます。

CPU: 1 Core, Memory: 2 GB (I/O Optimized), Bandwidth: 1Mbps

DISK I/O (hdparam)

/dev/vda1:
Timing buffered disk reads: 162 MB in 3.01 seconds = 53.90 MB/sec

[root@hoge ~]# hdparm -tf /dev/vda1
/dev/vda1:
Timing buffered disk reads: 162 MB in 3.00 seconds = 53.94 MB/sec

DISK I/O (Bonnie++ 1.0.3)

Using uid:0, gid:0.
Writing with putc()…done
Writing intelligently…done
Rewriting…done
Reading with getc()…done
Reading intelligently…done
start ‘em…done…done…done…
Create files in sequential order…done.
Stat files in sequential order…done.
Delete files in sequential order…done.
Create files in random order…done.
Stat files in random order…done.
Delete files in random order…done.
Version 1.03e — — — Sequential Output — — — — Sequential Input- — Random-
-Per Chr- — Block — -Rewrite- -Per Chr- — Block — — Seeks —
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
iZuf6imoq64zt3ut 4G 58416 54 55294 3 31416 2 58769 56 69473 2 2131 2
— — — Sequential Create — — — — — — — Random Create — — — —
-Create — — Read — — -Delete — -Create — — Read — — -Delete —
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
iZuf6imoq64zt3uti2qbl8Z,4G,58416,54,55294,3,31416,2,58769,56,69473,2,2131.2,2,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++

CPU (UnixBench 5.1.3)

System: iZuf6imoq64zt3uti2qbl8Z: GNU/Linux
OS: GNU/Linux — 2.6.32–642.13.1.el6.x86_64 — #1 SMP Wed Jan 11 20:56:24 UTC 2017
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8", collate=”UTF-8")
CPU 0: Intel(R) Xeon(R) CPU E5–2682 v4 @ 2.50GHz (5000.0 bogomips)
x86–64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
12:46:33 up 1:22, 1 user, load average: 0.08, 0.03, 0.01; runlevel 3

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
Benchmark Run: Fri Apr 28 2017 12:46:33–13:14:39
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 29712499.2 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3594.3 MWIPS (9.9 s, 7 samples)
Execl Throughput 4916.6 lps (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 993636.8 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 267374.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3094623.9 KBps (30.0 s, 2 samples)
Pipe Throughput 1735214.0 lps (10.0 s, 7 samples)
Pipe-based Context Switching 352886.5 lps (10.0 s, 7 samples)
Process Creation 15149.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 5512.3 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 742.4 lpm (60.0 s, 2 samples)
System Call Overhead 2438563.0 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 29712499.2 2546.1
Double-Precision Whetstone 55.0 3594.3 653.5
Execl Throughput 43.0 4916.6 1143.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 993636.8 2509.2
File Copy 256 bufsize 500 maxblocks 1655.0 267374.0 1615.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 3094623.9 5335.6
Pipe Throughput 12440.0 1735214.0 1394.9
Pipe-based Context Switching 4000.0 352886.5 882.2
Process Creation 126.0 15149.5 1202.3
Shell Scripts (1 concurrent) 42.4 5512.3 1300.1
Shell Scripts (8 concurrent) 6.0 742.4 1237.3
System Call Overhead 15000.0 2438563.0 1625.7
========
System Benchmarks Index Score 1525.8

だいたい AWS t2.micro 〜 t2.small インスタンスくらいの性能でしょうか。このインスタンスで、日本円でおよそ月額 1,800 円ほどです。

いかがでしたでしたか? Alibaba Cloud について何か発見がありましたら幸いです。

--

--