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
280
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
The Invisible Side of Design
smashingmag
298
50k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Why Our Code Smells
bkeepers
PRO
334
57k
It's Worth the Effort
3n
183
27k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Embracing the Ebb and Flow
colly
84
4.5k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Site-Speed That Sticks
csswizardry
0
25
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Ruby is Unlike a Banana
tanoku
97
11k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
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ˍཁΛ͓ͪͯ͠·͢ʂ