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

what is Cloud Run?

what is Cloud Run?

F8f7692cb46c0f7feda5210a46b47bcf?s=128

shogomuranushi

July 05, 2019
Tweet

Transcript

  1. Cloud RunͬͯͳΜ΍ͶΜ Cloud Native Kansai #4 Shogo Muranushi

  2. Shogo Muranushi ABEJA, Inc. - ABEJA Platform Product Owner -

    Lead Infrastructure Engineer
  3. ࡢ೥ͷ͋Δ೔

  4. αʔϏεͷಛੑʹ߹Θͤͯ։ൃ͍ͯͨ͠ • ʮͪΐͬͱͨ͠ॲཧ͚ͩͩ͠େͯ͠Քಇ͠ͳ͍͠FaaSͰ૊Ή͔ʯ • ʮॲཧྔଟ͍͠αʔόϨεͩͱߴ͘ͳΔ͔ΒίϯςφͰ࡞Δ͔ʯ or

  5. ͕࣌ؒܦա • ʮϦΫΤετྔ͕૿͑ͯɺFaaSͰ૊Μͩͱ͜Ζͷॲཧ͕૿Ճʂ՝ֹۚ ͕ΤϥΠ͜ͱʹʂʂ͜͜ͷॲཧ͸Lambda͔Βίϯςφʹม͑Α͏ʯ • ʮίϯςφͰ࡞͚ͬͨͲɺػೳ͕ॖୀ͖ͯͯ͋͠·Γ࢖ΘΕ͍ͯͳ͍ ͔Βৗ࣌ىಈࣙΊ͍ͨɻLambdaͰॻ͖௚͢ʁʯ

  6. ͔ͯ • ͳΜͰॻ͖௚͞ͳ͔͋ΜͶΜɻ࣌ؒ໪ମͳ͍Θ • ϫʔΫϩʔυʹ߹ΘͤͯόοΫΤϯυͷΠϯϑϥ͕উखʹ੾Γସ Θͬͯ͘ΕͨΒ࠷ߴͳͷʹ • Զ͸αʔόϨεͱίϯςφͷྑ͍ͱ͜Ζ͚ͩͷԸܙΛड͚͍ͨ

  7. ࡢ೥ՆʹKnative͕஀ੜͨ͠

  8. Knativeͱ͸ • Kubernetesͷ্ͰαʔόϨεϥΠΫͳ؀ڥΛ࡞ΕΔ • ϦΫΤετϕʔεͰίϯςφ͕ىಈ͢Δ Serving • ΠϕϯτۦಈͰॲཧ͢Δ Eventing •

    ιʔείʔυ͔ΒίϯςφʹϏϧυ͢Δ Build
  9. FaaSͱ͸Կ͕ҧ͏ʁ • มΘΒͳ͍ͱ͜Ζ • ϦΫΤετ͕དྷͨΒ Compute ͕ىಈͯ͠ɺҰఆظؒϦΫΤετ͕ແ͍ͱ ఀࢭ͢Δ

  10. FaaSͱ͸Կ͕ҧ͏ʁ • ίϯςφͳͷͰ੍໿͕গͳ͍ • ݴޠɺϖΠϩʔυαΠζɺॲཧ࣌ؒɺϦιʔεɺin VPCͳͲ • KubernetesΤίγεςϜͷԸܙΛड͚΍֦͘͢ுੑ͕ߴ͍ • KubernetesͳͲͷΠϯϑϥ؅ཧෆཁͳͷͰָ

    • EC2ͳͲ΋ෆཁͳͷͰɺϦιʔεͷແବ͕ͳ͍҆͘
  11. Ͳ͕ͬͪྑ͍ͷʁʢྫʣ • ࠓޙͷ։ൃείʔϓͰ੍໿ͷதͰ໰୊ແ͍ͳΒ FaaS • ੍໿ͷதͰे෼ॲཧͰ͖Δ • FaaSͷࢥ૝ʹϚον͢ΔਓࡐΛ֬อͰ͖Δ • ͱΓ͋͑ͣϓϩτλΠϓ͔ͩΒ

    • KubernetesγϯυΠ • ࠓޙͷ։ൃείʔϓͰ੍໿͕ݫ͘͠ͳΓͦ͏ͳΒ Knative • ίϯςφͳͷͰ੍໿͸গͳ͍ • ίϯςφͳͷͰɺΞϓϦͷมߋͳ͘ޙͰ೗Կ༷ʹͰ΋ߏ੒Λม͑ΒΕΔ
  12. ·ͩ଍Γͳ͍ • ʮKubernetesͷӡ༻ʹ׳Ε͖͔ͯͨΒྑ͍͚Ͳɺग़དྷΕ͹Πϯϑϥ ͷ໘౗΋ݟͨ͘ͳ͍ΜͩΑͳʯ

  13. ࠓ೥ͷय़ʹCloud Run͕஀ੜͨ͠

  14. Do you know Cloud Run ? • ஌Βͳ͍ • ஌ͬͯΔ͚Ͳɺ৮ͬͨ͜ͱͳ͍

    • ৮ͬͨ͜ͱ͋Δ • ࢖͍ͬͯΔ
  15. None
  16. None
  17. None
  18. ͭ·ΓɺCloud Run ʹ Full Managed Knative • Πϯϑϥͷ؅ཧෆཁͳίϯςφͷͨΊͷαʔόϨεج൫ • ՝ۚମܥ΋FaaSͱಉ͡

    • FaaSͱίϯςφͷ͍͍ͱ͜औΓ • ͨͩ͠ൃల్্ͷͨΊ·ͩػೳ͸গͳ͍ ʴ =
  19. Cloud Runͷಛ௃

  20. Cloud Runͷಛ௃ • Serverless Container • Request driven workload •

    Scale to zero • Event driven workload • Scale to zero • Full Managed / Multi-zone • Container • Any Language • Any Library • Any Binary • Ecosystem of base images
  21. None
  22. Concurrency = 1 Concurrency = 80 ඞཁͳΠϯελϯε͕গͳ͍ ίʔϧυελʔτͷස౓͕௿͍

  23. LambdaͳͲͷFaaSͷ৔߹ ฒྻ෼͚ͩ՝ۚ Cloud Runͷ৔߹ ฒྻ෼͚ͩ՝ۚ͞Εͳ͍

  24. 80ฒྻͷίϯςφ ྘͸ϦΫΤετ਺ ੨͸ϨΠςϯγ 0୆ͷঢ়ଶ͔Β 60ඵؒͰ15,000ΫϥΠΞϯτ 80ສҎ্ͷϦΫΤετΛୡ੒

  25. Cloud Run͕ࠓͰ͖ͳ͍͜ͱ • Max: 1vCPU / 2GB RAM • GPUඇରԠ

    • CloudSQLඇରԠʢComming Soonʣ • VPCඇରԠʢComming Soonʣ • άϩʔόϧϩʔυόϥϯαʔඇରԠ • Knativaͷyamlఆٛ͸ඇରԠʢ2019೥தରԠ༧ఆʣ • gRPCඇରԠ • άϩʔόϧαʔϏεͰ͸ͳ͍ɻϦʔδϣφϧαʔϏε • gVisorΛར༻͍ͯ͠ΔͨΊະ࣮૷ͷγεςϜίʔϧ͕͋Δ͔΋
  26. ͪͳΈʹ

  27. • AWS Lambda, GCP Cloud FunctionͳͲɺ࣮૷͕όϥόϥʹͳ͍ͬͯΔ ͨΊ։ൃऀͷख͕ؒ૿͍͑ͯΔ • ͦͷͨΊCNCFΛத৺ͱͯ͠CloudEventsͱ͍͏αʔόϨεͷEventॲཧ ͷΠϯλʔϑΣΠεΛඪ४ن֨Խ࢝͠Ίͨ

    • CNCF͸ͦΕҎ֎΋ίϯςφΛத৺ʹଟ਺ͷඪ४ԽΛਐΊ͍ͯΔɻ
 αʔόϨεͱίϯςφͷϫʔΫϩʔυͷڥ໨ͷKnativeͳͲʹΑͬͯແ ͘ͳΔͷͰ͸
  28. ͪΌͿ୆͕མͪண͘೔΋͍ۙ

  29. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠