Upgrade to Pro — share decks privately, control downloads, hide ads and more …

re:Invent2016で発表された新サービス「AWS Batch」を使う想像をしてみた話 #cmdevio

Shimizu Toshiya
December 06, 2016
1.4k

re:Invent2016で発表された新サービス「AWS Batch」を使う想像をしてみた話 #cmdevio

Shimizu Toshiya

December 06, 2016
Tweet

More Decks by Shimizu Toshiya

Transcript

  1. ࣗݾ঺հ • ਗ਼ਫ ढ़໵ʢ͠Έͣ ͱ͠΍ʣ • AWSίϯαϧςΟϯά෦ॴଐ • ಘҙ෼໺ –

    ಈը഑৴ – Amazon Elastic Transcoder • ϞοζͷγϯϘϧϚʔΫ͕ΞΠίϯͰ͢ – ͚ͲϞοζ޷͖ͷόϯυ͕޷͖ͰϞοζ͸ৄ͘͠ͳ͍ 2
  2. AWS Batchͷ৘ใݯ • AWSެࣜϖʔδ • AWSެࣜϒϩά(AWS Batch – AWSͰόονॲཧδϣϒΛ࣮ߦ͢Δ) •

    re:Invent2016 Breakout Session • CMP323 - NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amazon Web Services • ηογϣϯಈը(YouTube) • re:invent2016 cmp323 ͱ͔Ͱݕࡧ͢Δͱग़͖ͯ·͢ • ຊൃද͸ͪ͜Βͷϒϩά/ηογϣϯΛେ͍ʹࢀߟʹ͠ ͍ͯ·͢ 5
  3. 1. ίϯϐϡʔςΟϯά؀ڥͷ࡞੒ • ίϯϐϡʔςΟϯά؀ڥʢCompute Environmentʣ – όονͷδϣϒΛ࣮ߦ͢Δ৔ॴʢϦιʔεʣ – AWSʹ؅ཧͤ͞Δ͔ɺࣗલͰ؅ཧ͢Δ͔ •

    Managed / Unmanaged – ΠϯελϯελΠϓͳͲͷࢦఆ • ಛఆϞσϧc4.2xlarge/m4.10xlarge • ΠϯελϯεϑΝϛϦʔࢦఆʢc5 family) – ΦϯσϚϯυΠϯελϯε/εϙοτΠϯελϯεͷࢦఆ – vCPUͷׂ౰਺ʢ࠷খɺر๬ɺ࠷େʣ – VPCɺSubnetɺSecurity GroupɺIAMϩʔϧ 9
  4. 2. δϣϒΩϡʔͷ࡞੒ • δϣϒΩϡʔʢJob Queueʣ – ίϯϐϡʔςΟϯά؀ڥʹεέδϡʔϧ͞ΕΔ· Ͱδϣϒ͕ฒͿ – ࡞੒࣌ʹίϯϐϡʔςΟϯά؀ڥΛࢦఆ

    • ෳ਺ࢦఆ͕Մೳ – ΦϯσϚϯυͷίϯϐϡʔςΟϯά؀ڥ – εϙοτͷίϯϐϡʔςΟϯά؀ڥ » ೖࡳͰ͖ͨͱ͖͚ͩ࢖༻Մೳ 12
  5. 3. δϣϒఆٛͷ࡞੒ • δϣϒఆٛʢJob Definitionsʣ – δϣϒͷ࣮ߦํ๏Λࢦఆ͢Δ • ࢦఆͰ͖ΔଐੑʢͷҰ෦ʣ –

    δϣϒʹؔ࿈෇͚ΔIAMϩʔϧ – ґଘ͢Δδϣϒ – vCPUɺϝϞϦ – ίϯςφͷϓϩύςΟ – ؀ڥม਺ 15
  6. 4. δϣϒͷ࡞੒ • δϣϒʢJobsʣ – AWS Batchʹૹ৴͢Δ࡞ۀ୯Ґ • γΣϧεΫϦϓτɺLinux࣮ߦՄೳϑΝΠϧɺίϯςφΠϝʔδ –

    EC2্ͷίϯςφԽ͞ΕͨΞϓϦέʔγϣϯͱ࣮ͯ͠ߦ͞ΕΔ – ໊લ·ͨ͸IDͰଞͷδϣϒΛࢀরՄೳ – ଞͷδϣϒͷਖ਼ৗऴྃʹґଘՄೳ – δϣϒఆ͔ٛΒύϥϝʔλΛมߋՄೳ – αϒϛοτ͢ΔͱδϣϒΩϡʔʹฒͼɺ࣮ߦ͞Ε͍ͯ͘ 18
  7. 23