Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
ΫοΫύουͷ σϓϩΠͱ Φʔτεέʔϧ ΫοΫύουגࣜձࣾాҰੜ +"84%":4
Slide 2
Slide 2 text
KBXTEBZTJOGSB
Slide 3
Slide 3 text
ాҰੜ ͳΔͨ ͍͍ͬͤ !NJSBLVJ ΫοΫύουגࣜձࣾ ΠϯϑϥετϥΫνϟʔ෦
Slide 4
Slide 4 text
ࠓͷ ΫοΫύουʹ͍ͭͯ ϓϩϏδϣχϯάʢαʔϏεσΟεΧόϦʣ ΞϓϦέʔγϣϯͷσϓϩΠ Φʔτεέʔϧ !
Slide 5
Slide 5 text
ΫοΫύουʹ͍ͭͯ
Slide 6
Slide 6 text
'VMM"84 20113݄ ౦ژϦʔδϣϯΦʔϓϯ 20118݄ DC͔ΒAWSҠߦ ✈
Slide 7
Slide 7 text
.6#NP .14VTFST .DPPLJOHSFDJQFT ˞݄ݱࡏ !" # #
Slide 8
Slide 8 text
&$JOTUBODFT &-#T 4#VDLFUT 3PVUF3FDPSET
Slide 9
Slide 9 text
3FETIJGUGPS#* UBCFNJSVDPN 4/4GPS.PCJMF1VTI/PUJpDBUJPO
Slide 10
Slide 10 text
0QT %FWFMPQFST %FQMPZTEBZ ⚒ #
Slide 11
Slide 11 text
ΞϓϦέʔγϣϯίʔυͷσϓϩΠ
Slide 12
Slide 12 text
$ QVMMSFRVFTU ()& # EFWFMPQFS
Slide 13
Slide 13 text
$ QVMMSFRVFTU NFOUJPO ()& # EFWFMPQFS # SFWJFXFS
Slide 14
Slide 14 text
$ -(5. QVMMSFRVFTU NFOUJPO ()& # EFWFMPQFS # SFWJFXFS
Slide 15
Slide 15 text
$ -(5. QVMMSFRVFTU NFOUJPO ()& # EFWFMPQFS # SFWJFXFS NFSHF
Slide 16
Slide 16 text
$ -(5. QVMMSFRVFTU NFOUJPO ()& # EFWFMPQFS # SFWJFXFS $* +FOLJOT NFSHF
Slide 17
Slide 17 text
$ TVDDFTT -(5. QVMMSFRVFTU NFOUJPO ()& # EFWFMPQFS # SFWJFXFS $* +FOLJOT NFSHF
Slide 18
Slide 18 text
$ TVDDFTT -(5. QVMMSFRVFTU NFOUJPO EFQMPZ &$ ()& # EFWFMPQFS # SFWJFXFS $* +FOLJOT NFSHF
Slide 19
Slide 19 text
σϓϩΠϧʔϧʢҰ෦ʣ • CI Λύεͨ͠ϦϏδϣϯͷΈσϓϩΠͯ͠Α͍ • σϓϩΠίʔυΛ push ͨ͠։ൃऀ͕ࣗߦ͏ • Ӧۀ࣌ؒͷΈσϓϩΠՄೳ • σϓϩΠޙ։ൃऀ͕ಈ࡞֬ೝ͠ɺ ෆ۩߹Λݟ͚ͭͨΒ͙͢ʹϩʔϧόοΫ͢Δ
Slide 20
Slide 20 text
σϓϩΠޙʹΤϥʔϨεϙϯελΠϜྼԽ͕ແ͍͜ͱΛ֬ೝ ϦΞϧλΠϜϞχλϦϯάπʔϧlJNPOz
Slide 21
Slide 21 text
ΫοΫύουͷ αʔόϓϩϏδϣχϯά
Slide 22
Slide 22 text
αʔϏεσΟεΧόϦ αʔό͕ಈతʹ૿͑ͨΓݮͬͨΓ͢Δঢ়گͰ ੩తͳ”αʔόཧா”ӡ༻Ͱ͖ͳ͍ ! αʔό͕Ճ͞ΕͨΒݕ͢ΔΈ͕ඞཁ →Serf, Zookeeper %
Slide 23
Slide 23 text
&$λάʹΑΔσΟεΧόϦ Name λά Role λά Status λά &
Slide 24
Slide 24 text
&$ͷλάػೳʹ͍ͭͯ key: value ͷϖΞ
Slide 25
Slide 25 text
ΫοΫύουͰͷ&$λά ͦͷαʔόͷଐੑঢ়ଶΛهड़ ! ΠϯελϯεࣗࣗɺଞΠϯελϯεͷλάΛݟͯ ࣗڠௐతʹಈ͘
Slide 26
Slide 26 text
/BNFλά ͦͷΠϯελϯεͷϗετ໊ DNSαʔό͕ࣗಈݕ͠ɺAϨίʔυΛՃ ! ྫ: Name: app-001 &
Slide 27
Slide 27 text
Slide 28
Slide 28 text
' /BNFEC
Slide 29
Slide 29 text
' /BNFEC ' /BNFEC
Slide 30
Slide 30 text
' /BNFEC ' /BNFEC 1PXFS%/4
Slide 31
Slide 31 text
' /BNFEC ' /BNFEC 1PXFS%/4 ⟲ (
Slide 32
Slide 32 text
' /BNFEC ' /BNFEC 1PXFS%/4 ⟲ ( EC" EC" %/4αʔό͕ఆظతʹશ/BNFλάΛࠪ͠ɺ %/4ϨίʔυΛߋ৽
Slide 33
Slide 33 text
3PMFλά ΠϯελϯεͷׂΛهड़ ! ྫ: Role: app &
Slide 34
Slide 34 text
QVQQFU NBTUFS )
Slide 35
Slide 35 text
' 3PMFBQQ QVQQFU NBTUFS )
Slide 36
Slide 36 text
' 3PMFBQQ BQQMZlBQQz QVQQFU NBTUFS )
Slide 37
Slide 37 text
' 3PMFBQQ ' 3PMFEC BQQMZlBQQz QVQQFU NBTUFS )
Slide 38
Slide 38 text
' 3PMFBQQ ' 3PMFEC BQQMZlBQQz QVQQFU NBTUFS BQQMZlECz )
Slide 39
Slide 39 text
' 3PMFBQQ ' 3PMFEC BQQMZlBQQz QVQQFU NBTUFS BQQMZlECz QVQQFUNBTUFSద༻ઌͷ3PMFλάΛݟͯ ద༻͢ΔΫϥεΛࣗಈͰܾఆ )
Slide 40
Slide 40 text
4UBUVTλά ͦͷΠϯελϯε͕όϥϯαʔʹ Ճ͍͍ͯ͠ͷ͔Ͳ͏͔Λఆٛ ! ྫ: Status: working &
Slide 41
Slide 41 text
3PMFBQQ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ
Slide 42
Slide 42 text
3PMFBQQ ' 4UBUVTXPSLJOH * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ
Slide 43
Slide 43 text
3PMFBQQ ' 4UBUVTXPSLJOH ⟲ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ
Slide 44
Slide 44 text
3PMFBQQ ' 4UBUVTXPSLJOH ⟲ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ
Slide 45
Slide 45 text
3PMFBQQ ' 4UBUVTXPSLJOH ⟲ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ ' 4UBUVTXPSLJOH
Slide 46
Slide 46 text
3PMFBQQ ' 4UBUVTXPSLJOH ⟲ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ ' 4UBUVTXPSLJOH
Slide 47
Slide 47 text
3PMFBQQ ' 4UBUVTXPSLJOH ⟲ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ ' 4UBUVTXPSLJOH
Slide 48
Slide 48 text
3PMFBQQ ' 4UBUVTXPSLJOH ⟲ * IBQSPYZDGH BQQIBQSPYZ 3PMFBQQ ' 4UBUVTXPSLJOH XPSLJOHঢ়ଶͷΠϯελϯεΛࣗಈͰαʔϏεΠϯ
Slide 49
Slide 49 text
' ͳͥλάͰશ෦Δͷ͔ Zookeeper, Serf ͷಛผͳϛυϧΣΞΛඞཁͱͤͣʹ αʔϏεσΟεΧόϦ͕Մೳ ! ඇৗʹγϯϓϧ͔ͭϓϩάϥϚϒϧ
Slide 50
Slide 50 text
λάͷϋϚϦͲ͜Ζ DescribeTags ͷ API Limit 1 Ϧιʔεʹλά10ݸ·Ͱ % -JNJU DBDIF (
Slide 51
Slide 51 text
πʔϧ λάϑϨϯυϦʔͳཧπʔϧ͕ඞཁ ElasticFox-ec2tag
Slide 52
Slide 52 text
Φʔτεέʔϧ
Slide 53
Slide 53 text
τϥϑΟοΫ &$Πϯελϯε ࣌ؒ τϥϑΟοΫͷมԽʹԠͯ͡ΠϯελϯεΛ૿ݮ
Slide 54
Slide 54 text
ͳͥΦʔτεέʔϧͳͷ͔ '
Slide 55
Slide 55 text
*OTUBODFIPVS EC2ͷ࠷খ՝ۚ୯Ґ ىಈதͷΠϯελϯε x ىಈ࣌ؒʢ1࣌ؒ୯Ґʣ ΦϯσϚϯυɺ౦ژϦʔδϣϯ݄ݱࡏIUUQBXTBNB[PODPNKQFDQSJDJOH
Slide 56
Slide 56 text
&$Πϯελϯε I Πϯελϯε࣌ ( JOTUBODFIPVS Φʔτεέʔϧ ͳ͠ Φʔτεέʔϧ ͋Γ
Slide 57
Slide 57 text
"NB[PO"VUP4DBMJOH
Slide 58
Slide 58 text
$MPVE8BUDI "VUP 4DBMJOH "VUP4DBMJOH(SPVQ ".*
Slide 59
Slide 59 text
ͨͱ͑ "NB[PO"VUP4DBMJOH ΛΊΔ
Slide 60
Slide 60 text
ͳͥ"NB[PO"VUP4DBMJOHͰͳ͍ͷ͔ CloudWatch 1ͷน Graceful Terminate ELB Ͱͳ͘ haproxy Λ͍͍ͨ σϓϩΠͱͷഉଞ੍ޚΛεϜʔζʹߦ͏ͨΊ
Slide 61
Slide 61 text
$MPVE8BUDIͷੑೳͷෆຬ ͷนɹϝτϦΫε͕औಘͰ͖Δͷ࠷Ͱ1ޙ +
Slide 62
Slide 62 text
(SBDFGVM5FSNJOBUF desired_capacity ͕ݮΔͱ͖ɺ Πϯελϯεແ༻ͰTerminate ͞Εͯ͠·͏ ҆શͳαʔϏεΞτΛߦ͏ʹ͕ඞཁ
Slide 63
Slide 63 text
*OUFSOBM&-#Ͱͳ͘IBQSPYZΛ͍͍ͨ ELB ͷ IP ΞυϨεͷಈతͳมԽʹ ϛυϧΣΞ͕ରԠ͖͠Εͳ͍ ! ϒϥοΫϘοΫε͕ߴ͘ɺ͕Ѳͮ͠Β͍ ˞&-#ͳ͠Ͱ"NB[PO"VUP4DBMJOH͑·͢
Slide 64
Slide 64 text
"NB[PO"VUP4DBMJOH WT EFQMPZTEBZ
Slide 65
Slide 65 text
W W W W #
Slide 66
Slide 66 text
W W W W W #
Slide 67
Slide 67 text
W W W W W #
Slide 68
Slide 68 text
W W W W W W W W #
Slide 69
Slide 69 text
W W W W W W W W W W W #
Slide 70
Slide 70 text
W W W W W W W W W ݹ͍όʔδϣϯͷΠϯελϯε͕࡞ΒΕͯ͠·͏
Slide 71
Slide 71 text
"NB[PO"VUP4DBMJOHͰഉଞ੍ޚ σϓϩΠத AutoScaling ΛࢭΊɺ AutoScaling தσϓϩΠΛېࢭ͍ͨ͠ ! AutoScaling ͕ΠϯελϯεΛ૿͢ͱ͖ɾݮΒ͢ͱ͖ʹ ॲཧΛׂΓ͜·ͤΔඞཁ͕͋Δ →ࠔ
Slide 72
Slide 72 text
CloudWatch 1ͷน Graceful Terminate ELB Ͱͳ͘ haproxy Λ͍͍ͨ σϓϩΠͱͷഉଞ੍ޚΛεϜʔζʹߦ͍͍ͨ ࣗͰશ෦ॻ͍ͯ͋·ΓखؒมΘΒͳͦ͏ "NB[PO"VUP4DBMJOHͰղܾෆՄೳͰͳ͍͚Ͳɺ ଟ͘ͷίʔυΛॻ͖ɺΧελϚΠζ͢Δඞཁ͕͋Δ + +
Slide 73
Slide 73 text
$PPLQBE"VUP4DBMJOHͷ࣮ ,
Slide 74
Slide 74 text
JNPO "4 # W W EFWFMPQFS W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 75
Slide 75 text
JNPO "4 # W W EFWFMPQFS W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 76
Slide 76 text
W W JNPO "4 # W W EFWFMPQFS W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 77
Slide 77 text
W W JNPO "4 # W W EFWFMPQFS W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 78
Slide 78 text
W W JNPO "4 # W W EFWFMPQFS W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 79
Slide 79 text
W W JNPO "4 # W W EFWFMPQFS W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 80
Slide 80 text
W W JNPO "4 # W W EFWFMPQFS W W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 81
Slide 81 text
W W JNPO "4 # W W EFWFMPQFS W W W W W W W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 82
Slide 82 text
W W JNPO "4 # W W EFWFMPQFS W W W W W W SQT '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH '4UBUVTXPSLJOH
Slide 83
Slide 83 text
Φʔτεέʔϧͷ͋ΔΒ͠ ✈
Slide 84
Slide 84 text
ͱ͋ΔΠϯελϯεͷ Φʔτεέʔϧ
Slide 85
Slide 85 text
ΦʔτεέʔϧʹΑΔσϓϩΠϩοΫத σϓϩΠத
Slide 86
Slide 86 text
( ( ΦʔτεέʔϧʹΑΔσϓϩΠϩοΫத σϓϩΠத
Slide 87
Slide 87 text
Φʔτεέʔϧத σϓϩΠத
Slide 88
Slide 88 text
No content
Slide 89
Slide 89 text
No content
Slide 90
Slide 90 text
No content
Slide 91
Slide 91 text
- Ҏ্ӡ༻Ͱ͖ͯΔ
Slide 92
Slide 92 text
ͷӡ༻࣮Λ௨ͯ͠ ۤ࿑ͨ͠ɺɺؾ͍ͮͨ͜ͱ
Slide 93
Slide 93 text
ϩοΫ࣌ؒɾճΛ࠷খʹ͢Δ σϓϩΠΛϩοΫʹՁΛಧ͚ΔνϟϯεΛݮΒ͢ .
Slide 94
Slide 94 text
Slide 95
Slide 95 text
ۀ࣌ؒ σϓϩΠՄೳ࣌ؒଳ
Slide 96
Slide 96 text
ۀ࣌ؒ σϓϩΠՄೳ࣌ؒଳ αʔϏε"ϩοΫճ αʔϏε#ϩοΫճ
Slide 97
Slide 97 text
Ұʹ૿ݮ͢ΔΛௐ͢Δ͜ͱͰ ۀ࣌ؒதͷσϓϩΠϩοΫճΛ࠷খݶʹ ۀ࣌ؒ σϓϩΠՄೳ࣌ؒଳ αʔϏε"ϩοΫճ αʔϏε#ϩοΫճ
Slide 98
Slide 98 text
Ұʹ૿ݮ͢ΔΛௐ͢Δ͜ͱͰ ۀ࣌ؒதͷσϓϩΠϩοΫճΛ࠷খݶʹ ۀ࣌ؒ σϓϩΠՄೳ࣌ؒଳ αʔϏε"ϩοΫճ αʔϏε#ϩοΫճ ۀ࣌ؒ֎ͷͨΊɺ ݮΒ͢ͱ͖খࠁΈʹ
Slide 99
Slide 99 text
ςετΛॻ͘ ΦʔτεέʔϧαʔόΛམͱ͢ϓϩάϥϜ /
Slide 100
Slide 100 text
ఆظతʹઃఆΛݟ͢ ์͓͍ͬͯͯεέʔϧ͢ΔΑ͏ʹݟ͑Δ͕… ! ΞϓϦαʔόͷ૿ˠόοΫΤϯυͷίωΫγϣϯ૿ ΞϓϦέʔγϣϯͷύϑΥʔϚϯεৗʹมԽ 0
Slide 101
Slide 101 text
TUBUJDOPEFTEZOBNJDOPEFTߏ ৗʹཱͪଓ͚ͯΔΠϯελϯε͕͍ͨ΄͏͕ ͳΜ͔ͩΜͩͰศར TUBUJD EZOBNJD
Slide 102
Slide 102 text
No content
Slide 103
Slide 103 text
TUBUJDOPEFT EZOBNJDOPEFT Φʔτεέʔϧର֎ ݻఆ TIVUEPXO͞Εͳ͍ Φʔτεέʔϧର Մม CBMBODFS
Slide 104
Slide 104 text
αʔό໊Ͳ͏͠Α͏ dynamic nodes Ͱ͋Ζ͏ͱɺ ݁ہ hostname ͋ͬͨ΄͏͕ཧ͍͢͠ ! 10.0.123.45 ͩͬͨΒ app-10-0-123-45 ͱ͍͏ Name λά͕ͭ͘Α͏ʹ͍ͯ͠Δ &
Slide 105
Slide 105 text
Φʔτεέʔϧͷ෭࢈ ΦʔτεέʔϧΛΉͱɺ Immutable ͳ Golden Image ͕࡞ΕΔ ! ͍ͭͰҰൃͰ࠷৽ͷαʔό্ཱ͕ͪ͛ΒΕΔ͜ͱ͕ อূ͞ΕΔ +
Slide 106
Slide 106 text
·ͱΊ
Slide 107
Slide 107 text
EFQMPZTEBZWT "VUP4DBMJOH 10 deploys/day ͳڥͰΦʔτεέʔϧՄೳ ίετͱ։ൃͷτϨʔυΦϑΛߟྀͨ͠νϡʔχϯά
Slide 108
Slide 108 text
"VUP4DBMJOHBT *NNVUBCMF*OGSBTUSVDUVSF Immutable Infrastructure ະདྷͷ͡Όͳ͘ɺ ΫοΫύουͰΦʔτεέʔϧʹΑͬͯ͢Ͱʹ ݱ࣮ʹͳͬͯΔ
Slide 109
Slide 109 text
2" '
Slide 110
Slide 110 text
DSFEJUT http://aws.amazon.com/jp/architecture/icons/ http://www.entypo.com/ http://fortawesome.github.io/Font-Awesome/ http://www.flickr.com/photos/sora_h/8916379094/