Move AWS Tokyo Region's instance to AWS Seoul Region (AWS๋์ฟ ๋ฆฌ์ ผ์์ AWS์์ธ ๋ฆฌ์ ผ์ผ๋ก ์ธ์คํด์ค ์ฎ๊ธฐ๊ธฐ)
2016๋
1์ 7์ผ, Amazon์์ AWS Seoul Region(์์ธ ๋ฆฌ์ ผ) ์ค๋ฆฝ์ ๋ฐํํ์์ต๋๋ค.
AWS CLOUD ON-DEMAND SEOUL - KOREA
AWS ์์ธ ๋ฆฌ์ ผ ํํ์ด์ง
Now Open โ AWS Asia Pacific (Seoul) Region
AWS Asia Pacific (Seoul) Region ์ ์ ์คํ!
์์ ๋ฐํ๋ฅผ ๋ฃ๊ณ ๋์, AWS Seoul Region์ Latency์ AWS Tokyo Region์ Latency๋ฅผ ์ธก์ ํด๋ณด์์ต๋๋ค.
์ธก์ ์ Apache ab์ nginx๋ฅผ ์ด์ฉํ์ฌย ๋ค์์ ๋งํฌ๋ฅผ ์ฌ์ฉํ์ฌ ์ธก์ ํ์ต๋๋ค.
AWS Network Latency ์ธก์
http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/cloud/AWS/NetworkLatency
ย # ab -n 10 -c 1 http://**.**.**.**/index.html
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking **.**.**.**ย (be patient).....done
Server Software: ย ย ย ย nginx/1.9.9
Server Hostname: ย ย ย ย **.**.**.**
Server Port: ย ย ย ย ย ย 80
Document Path: ย ย ย ย ย /index.html
Document Length: ย ย ย ย 612 bytes
Concurrency Level: ย ย ย 1
Time taken for tests: ย 0.848 seconds
Complete requests: ย ย ย 10
Failed requests: ย ย ย ย 0
Total transferred: ย ย ย 8440 bytes
HTML transferred: ย ย ย 6120 bytes
Requests per second: ย ย 11.79 [#/sec] (mean)
Time per request: ย ย ย 84.805 [ms] (mean)
Time per request: ย ย ย 84.805 [ms] (mean, across all concurrent requests)
Transfer rate: ย ย ย ย ย 9.72 [Kbytes/sec] received
ย ย ย ย ย ย ย min ย mean[+/-sd] median ย max
Connect: ย ย ย 40 ย 42 ย 1.3 ย ย 42 ย ย ย 45
Processing: ย ย 41 ย 43 ย 1.2 ย ย 43 ย ย ย 45
Waiting: ย ย ย 41 ย 42 ย 1.2 ย ย 42 ย ย ย 45
Total: ย ย ย ย 82 ย 85 ย 1.8 ย ย 84 ย ย ย 88
Percentage of the requests served within a certain time (ms)
ย 100% ย ย 88 (longest request)
ย # ab -n 10 -c 1 http://**.**.**.**/index.html
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking **.**.**.** (be patient).....done
Server Software: ย ย ย ย nginx/1.9.9
Server Hostname: ย ย ย ย **.**.**.**
Server Port: ย ย ย ย ย ย 80
Document Path: ย ย ย ย ย /index.html
Document Length: ย ย ย ย 612 bytes
Concurrency Level: ย ย ย 1
Time taken for tests: ย 0.172 seconds
Complete requests: ย ย ย 10
Failed requests: ย ย ย ย 0
Total transferred: ย ย ย 8440 bytes
HTML transferred: ย ย ย 6120 bytes
Requests per second: ย ย 58.14 [#/sec] (mean)
Time per request: ย ย ย 17.201 [ms] (mean)
Time per request: ย ย ย 17.201 [ms] (mean, across all concurrent requests)
Transfer rate: ย ย ย ย ย 47.92 [Kbytes/sec] received
ย ย ย ย ย ย ย min ย mean[+/-sd] median ย max
Connect: ย ย ย ย 7 ย ย 9 ย 1.3 ย ย ย 9 ย ย ย 11
Processing: ย ย 6 ย ย 8 ย 2.2 ย ย ย 8 ย ย ย 14
Waiting: ย ย ย ย 6 ย ย 8 ย 2.2 ย ย ย 8 ย ย ย 14
Total: ย ย ย ย 14 ย 17 ย 2.4 ย ย 17 ย ย ย 22
Percentage of the requests served within a certain time (ms)
ย 100% ย ย 22 (longest request)
AWS Tokyo Region Avg. Latency
AWS Seoul Region Avg. Latency
AWS Seoul Region ์ Latency์ย AWS Tokyo Region์ Latency๋ฅผ ๋น๊ตํ๋ AWS Seoul Region์ด ํจ์ฌ ๋น ๋ฅด๋ค๋๊ฑธ ์ฒด๊ฐํ์์ต๋๋ค.
์ดํ ๋ค์ด๋ก๋ ์ ์ก๋ ์ธก์ ์ ํด๋ณด์๋ AWS Seoul Region์ด ๋น ๋ฅด๋ค๋ ๊ฒ๋ ํ์ธํ์์ต๋๋ค.
์ธก์ ๊ฒฐ๊ณผ AWS Tokyo์ AWS Seoul๊ฐ์ย ์์ฒญ๋ ์๋์ฐจ์ด๋ฅผ ๊ฒฝํํ์๊ณ , AWS Tokyo Region์ ์ฌ์ฉ๋ฃ๋ณด๋ค AWS Seoul Region์ ์ฌ์ฉ๋ฃ๊ฐ ์กฐ๊ธ ๋ ์ ๋ ดํ๋ค๋ ๊ฑธ ๋ณด๊ณ ๊น์ง ๋๋์ต๋๋ค.
Tokyo ๋ณด๋ค ์ ๊ทผ ์๋๊ฐ ๋น ๋ฅด๋ฉด์, Tokyo๋ณด๋ค ์ ๋ ดํ Seoul์ ์ฌ์ฉํด์ผ๊ฒ ๋ค๋ ๊ฒฐ๋ก ์ ๋ด๋ ธ์ต๋๋ค.
๊ธฐ์กด์ AWS Tokyo Region์์ ์์ฑํ ์ธ์คํด์ค(Instance)๋ฅผ AWS Seoul Region์ผ๋ก ์ฎ๊ธฐ๋ ์์
์ ์งํํ์์ต๋๋ค.
AWS Tokyo Region(๋์ฟ/ๆฑไบฌ ๋ฆฌ์ ผ)์ ์ธ์คํด์ค๋ฅผ AWS Seoul Region(์์ธ ๋ฆฌ์ ผ)์ผ๋ก ์ฎ๊ธฐ๋ ๋ฐฉ๋ฒ
AWS EC2 ์ธ์คํด์ค๋ฅผ ๋ค๋ฅธ ์ง์ญ์ผ๋ก ๋ณต์ฌํ๋ ๋ฐฉ๋ฒ
์์ ๋งํฌ๋ฅผ ์ฐธ์กฐํ์์ต๋๋ค. ์์ ๋งํฌ์ ์๋๋๋ก ๋ฐ๋ผํ๋ ๋ฌธ์ ์์ด Tokyo Region์ Instance๊ฐ ๊ทธ๋๋ก Seoul Region์ Instance๋ก ์ฎ๊ฒจ์ง๊ณ , ์ ์์๋ํจ์ ํ์ธํจ.
1. AWS Tokyo Region EC2 Instances ๋ฉ๋ดย
์ฎ๊ธธ๋ ค๋ ์ธ์คํด์ค์ ์์ฑ ๋ฉ๋ด์์ Create image(EBS AMI)ํจ.
2. AMIs ๋ฉ๋ด - ์๋ก ๋ง๋ AMI ์ด๋ฏธ์ง๋ก Launch Instance ํ๊ณ ๊ธฐ์กด์ ์์ฑํย Instance์ ๊ฐ์ ์ฌ์์ย Instance๋ฅผ ๋ง๋ ๋ค.
3. Instances ๋ฉ๋ด - ์๋ก์ดย Instance๊ฐ Running ๋๋ฉดย Instance์ ์์ฑ ๋ฉ๋ด์์ Stop ํ๋ค.
4. Volumes ๋ฉ๋ด -ย Instance์ ์ฐ๊ฒฐ๋ ๋ณผ๋ฅจ์ ์์ฑ ๋ฉ๋ด์์ Create Snapshot ํ๋ค.
5. Snapshots ๋ฉ๋ด - ์๋ก ๋ง๋ ์ค๋
์ต์ ์์ฑ ๋ฉ๋ด์์ Copy Snapshot ํ๋ค.ย
6. ํ์
์ฐฝ์์ Destination region ํญ๋ชฉ์ Seoulย Region์ ์ ํํ๋ค.
7. AWS Seoul Region EC2Snapshots ๋ฉ๋ด - Tokyo Regionย ์์ ๋ณต์ฌ ๋ ์ค๋
์ท์ ์์ฑ ๋ฉ๋ด์์ Create Volume from Snapshot ํ๋ค.
8. Volumes ๋ฉ๋ด - ์ค๋
์ท์ผ๋ก ๋ง๋ ๋ณผ๋ฅจ์ Volume ID๋ฅผ ํ์ธ ํ๋ค.
9. Instances ๋ฉ๋ด - Tokyo Region Instanceย ์ ๊ฐ์ ์ฌ์์ Instance๋ฅผ Launch Instance๋ก ์์ฑํ๊ณ Instance๊ฐ Running ๋๋ฉด ์์ฑ ๋ฉ๋ด์์ Stop ํ๋ค.
10.ย Volumes ๋ฉ๋ด - Instance์ ์ฐ๊ฒฐ(sda1)๋ ๋ณผ๋ฅจ์ ์์ฑ ๋ฉ๋ด์์ Detach Volume ํ๊ณ Instance์์ ๋ณผ๋ฅจ์ ๋์ด๋ธ๋ค. Tokyo Region์ย ์ค๋
์ท์ผ๋ก ๋ง๋ ๋ณผ๋ฅจ์ ์์ฑ ๋ฉ๋ด์์ Attach Volume ํ๋ค.ย
ํ์
์ฐฝ์์ Instance ํญ๋ชฉ์ ํด๋นย Instance๋ฅผ ์ ํํ๊ณ , Device ํญ๋ชฉ์ ย "/dev/sda1"์ผ๋ก ์์ ํ ๋ค์ Yes, Attach ํด์ ๋ณผ๋ฅจ์ ๋ถ์ธ๋ค.
12. Instance ๋ฉ๋ด - Stop ๋์ด ์๋ย Instance๋ฅผ Start ํ๋ค.ย Instance๊ฐ Running ๋๋ฉดย ์ ์ํด์ ํ์ธํ๋ค.
์ด์ AWS Seoul Region์ด ์๊ฒผ์ผ๋ Seoul Region์ ์ ์ฉํด์ผ๊ฒ ์ต๋๋ค ~_~