Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SpeeeKaigi
Search
morioka shuhei
August 02, 2016
1
1.3k
SpeeeKaigi
morioka shuhei
August 02, 2016
Tweet
Share
More Decks by morioka shuhei
See All by morioka shuhei
20191103_小山高専_卒業生講話
selmertsx
1
210
20190306_serverless_meetup_tokyo_11
selmertsx
5
1.6k
aws_reinvent_recap
selmertsx
2
270
aws_reinvent_recap_chaos_engineering_to_serverless
selmertsx
1
1.2k
2018_03_speeekaigi
selmertsx
1
370
sam_on_aws_2018_startup_days
selmertsx
1
300
20171019_aws_startup_tech
selmertsx
1
6.8k
rails_rdm_revieee
selmertsx
0
1.2k
2017_jaws_ug_night_shuhei
selmertsx
3
4.4k
Featured
See All Featured
Designing for Performance
lara
604
68k
Producing Creativity
orderedlist
PRO
341
39k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
The Cult of Friendly URLs
andyhume
78
6k
Fireside Chat
paigeccino
32
3k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
KATA
mclloyd
29
13k
Transcript
3VCPUZͰDIBUPQTΛ ͪΌΜͱΔͨΊʹ HFNΛ࡞ͬͨ ԬपฏˏTFMNFSUTY
ࣗݾհ ! Ԭपฏࡀ!TFMNFSUTY ! ιγϟήձࣾ ! 4QFFFೖࣾ ! ψϦΧΤͬͯαʔϏεͷ αʔόʔαΠυΤϯδχΞ
ψϦΧΤ!4QFFF ֎นృۀऀͷհαʔϏε
ࠓͷ͓ͷ֓ཁ 3VCPUZͰEFQMPZ 3VCPUZͰϢʔβʔͷೝՄೝূ ͕Ͱ͖ΔHFNΛ࡞ͬͨ
ҙ ࠓͷ͓ɺ $IBUPQT 3VCPUZ "HJMFΛ ͍ͬͯΔલఏͰ͓͠·͢ʂ
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
ψϦΧΤͷϦϦʔεϑϩʔ Staging 2 w ੍࡞ͨ͠ػೳʹؔͯ͠ɺ10ʹݟͯΒ͏ w 10͔Β0,͕ग़ͨΒɺϦϦʔεͪʹ Staging w ϦϦʔεલʹ࠷ऴ֬ೝΛߦ͏ Production w ຊ൪ʹө͢Δ
10ϨϏϡʔͷ ҉తͳ खॱ ! पΓ͕TUBHJOHڥΛ͍ͬͯΔ͔֬ೝ ! 4UBHJOHʹEFQMPZ͢Δ ! 10ʹϨϏϡʔΛ͓ئ͍͢Δ ! ϨϏϡʔ͕ऴΘͬͨΒɺνʔϜʹใࠂ͢Δ
None
ຊ൪ͷөʜ Ұ෦ΤϯδχΞͷΈ͕EFQMPZͰ͖Δঢ়ଶ
ແବʹͭΒ͍
3VCPUZͰ ղܾ͠Α͏ʂ
実現したい状態 ! 10͕ࣗͰউखʹ֬ೝڥͰ %FQMPZͰ͖Δ ! νʔϜϝϯόʔΈΜͳ͕ ར༻ঢ়گΛ֬ೝͰ͖Δ ! ͱ͍͑ɺΫϦςΟΧϧͳλεΫ ࣮ߦͰ͖ΔਓΛ੍ݶͰ͖Δ
必要な機能 ! 3VCPUZܦ༝ͰDBQJTUSBOPΛͬͯ EFQMPZͰ͖Δػೳ ! 3VCPUZͷλεΫʹؔͯ͠ɺ࣮ߦͰ͖Δ ϢʔβʔΛೝՄೝূͰ͖Δػೳ ্ه̎ͭͷػೳʹؔͯ͠ (FNΛ࡞ͬͨΛ͠·͢
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
slack 踏み台 Staging2 VPC AWS 踏み台 Staging VPC AWS 踏み台
Production VPC AWS
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
SVCPUZ-capistrano 3VCPUZ͔Β$BQJTUSBOPͰ%FQMPZͰ͖ΔHFN
͍ํ %&1-0:@3&104*503:@1"5) EFQMPZ͢Δ3FQPTJUPSZ͕ஔ͍ͯ͋ΔQBUI %&'"6-5@#3"/$) EFQMPZ͢ΔCSBODIͷσϑΥϧτ !CPU໊EFQMPZEFQMPZઌCSBODI໊ ίϚϯυ ಋೖઃఆ
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ CVOEMFFYFDͨ͠ڥԼͰ ผσΟϨΫτϦʹҠಈͯ͠CVOEMFFYFD͢Δͱɺ ݺͼग़͠ݩͷCVOEMFSͷڥมΛࢀরͪ͠Ό͏ TIBSFE@IFMQFSSCͷTFU@CVOEMF@WBSJBCMFT
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ #VOEMFSXJUI@DMFBO@FOW͕͑ͦ͏ ެࣜυΩϡϝϯτΛಡΜͰΈͨ
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ Ұճڥมഁغͨ͋͠ͱɺ࠶ೖΕͳ͓ͯ͠Δ ͔ΒɺͲ͏Βେৎͦ͏ ৭ʑ ࣗͷӳޠྗͱ͔ ෆ҆ͳͷͰ࣮ಡΜͩ
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ ͜Μͳײ͡Ͱ࣮
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
SVCPUZBVUIPSJ[BUJPO #05ͷ࣮ߦݖݶΛઃఆͰ͖ΔHFN
͍ํ 08/&3@/".& CPUͷΦʔφʔͷ໊લΛొ͢Δ ͜͜Ͱઃఆͨ͠ϢʔβʔͷΈɺೝՄͰ͖Δ ಋೖઃఆ ίϚϯυ !CPU໊BVUIPSJ[FϢʔβʔ໊
ٕज़తʹͪΐͬͱࠔͬͨϙΠϯτ 3VCPUZͷίʔυಡΜͰɺ ݁ߏ্ॻ͖͠·ͨ͠ SVCPUZBDUJPOSCͷDBMMΛ্ॻ͖
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
3VCPUZΛಋೖͯ͠Έͯ ! 10͕ࣗͰ%FQMPZͯ͘͠ΕΔΑ͏ʹͳͬͨ ! ݖݶແ͍ਓ%FQMPZͰ͖ͳ͍ͷͰ҆৺
ࠓճ࡞ͨ͠ͷ ! 3VCPUZೝূ༻(FN IUUQTHJUIVCDPNTFMNFSUTYSVCPUZBVUIPSJ[BUJPO ! 3VCPUZ%FQMPZ༻(FN IUUQTHJUIVCDPNTFMNFSUTYSVCPUZDBQJTUSBOP 13ˍཁΛ͓ͪͯ͠·͢ʂ