Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131
-
Upload
seiji-tsukioka -
Category
Technology
-
view
980 -
download
0
Transcript of Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131
![Page 1: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/1.jpg)
Immutable Infrastructure on Amazon Web Services
infrastructure team s.tsukioka
02/01 2014
14年2月3日月曜日
![Page 2: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/2.jpg)
Today’s Agenda
About me
About Immutable Infrastructure
Demonstration of Amazon Web Services
14年2月3日月曜日
![Page 3: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/3.jpg)
Seiji Tsukioka (I’m not younger) Manager of Infrastructure Teamaratana Inc.
Join a company 2010 November I like play the Guitar and Access_log
Infrastructure engineerone of my favourite AWS is S3 and VPC
Who am I ?
14年2月3日月曜日
![Page 4: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/4.jpg)
14年2月3日月曜日
![Page 5: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/5.jpg)
about aratana Inc.
VISION
14年2月3日月曜日
![Page 6: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/6.jpg)
about aratana Inc.
ネットショップの「今」と「未来」をアツくする。
VISION
宮崎!!社員数120名ほどeコマースに特化してます2020年までに1000人の雇用を宮崎につくります。
14年2月3日月曜日
![Page 7: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/7.jpg)
about CAGOLAB.ネットショップのデザイン・システム構築から 運用・SEO対策までワンストップでサポート。ネットショップ構築に必要な機能をEC-CUBEベースで 最適化されたパッケージ「カゴラボ」
EC-CUBEをベースとして展開 安心!
制作実績数「 国内No1」 800サイトの構築実績
インフラ / システム / デザイン / サポート等をワンストップで提供
14年2月3日月曜日
![Page 8: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/8.jpg)
Do you know
Immutable
infrastructure ?
14年2月3日月曜日
![Page 9: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/9.jpg)
What is the meaning of “Immutable” ?
14年2月3日月曜日
![Page 10: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/10.jpg)
current system version 1
For example
14年2月3日月曜日
![Page 11: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/11.jpg)
I’ll modify to Ver1 Server..
Need to New Feature Ver2
14年2月3日月曜日
![Page 12: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/12.jpg)
It is too BAD....NO GOOD
14年2月3日月曜日
![Page 13: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/13.jpg)
server copy
Stamp pattern
14年2月3日月曜日
![Page 14: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/14.jpg)
Customize
Modify to system
14年2月3日月曜日
![Page 15: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/15.jpg)
Associate Address to Ver2 SERVER
Floating pattern
14年2月3日月曜日
![Page 16: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/16.jpg)
Immutable meaning is
“NEVER CHANGE”
14年2月3日月曜日
![Page 17: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/17.jpg)
Don’t upgradeto Ver1 Server
14年2月3日月曜日
![Page 18: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/18.jpg)
Did you get it?
14年2月3日月曜日
![Page 19: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/19.jpg)
Next Topic
14年2月3日月曜日
![Page 20: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/20.jpg)
WoooooW Heavyyy
14年2月3日月曜日
![Page 21: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/21.jpg)
As is often the case website is slow...
14年2月3日月曜日
![Page 22: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/22.jpg)
Static Files Migration to Other server
I got it
14年2月3日月曜日
![Page 23: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/23.jpg)
But..That's tough, isn't it.
Arrange for Server
Install and configuration
Wide netowork bandwidth
File Sync (copy)
Change to Contents URL
14年2月3日月曜日
![Page 24: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/24.jpg)
Demonstration
14年2月3日月曜日
![Page 25: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/25.jpg)
Server Specification
14年2月3日月曜日
![Page 26: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/26.jpg)
Local
S3
CF
14年2月3日月曜日
![Page 27: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/27.jpg)
Cloud Design Pattern
- Stamp Pattern
- DirectHosting Pattern
- Floating Pattern
14年2月3日月曜日
![Page 28: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/28.jpg)
setup
- apache - mod_ext_filter
- Install s3cmd or AWS CLI
- S3 create bucket
- CloudFront (origin s3)
14年2月3日月曜日
![Page 29: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/29.jpg)
Apache mod_ext_filter■Install
apxs -c mod_ext_filter.c -o mod_ext_filter.so -shared
apxs -i mod_ext_filter.so
■Add to httpd.conf
LoadModule ext_filter_module lib/apache/mod_ext_filter.so
■Add to vhost configuration
ExtFilterDefine cdn mode=output intype=text/html cmd="/bin/sed -f /tmp/cdn.sed"
SetOutputFilter cdn
14年2月3日月曜日
![Page 30: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/30.jpg)
S3cmd■Install
yum -y --enablerepo epel install s3cmd
s3cmd --configure (need access_key,secret_key)
■create bucket
s3cmd mb s3://jaws/
■Files Sync (cron)
s3cmd -c /root/.s3cfg -P sync --delete-removed --add-header=Cache-Control:max-age=60 --exclude '*.php' --exclude '*.csv' /home/hoge/www/html/upload/ s3://jaws/upload/
14年2月3日月曜日
![Page 31: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/31.jpg)
idea ➡ InnovationAmazon Web Service has alot of
14年2月3日月曜日
![Page 32: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/32.jpg)
Signing up
14年2月3日月曜日
![Page 33: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/33.jpg)
On the WEB
14年2月3日月曜日
![Page 34: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/34.jpg)
14年2月3日月曜日
![Page 35: Jaws ug in-miyazaki_immutable_infrastructureonaws_20140131](https://reader033.fdocuments.us/reader033/viewer/2022060118/558b5a1ed8b42a36478b4600/html5/thumbnails/35.jpg)
Thank you :)
14年2月3日月曜日