Immutable Infrastructure on Amazon Web Services infrastructure team s.tsukioka 02/01 2014 14年2月3日月曜日
Jun 25, 2015
Immutable Infrastructure on Amazon Web Services
infrastructure team s.tsukioka
02/01 2014
14年2月3日月曜日
Today’s Agenda
About me
About Immutable Infrastructure
Demonstration of Amazon Web Services
14年2月3日月曜日
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日月曜日
14年2月3日月曜日
about aratana Inc.
VISION
14年2月3日月曜日
about aratana Inc.
ネットショップの「今」と「未来」をアツくする。
VISION
宮崎!!社員数120名ほどeコマースに特化してます2020年までに1000人の雇用を宮崎につくります。
14年2月3日月曜日
about CAGOLAB.ネットショップのデザイン・システム構築から 運用・SEO対策までワンストップでサポート。ネットショップ構築に必要な機能をEC-CUBEベースで 最適化されたパッケージ「カゴラボ」
EC-CUBEをベースとして展開 安心!
制作実績数「 国内No1」 800サイトの構築実績
インフラ / システム / デザイン / サポート等をワンストップで提供
14年2月3日月曜日
Do you know
Immutable
infrastructure ?
14年2月3日月曜日
What is the meaning of “Immutable” ?
14年2月3日月曜日
current system version 1
For example
14年2月3日月曜日
I’ll modify to Ver1 Server..
Need to New Feature Ver2
14年2月3日月曜日
It is too BAD....NO GOOD
14年2月3日月曜日
server copy
Stamp pattern
14年2月3日月曜日
Customize
Modify to system
14年2月3日月曜日
Associate Address to Ver2 SERVER
Floating pattern
14年2月3日月曜日
Immutable meaning is
“NEVER CHANGE”
14年2月3日月曜日
Don’t upgradeto Ver1 Server
14年2月3日月曜日
Did you get it?
14年2月3日月曜日
Next Topic
14年2月3日月曜日
WoooooW Heavyyy
14年2月3日月曜日
As is often the case website is slow...
14年2月3日月曜日
Static Files Migration to Other server
I got it
14年2月3日月曜日
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日月曜日
Demonstration
14年2月3日月曜日
Server Specification
14年2月3日月曜日
Local
S3
CF
14年2月3日月曜日
Cloud Design Pattern
- Stamp Pattern
- DirectHosting Pattern
- Floating Pattern
14年2月3日月曜日
setup
- apache - mod_ext_filter
- Install s3cmd or AWS CLI
- S3 create bucket
- CloudFront (origin s3)
14年2月3日月曜日
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日月曜日
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日月曜日
idea ➡ InnovationAmazon Web Service has alot of
14年2月3日月曜日
Signing up
14年2月3日月曜日
On the WEB
14年2月3日月曜日
14年2月3日月曜日
Thank you :)
14年2月3日月曜日