como rodar seu site na mesma infra do google.com (isso mesmo!) - drupalcamp sp 2015

28
Lucas Arruda [email protected] How to host your app on Google’s own infrastructure! @lunascarruda

Upload: lucas-arruda

Post on 15-Feb-2017

170 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Lucas [email protected]

How to host your app onGoogle’s own infrastructure!

@lunascarruda

Page 2: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Lucas Arruda

Software Architect @ CI&T DCO

Open-Source enthusiast

Acquia Certified Developer

Based on Campinas-SP / Brazil

Zend Certified Engineer PHP 5.3

Drupaler for 4+ yrs

GCP Authorized Trainer & Qualified Dev.

Page 3: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015
Page 4: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015
Page 5: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Main Cloud Providers (Iaas/Pass)

Page 6: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Cloud Providers with Major Market Share (Iaas/Pass)

Page 7: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

A “new” option...

Page 8: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google operates an extensive deployment of high-efficiency backend data centers that they use for computation and backend storage

Google has built a global, meshed backbone network to interconnect their data centers and to deliver traffic to their Edge points of presence (POPs)

70+ edge points of presence in 33 countries interconnected via Google's backbone network

Google runs an edge caching platform on top of their network infrastructure. The caching platform also has elements within ISP and access networks

Data Centers Backbone Points of Presence Edge Caching

Google's Network Infrastructure

Page 9: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

IaaSInfrastructure-as-a-Service

PaaSPlatform-as-a-Service

Virtualized hardware Abstracted computing power

Greater flexibility & control

Greater agility & less maintenance

Page 10: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Copyright 2015 Google Inc

Copyright 2015 Google Inc

Introducing Compute EngineGoogle Compute Engine

Page 11: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Copyright 2015 Google Inc

Run large-scale workloads on virtual machines hosted on Google's infrastructure. Choose a VM that fits your needs and gain the performance of Google’s worldwide fiber network.

Images by Connie Zhou

Page 12: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google App EngineCompute Engine features

High-performance virtual machines

Powered by Google’s global network

(Really) Pay for what you use

Global load balancing

Fast and easy provisioning

Compliance and security

Page 13: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google App EngineCompute Engine features

● Sub-hour Billing

● Up to 10TB Persistent Disk

● SSD and local SSD Persistent Disks

● 15+ Instance Types

● Advanced Networking

● Startup Scripts for Provisioning

● Network and HTTP Load Balancing

● Snapshotting

Page 14: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015
Page 15: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Copyright 2015 Google Inc

Copyright 2015 Google Inc

Introducing App EngineGoogle App Engine

Page 16: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Simple to Scale- Autoscale

Easy to develop- Free to start

- Build and test locally- Focus on App Code

Trivial to manage- Fully managed

- No patches/updates- 24x7 operation by

Google SREs

Google App EngineApp Engine Fundamentals

Page 17: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google App EngineApp Engine Fundamentals

When to use? Capabilities

● Automatic resource provisioning

● Java, Python, PHP, & Go Beta

● Identity, Memcache, Task Queue, Mail, ...

● Focus on your code

● Managed environment

● Build micro-services

Page 18: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015
Page 19: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Copyright 2015 Google Inc

Copyright 2015 Google Inc

“ With Google App Engine, we don’t need a system administrator or anyone dedicated to deploying our app, so 99 percent of our time is spent working on our application.”

-Ben Kamenslead developer, Khan Academy

● Not-for-profit online videos for education

● 3.8 million unique visits a month during the U.S. school year

● 1.5 million practice questions served and answered every school day

● Chose Google App Engine as hosting platform for KhanAcademy.org

● Site deployments at least once per day, sometimes 9 or 10 times per day

● No dedicated system administrator

Page 20: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Copyright 2015 Google Inc

Coca-Cola Happiness Flag for 2014 World Cup

● World’s largest mosaic flag

● Crowdsourced images from more than 200 countries

● Scalable hybrid solution built on App Engine, Cloud Storage, Datastore and Compute Engine

● Handled millions of images from Twitter, Facebook, Instagram as well as email

● Included redundancy, failover, backup and monitoring

Source: GCP guest blog post by Daniel Viveiros (CI&T)

Page 21: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Cloud Providers with Major Market Share (Iaas/Pass)

Page 22: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Affordable On-Demand Prices & a Commitment to Moore’s Law

Page 23: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google App EngineCloud Pricing Is Not Following Moore’s Law

2006 2014

Public Cloud Prices

Hardware Cost

● Public cloud prices have fallen 6-8% annually

● Hardware prices have fallen 20-30% annually

● Google introduced measures to optimise pricing:

○ Sub-Hour Billing○ Sustained-Use

Discounts

Page 24: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google App EngineSustained-use Discountsed on Moore's Law

Sustained-use discounts automatically reward users who run VMs for over 25% of any calendar monthTry the online pricing calculator to help estimate your costs

Page 25: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Google App EngineSustained-use Discountsed on Moore's Law

Page 26: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Q&A

Page 27: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

THANKS FOR

BEINGHERE!

Page 28: Como rodar seu site na mesma infra do Google.com (isso mesmo!) - DrupalCamp SP 2015

Lucas Arruda

@lunascarruda

[email protected]

google.com/+LucasArruda

linkedin.com/in/larruda

github.com/larruda