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

AWS vs GCP 今から作るならどちらがいいの 20180330

Show Murai
April 02, 2018

AWS vs GCP 今から作るならどちらがいいの 20180330

AWSとGCPそれぞれの特徴を比較したスライドです
こちらのイベントで発表した資料です。
【サポーターズCoLab勉強会】AWS vs GCP 今から作るならどっちがいいの!?
https://supporterzcolab.com/event/337/

Show Murai

April 02, 2018
Tweet

More Decks by Show Murai

Other Decks in Technology

Transcript

  1. AWS vs GCP ࠓ͔Β࡞Δ ͳΒͲ͕͍͍ͬͪͷʂʁ αϙʔλʔζCoLabษڧձ Mar 30 2018 גࣜձࣾLOB

    Site Reliability Engineer ଜҪ ᠳଠ࿕ https://supporterzcolab.com/event/337/
  2. ࣗݾ঺հ • ଜҪᠳଠ࿕ • @Show_murai • גࣜձࣾ LOB • Site

    Reliability Engineer ※ຊ೔ͷൃද͸ݸਓͷݟղͰ͋Γɺॴଐ͢Δ૊৫ͷެࣜݟղͰ͸͋Γ·ͤΜ
  3. ࣗݾ঺հ • ژ౎ग़਎ ౦ژࡏॅ • ࣾձਓ 6೥໨ • ֶੜͷࠒ͸ը૾ೝࣝɺ
 ίϯϐϡʔλϏδϣϯΛݚڀͯ͠·ͨ͠

    • ৽ଔͰωοτϫʔΫػثͷ
 αʔόʔαΠυΤϯδχΞ΍ͬͯ·ͨ͠ • લ৬͸αΠόʔΤʔδΣϯτͰΠϯϑϥΤϯδχΞ • झຯ͸ཱྀߦͰGWʹਂηϯߦ͘༧ఆ
  4. AWSͷੈքల։ • Ϧʔδϣϯ • େ཮ͳͲ஍ཧతʹ཭ΕͨྖҬ • 18ͷϦʔδϣϯ(ߋʹ4ͭϦϦʔε༧ఆ) • ౦ژɺόʔδχΞɺϩϯυϯ •

    ΞϕΠϥϏϦςΟʔκʔϯ • 1 ͭͷϦʔδϣϯʹෳ਺ͷͦΕͧΕಠཱͨ͠ϩέʔγϣϯ • ྫ. ౦ژϦʔδϣϯͷAZɿ඼઒ɺཱ઒
 ※࣮ࡍʹ͸ެ։͞Ε͍ͯ·ͤΜ EC2 ϦʔδϣϯͱΞϕΠϥϏϦςΟʔκʔϯ http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
  5. GCPͷੈքల։ • Ϧʔδϣϯ • େ཮ͳͲ஍ཧతʹ཭ΕͨྖҬ • 12ͷϦʔδϣϯ • ౦ژɺϩϯυϯɺΦϨΰϯ •

    ΞϕΠϥϏϦςΟʔκʔϯ • 1 ͭͷϦʔδϣϯʹෳ਺ͷͦΕͧΕಠཱͨ͠ϩέʔγϣϯ • ྫ. ౦ژϦʔδϣϯͷAZɿ඼઒ɺཱ઒
 ※࣮ࡍʹ͸ެ։͞Ε͍ͯ·ͤΜ
  6. υΩϡϝϯτ΍৘ใऩू • AWS • ެࣜυΩϡϝϯτ ͸͔ͳΓॆ࣮͍ͯ͠Δ • AWS Ϋϥ΢υαʔϏε׆༻ࢿྉू ΋๛෋ͰࢀߟʹͳΔ

    • DevelopersIO ΋ΊͪΌͪ͘Όݕࡧʹώοτ͢Δ • GCP • ެࣜυΩϡϝϯτͷ೔ຊޠ͸Ξοϓσʔτ͕஗͍
 ӳޠͷ΄͏͕࣮֬ • ٕज़తͳهࣄ͕AWSͱൺֱͯ͠গͳ͍
  7. DevOps • AWS CloudFormation • JsonͰߏ੒؅ཧ͸೉қ౓ߴΊ • Yaml΋࢖͑ΔΑ͏ʹͳͬͨ • ೉қ౓ߴ͍͕ނʹ৘ใ΋΍΍ଟΊ

    • Google Cloud Deployment Manager • yamlͰॻ͚Δͷ͸ྑ͛͞ • ݸਓతʹ࢖ͬͯΔͷ͸ • Terraform&AnsibleͰߏ੒؅ཧͱϓϩϏδϣχϯά
  8. CLI tool • aws-cli • Homebrew ͰΠϯετʔϧՄೳ(MacOS) • Credential͕҉߸Խͳ͠Ͱอଘ͞ΕΔ •

    ࠔͬͨΒhelpΛແ৺Ͱଧ͚ͭͩ • gcloud • ॳظηοτΞοϓͰίέΔͱͭΒ͍ • ࠔͬͨΒ΍ͬͺΓhelpଧͯ͹Α͍
  9. ωοτϫʔΫ • AWS • VPCΛϦʔδϣϯຖʹ࡞੒ • VPCͷϦʔδϣϯؒ઀ଓ͸Մೳ • ϨΨγʔωοτϫʔΫނʹཧղ͠΍͍͢ •

    ΦϯϓϨͱͭͳ͗΍͍͢ • DC઀ଓͷιϦϡʔγϣϯ͕ଟ͍ • GCP • άϩʔόϧͰ1ͭͷVPC࡞Δ͚ͩ • GCPͷωοτϫʔΫ͸΄Μͱੌ͍ • Firewall΋ϧʔτϨʔϒϧ΋λάͰ؅ཧͰ͖Δ
  10. ϩʔυόϥϯα • AWS • ELBɺALBɺNLBछྨ͸ଟ͍͔ΒͰ͖Δ͜ͱ͸ଟ͍ • εέʔϧΞοϓ࣌ͷ஗Ԇ͕ଟ͍ • GCP •

    ࡞੒͔ΒαʔϏε։࢝·Ͱҟৗʹ଎͍(2,3sec) • IP anycastͱ͍͏ٕज़Λ஍ٿن໛Ͱόϥϯγϯά • ಉ͡IPΞυϨεΛ࢖ͬͯશੈք͔ΒΞΫηε͢Δ͜ͱ͕Մೳ
  11. IP Anycast Introducing the new Google Cloud Load Balancing UI

    https://cloudplatform.googleblog.com/2016/04/introducing-the-new-Google-Cloud-Load-Balancing-UI.html
  12. Managed RDB • AWS RDS • MySQLޓ׵ͷAWSಠࣗΤϯδϯAurora͕࠷ڧ • ओཁͳσʔλʔϕʔεΤϯδϯἧͬͯΔ •

    ఆظϝϯςφϯεʹ͸උ͓͑ͯ͘ • Cloud SQL • CloudSQL͸ࣗ෼Ͱνϡʔχϯάඞཁ • PostgreSQL͸·ͩBETA • ఆظϝϯςφϯε͕ಥવ΍ͬͯ͘Δ
  13. NoSQLɺKVS • AWS • DynamoDB͸௿ϨΠςϯγͷNoSQLσʔλʔϕʔε • ElasticCache͸ΦϯϝϞϦKVS • GCP •

    BigtableɺDatastoreͳͲͷGoogleͷόοΫΤϯυͰ
 ར༻͍ͯ͠ΔαʔϏεΛ࢖͑Δ • ManagedΩϟογϡαʔϏε͕ݱঢ়ແ͍
 ※GAEͷmemcached͸আ֎
  14. Storage • AWS S3 • ඇৗʹߴ͍଱ٱੑ • ࡉ͔ͳݖݶઃఆ͕Մೳ • ੩తίϯςϯπͷϗεςΟϯά

    • Cloud Storage • Multi-RegionalͰ͸౦ژʹ഑ஔ͞Εͳ͍ͬΆ͍ • IAMݖݶͰ͸Read/Write/Admin͔͠ݖݶ͕෼͚Εͳ͍
  15. Container Management • AWS ECS • ecs-cli Λ૊Έ߹Θͤͯ࢖͏ͱศར • εέʔϧ/σϓϩΠपΓ͸ΩϟονΞοϓ͕ඞཁ

    • EC2΋ؚΊͯ؅ཧ͢ΔͳΒCloudFormationͱ૊Έ߹Θͤ • Google Container Engine(GKE) • kubernetesΛ࢖͑Δ • kubernetes͕ίϯςφϚωδϝϯτͩͱϝΠϯετϦʔϜ(ଟ෼)
  16. Container Management • AWS ECS • ecs-cli Λ૊Έ߹Θͤͯ࢖͏ͱศར • εέʔϧ/σϓϩΠपΓ͸ΩϟονΞοϓ͕ඞཁ

    • EC2΋ؚΊͯ؅ཧ͢ΔͳΒCloudFormationͱ૊Έ߹Θͤ • AWS Elastic Container Service for Kubernetes • AWSͰ΋Ϛωʔδυ kubernetes Λ࢖͑Δʂʂʂ • ·ͩެ։͍ͯ͠ͳ͍(ϓϨϏϡʔ) • Google Kubernetes Engine(αʔϏε໊มΘΓ·ͨ͠ʂ) • ϑϧϚωʔδυͷ kubernetes Λ࢖͑Δ • kubernetes͕ίϯςφϚωδϝϯτͩͱϝΠϯετϦʔϜ
  17. ϞχλϦϯάαʔϏε • AWS CloudWatch • μογϡϘʔυΛ࡞Δͷ͕େม • Ξϥʔτͷઃఆ΋̍ͭͣͭߦ͏ඞཁ͋Γ • Google

    Stackdriver • ϝτϦοΫͷऩू͕ఆৗతʹέʔε͕͋Δ • AWS΍ΦϯϓϨ΋agentΛར༻ͯ͠؂ࢹՄೳ • Ξϥʔτͷઃఆ͸άϧʔϓͰग़དྷΔ • μογϡϘʔυ͕ݟ΍͍͢ • αʔυύʔςΟπʔϧͷ΄͏͕༏ल(༗ྉ) • DatadogɺNew RelicɺMackarelͳͲ
  18. ίετ • AWS • EC2Πϯελϯε͸ίετߴ͍ • εϙοτΠϯελϯε(Ұ࣌తͳΠϯελϯε)ͷ࢓૊Έ͕ͪΐͬͱ೉͍͠ • ϚωʔδυαʔϏε΍αʔόϨεΛ࢖͏ͱ͍҆ •

    GCP • GCEΠϯελϯε͸ίεύྑ͍ • ௕ׂ࣌ؒҾ΋ࣗಈదԠ • ϓϦΤϯϓςΟϒϧΠϯελϯε΋؆୯ʹ࢖͑Δ • BigQueryͷैྔ՝ۚʹ஫ҙ