Slide 1

Slide 1 text

όονॲཧͰhakoΛ࢖͏࿩ @hoshinotsuyoshi / feedforce Inc. 2016/10/12

Slide 2

Slide 2 text

Me • @hoshinotsuyoshi • h,p:/ /hoppie.hatenablog.com/ • • • 2014ʙ feedforce Inc.

Slide 3

Slide 3 text

όονॲཧ ! • cronͩͱ • ߴ͍Մ༻ੑΛಘΔͷ͕೉͍͠ • ϦιʔεʹԠͨ͡εέδϡʔϦϯά͕೉͍͠

Slide 4

Slide 4 text

ECS

Slide 5

Slide 5 text

EC2 Container Service Product Details ❝ You can run anything: applica1ons, batch jobs, or microservices. ❞

Slide 6

Slide 6 text

ECSͰόονॲཧ͢Δʹ͸ 1. TaskDefini,onͷొ࿥ͯ͠ • $ aws ecs register-task-definition 2. TaskΛ࣮ߦ͢Δʂ • $ aws ecs run-task 3. Ҏ্ʂ(جຊతʹ͸)

Slide 7

Slide 7 text

ͦͷଞͷ໰୊ • ΦʔτεέʔϦϯάͤ͞ͳ͖Ό… ! • TaskDefini-on͕ࡍݶͳ͘૿Ճͯ͘͠… ! • σϓϩΠͷͨͼʹTaskDefini-onొ࿥ͯͨ͠ • ొ࿥ࡁΈ͔Ͳ͏͔ͷνΣοΫ͕ͩΔ͍ • …

Slide 8

Slide 8 text

(TaskDefini+on͕ແݶʹ૿͑ͯ͘Πϝʔδ)

Slide 9

Slide 9 text

2016೥9݄

Slide 10

Slide 10 text

?ʮhakoͷoneshot ! ྑͦ͞͏ʯ

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

$ hako oneshot ! ❝ hako oneshot ͸YAML ͷఆٛʹैͬͯ ECS ͷ RunTask API Λ ݺͼग़͢ίϚϯυ ❞ - ECS Λར༻ͨ͠ΦϑϥΠϯδϣϒͷ࣮ߦ؀ڥ - ΫοΫύου։ൃऀϒϩά

Slide 13

Slide 13 text

͜Μͳ͔Μ͡ʹͳͬͨ

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

! ͷத਎

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

! TaskDefini+on͕૿͑ͮΒ͍ " • TaskDefini+onΛॏෳొ࿥͠ͳ͍࢓૊Έ͕͋Δ • (ͨ·ʹొ࿥͞ΕͪΌ͏ύλʔϯ͕͋ΔşŪƄ) • (ιʔεಡΜͰ௚ͨ͠Γɺyamlͷॻ͖ํͰճආ͢Δ)

Slide 22

Slide 22 text

! ࣗಈscale out " • Ϧιʔε͕଍Γͳ͍ͱ͖ͷࣗಈscale out • autoscaling_group_for_oneshot Λࢦఆ͢Ε͹͓̺ • ઃఆྫ) • Ϧιʔε͕଍Γͳ͍৔߹͸desired͕ 1 ૿͑Δ • ͜ͷ 1 ͸ϋʔυίʔυ

Slide 23

Slide 23 text

·ͱΊ • hako oneshot ! Λ࢖͏͜ͱʹΑΓ • ༨෼ͳTaskDefini/onొ࿥͕ݮͬͨ • ࣗಈscale out΋໘౗ݟͯ͘ΕΔ • ECS APIୟࣗ͘લίʔυ͕ݮͬͨ

Slide 24

Slide 24 text

ࢀߟจݙ • AWS _ Amazon EC2 Container Service _ Product Details • h

Slide 25

Slide 25 text

ࢀߟจݙ • ECS Λར༻ͨ͠ΦϑϥΠϯδϣϒͷ࣮ߦ؀ڥ - ΫοΫύου։ ൃऀϒϩά • h(p:/ /techlife.cookpad.com/entry/2016/09/09/235007