google cloud platform 2014q1 - starter guide
DESCRIPTION
Start to use the Google Cloud Platform. A brief tutorial for cloud user to start use. Still not deep into code and architecture.TRANSCRIPT
![Page 1: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/1.jpg)
MiTAC MiCloud - Google Cloud Platform Partner @ APAC2014Q1 GCP Introduction
Google Cloud Platform - Starter Guide
![Page 2: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/2.jpg)
Cloud Platform Family
![Page 3: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/3.jpg)
Google Cloud Platform Start Already
![Page 4: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/4.jpg)
Start from Create Google Cloud Platform Project
Start from Google Cloud Project
![Page 5: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/5.jpg)
Create Project
http://cloud.google.com/console
![Page 6: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/6.jpg)
Enable Billing
![Page 7: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/7.jpg)
Related SDK / Tool Installation
![Page 8: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/8.jpg)
Cloud Datastore - Schemaless object datastore with robust, scalable storage...
Cloud Datastore
![Page 9: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/9.jpg)
● NoSQL database service● Support ACID transactions● High availability, Strong / Eventual
consistency● Google infrastructure & management
○ No planned downtime.○ Replicated across multiple datacenters.○ Automatically scales to handle traffic increase.○ Monitored by Google engineers.
Features
![Page 10: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/10.jpg)
Developer Support
● GAE integrate (Python, Java, Go, Php)● Local development server● Auto / Customize index● JSON API over REST● GQL query language● CLI tool - GCD● Web tool - Google Cloud Console● Usage statistic
![Page 11: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/11.jpg)
Compare
Google Cloud Datastore
● Location○ US, UK
● Access auth○ Oauth2
● API○ RESTful○ XML
● Support○ ACID transaction○ Consistency
![Page 12: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/12.jpg)
Getting Start...
![Page 13: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/13.jpg)
Mapping RDBMS to Datastore
RDBMS Table Row Column
Datastore Kind Entity Property
![Page 14: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/14.jpg)
GAE Code
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();Entity employee = new Entity("Employee");employee.setProperty("name", "Simon uy");employee.setProperty("createDate", new Date());employee.setProperty("isManager", true);datastore.put(employee);
![Page 15: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/15.jpg)
Quick Start● Features: https://cloud.google.com/products/cloud-
datastore#features● Pricing: https://cloud.google.com/products/cloud-datastore#pricing● Documentation: https://cloud.google.com/products/cloud-
datastore#documentation
![Page 16: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/16.jpg)
Google Cloud Storage - Object storage service, without limit and global deployed
watch videos, screen casts, and presentations that walk through how to use Google
Cloud Storage.
VIDEOS
download sample applications, read howto
guides, and learn how to use Google Cloud Storage with
other Google products.
SAMPLES
ask questions, discuss solutions, and join our vibrant community of
developers.
COMMUNITY
Google Cloud Storage
![Page 17: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/17.jpg)
What is Cloud Storage?
SDK, API Support
Web Console
GAE Integrate
Oauth2 Integrate
Unlimited
Global Deploy
![Page 18: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/18.jpg)
GCS - Features
● High Capacity and Scalability● Strong Data Consistency● Google Cloud Console Projects● Bucket Locations● REST APIS● OAuth 2.0 Authentication● Authenticated Browser Downloads● Google Account Support for Sharing
![Page 19: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/19.jpg)
Compare
Google CloudStorage S3@AWS
● Location○ US, UK
● Replicate strategy○ Global○ Specify zone
● Access auth○ Oauth2
● Others○ Publish as a web
site○ SDK, API
● Location○ US, EU, Asia
● Replicate strategy○ Specify zone
● Access auth○ API Key
● Others○ Publish as a web
site○ SDK, API
![Page 20: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/20.jpg)
Getting Start
![Page 21: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/21.jpg)
GAE CodeBlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); UploadOptions uploadOptions =
UploadOptions.Builder.withGoogleStorageBucketName("<BUCKET>");
String uploadUrl =blobstoreService.createUploadUrl("/<callback>", uploadOptions);
resp.getWriter().println("<form action=" + uploadUrl + " method=\"post\" enctype=\"multipart/form-data\">");
![Page 22: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/22.jpg)
Quick Start● Features: https://cloud.google.com/products/cloud-
storage#features● Case Studies: https://cloud.google.com/products/cloud-
storage#case-studies● Pricing: https://cloud.google.com/products/cloud-storage#pricing● Documentation: https://cloud.google.com/products/cloud-
storage#documentation
![Page 23: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/23.jpg)
Google Cloud SQL - Full managed MySQL database instance
Google Cloud SQL
![Page 24: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/24.jpg)
Features
● Familiar Infrastructure● Flexible Charging● Security, Availability, Durability● EU and US Data Centers● Easier Migration; No Lock-in● Managed by Google
![Page 25: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/25.jpg)
Connect tools
● Using the command line prompt● API console SQL prompt● Admin tools and reporting tools● External applications● From App Engine: Java, Python● From Google Apps Script scripts
![Page 26: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/26.jpg)
Compare
● DB type○ Microsoft SQL
● Location○ US, EU, Asia
● Availability strategy○ Data sync
● Security○ Access Firewall
Google CloudSQL RDS@AWS SQLServer@Azure
● DB type○ MySQL, Oracle,
Microsoft SQL Server, PostgreSQL
● Location○ US, EU, Asia
● Availability strategy○ Backup○ Snapshot
● Security○ Access Firewall○ VPC/VPN
● DB type○ MySQL
● Location○ US, UK
● Availability strategy○ Backup○ Replicate
● Security○ SSL○ Access Firewall
● Global strategy○ Specify zone○ With AppEngine
● Service integrate○ Dump to Cloud
Storage○ BigQuery Integrate
![Page 27: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/27.jpg)
Getting Start
![Page 28: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/28.jpg)
GAE Code
Class.forName("com.mysql.jdbc.GoogleDriver");String url = //Cloud SQL
"jdbc:google:mysql://instance-name/"; Connection conn = DriverManager.getConnection(url);
String url= //Local Test"jdbc:google:mysql://instance-name/";
Connection conn = DriverManager.getConnection(url);
![Page 29: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/29.jpg)
Quick Start● Features: https://cloud.google.com/products/cloud-sql#features● Case Studies: https://cloud.google.com/products/cloud-sql#case-
studies● Pricing: https://cloud.google.com/products/cloud-sql#pricing● Documentation: https://cloud.google.com/products/cloud-
sql#documentation
![Page 30: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/30.jpg)
Google BigQuery - Big data with SQL like query feature, but fast...
Google BigQuery
![Page 31: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/31.jpg)
BigQuery Features
● TB level data analysis● Fast mining response● SQL like query language● Multi-dataset interactive
support● Cheap and pay by use● Offline job support
![Page 32: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/32.jpg)
BigQuery
Google Cloud Platform Integrate
AppEngine Log
Cloud Storage
AppEngine Datastore
![Page 33: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/33.jpg)
Supported User Interfaces
● Browser tool● CLI - bq command● REST API● SDK (client libraries)● 3’rd party tools
![Page 34: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/34.jpg)
Compare
Google BigQuery EMR@AWS
● Service strategy○ Base on Google
search● Store Location
○ Global● Query strategy
○ SQL like language● Security
○ Oauth2● Source
○ JSON, CSV● Developer support
○ Java, Python SDK○ Apps Script SDK○ RESTful API○ 3rd Party tools
● Service strategy○ Base on Google
released Map/Reduce spec
● Store Location○ Base on EMR
machines● Query strategy
○ Map/Reduce java sdk
● Security○ N/A
● Source○ Text, CSV
● Developer support○ Java SDK
![Page 35: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/35.jpg)
Getting Start
![Page 36: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/36.jpg)
var queryResults = BigQuery.Jobs.query(request, projectId);var jobId = queryResults.jobReference.jobId;queryResults = BigQuery.Jobs.getQueryResults(projectId, jobId);var rows = queryResults.rows;while (queryResults.pageToken) { queryResults = BigQuery.Jobs.getQueryResults(projectId, jobId, { pageToken: queryResults.pageToken }); rows = rows.concat(queryResults.rows);}
Apps Script Code
![Page 37: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/37.jpg)
Quick Start● Features: https://cloud.google.com/products/bigquery#features● Case Studies: https://cloud.google.com/products/bigquery#case-
studies● Pricing: https://cloud.google.com/products/bigquery#pricing● Documentation: https://cloud.google.
com/products/bigquery#documentation
![Page 38: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/38.jpg)
Google App Engine - A managed, scaled, robusted PaaS
Google App Engine
![Page 39: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/39.jpg)
● Load balancing● Caching● IDE tool● Monitor● Distribute● HA / DR● Version control● Resources● Pay by use● Common● Scale out / in
Why GAE?
![Page 40: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/40.jpg)
Google App Engine
Your Choice = AUTO SCALE = Lower Cost
![Page 41: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/41.jpg)
Features
Cloud Storage Datastore Memcache CloudSQL BigQuery Task Queue Cron
![Page 42: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/42.jpg)
● IIS, Node.js, Python, PHP support
● Service: ○ SQL Service○ Table Service○ Blob Service○ Media Services○ Service Bus○ Notification Hubs○ Scheduler○ BizTalk Services○ Active Directory○ Multi-Factor
Authentication● Others:
○ IDE full support○ Publish with git
Compare
Google AppEngine Heroku Azure
● Java, PHP, Python, Go support
● Services: ○ Memcache○ Task Queue○ Cron○ Datastore○ CloudSQL○ CloudStorage○ Eage Cache○ Google APIs
● Others: ○ IDE full support○ Auto scale in/out○ Global already
● New:○ Publish with git
● Ruby, Java, Node.js, Python support
● Service: ○ Vendor provided
apps● Others:
○ CLI only○ Manual scale in/out○ Publish with git
![Page 43: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/43.jpg)
Getting Start
![Page 44: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/44.jpg)
Quick Start● Features: https://cloud.google.com/products/app-engine#features● Case Studies: https://cloud.google.com/products/app-engine#case-
studies● Pricing: https://cloud.google.com/products/app-engine#pricing● Documentation: https://cloud.google.com/products/app-
engine#documentation
![Page 45: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/45.jpg)
Google Computing Engine - Run virtual machines at Google Scale
Google Compute Engine
![Page 46: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/46.jpg)
Features
● Scale, performance, and value● Flexibility and an Open Environment● Predictable Performance● Strong Security● Environmental Impact● Big Router● Global fiber
![Page 47: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/47.jpg)
Google Style Management
● Fancy management console● Share permissions with Google Account● Tag for machine, ACL, routing● Software Defined Networking● Start Script● Mass technical documents share
![Page 48: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/48.jpg)
Compare
● Location○ US, EU, Asia
● Machine strategy○ Windows, Ubuntu,
SuSE, OpenLogic, Oracle Linux
● Network strategy○ VPC○ Traffic Manager
● Other○ Resizable
Google Compute Engine EC2@AWS VM@Azure
● Location○ US, EU, Asia
● Machine strategy○ Amazon Linux,
Ubuntu, Redhat, SuSE, Windows
● Network strategy○ ELB○ CloudFront○ Global IDC○ Firewall ACL
● Other○ TAG, User Data
Script, AMI, Snapshot
○ IAM○ CloudWatch
● Location○ US, UK
● Machine strategy○ CentOS, Debian,
Ubuntu, SuSE, Redhat...
○ Bring self-kernel● Network strategy (SDN)
○ L4 load balancer○ Routing configure○ Firewall ACL
● Other ○ TAG, Start Script,
Image, Snapshot○ Availability policy
■ auto-restart■ on host
maintenance
![Page 49: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/49.jpg)
Getting Start
![Page 50: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/50.jpg)
Start a Google Machine
gcutil --service_version="v1" \--tags="admin" --zone="us-central1-b" --machine_type="g1-small" \--network="my-network" --external_ip_address="ephemeral" \--can_ip_forward="true" \ --image="https://www.goo...s/centos6-with-nodejs" \--persistent_boot_disk="true"
![Page 51: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/51.jpg)
Quick Start● Features: https://cloud.google.com/products/compute-
engine#features● Case Studies: https://cloud.google.com/products/compute-
engine#case-studies● Pricing: https://cloud.google.com/products/compute-engine#pricing● Documentation: https://cloud.google.com/products/compute-
engine#documentation
![Page 52: Google Cloud Platform 2014Q1 - Starter Guide](https://reader033.vdocuments.us/reader033/viewer/2022051400/54c6cba64a79591a568b45c4/html5/thumbnails/52.jpg)
More Requirement ?