Google cloud platform
-
Upload
rajdeep -
Category
Technology
-
view
2.831 -
download
14
description
Transcript of Google cloud platform
![Page 1: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/1.jpg)
Presented by Rajdeep Dua
Google Cloud Platform & Services
![Page 2: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/2.jpg)
Agenda
– Google App Engine
– Google App Engine for Business– Google Storage for Developers– Prediction API– Big Query APIs
![Page 3: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/3.jpg)
3
Understanding the Cloud Computing Landscape
Source: Gartner AADI Summit Dec 2009
IaaS
PaaS
SaaS
![Page 4: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/4.jpg)
Our New Offerings
4
Google Storage
Google’s Infrastructure : GFS, BigTable
Big Query Prediction APIs
Google App Engine
Infr
ast
ruct
ure
Pla
tform
![Page 5: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/5.jpg)
5
Google App Engine
•Easy to build
•Easy to manage
•Easy to scale
5
![Page 6: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/6.jpg)
6
App Engine
![Page 7: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/7.jpg)
Google App Engine -Details
7
![Page 8: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/8.jpg)
8
Distributed Meme: Divide & ConquerSpecialized services
BlobstoreImages
Mail XMPP Task Queue
Memcache Datastore URL Fetch
User Service
![Page 9: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/9.jpg)
9
Language runtimes
Duke, the Java mascotCopyright © Sun Microsystems Inc., all rights
reserved.
![Page 10: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/10.jpg)
10
JVM languages• Scala
• JRuby (Ruby)
• Groovy
• Quercus (PHP)
• Rhino (JavaScript)
• Jython (Python)
![Page 11: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/11.jpg)
11
Ensuring portability
![Page 12: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/12.jpg)
OrangeScape for Application design - “Build business apps faster, easier”
Google App Engine for Application architecture -“Build apps that scale, highly available”
GAE in Enterprise – Build business applications using OrangeScape
Case in point:24SEVEN Customer runs its Purchase system on OrangeScape/GAE and integrates with
Oracle ERP
![Page 13: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/13.jpg)
New Features in GAE 1.4
![Page 14: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/14.jpg)
New Features in App Engine 1.4
• Always on Instances
• Warming requests
• Increased time limit for Task Queues and cron jobs
• Increased size for URL Fetch
• Channel APIs
![Page 15: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/15.jpg)
App Engine Instances
• App Engine Instance
– Basic unit in App Engine
– App engine applications are deployed in sandboxed instances
• Scaling
– App is scaled by deploying it on new instances
– Deployment on new instances increases latency (because of load time)
![Page 16: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/16.jpg)
App Engine Instances
• Always On Instances
– Specify always on instances for your app
– $9 per month
– Max number of reserved Instances : 3
![Page 17: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/17.jpg)
App Engine Instances
• Warming requests : Preload part of the initialization code to reduce load time
– Java
• Configuration – one of the following
– appengine-web.xml :<warmup-requests-enabled>false</warmup-requests-enabled> : warming is turned on by default
– web.xml : <load-on-startup>1</load-on-startup>
– Servlet Context Listener
– Warm up servlet : use built in definition :_ah_warmup
![Page 18: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/18.jpg)
Google App Engine for BusinessBuild and deploy apps. Without all the hassles.
![Page 19: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/19.jpg)
19
Google App Engine for BusinessSame scalable cloud hosting platform. Designed for the enterprise.
• Enterprise application management
– Centralized domain console
• Enterprise reliability and support
– 99.9% Service Level Agreement
– Premium Developer Support
• Hosted SQL
– Managed relational SQL database in the cloud
• SSL on your domain
– Including "naked" domain support
• Secure by default
– Integrated Single Sign On (SSO)
• Pricing that makes sense
– Pay only for what you use
19
Google App Enginefor Business
* Hosted SQL and SSL on your domain available later this year
![Page 20: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/20.jpg)
Google Storage for DevelopersStore your data in Google's cloud
![Page 21: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/21.jpg)
What Is Google Storage?
• Store your data in Google's cloudo any format, any amount, any time
• You control access to your datao private, shared, or public
• Access via Google APIs or 3rd party tools/libraries
![Page 22: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/22.jpg)
Sample Use CasesStatic content hostinge.g. static html, images, music, video Backup and recoverye.g. personal data, business records Sharinge.g. share data with your customers Data storage for applicationse.g. used as storage backend for Android, App Engine, Cloud based apps Storage for Computatione.g. BigQuery, Prediction API
![Page 23: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/23.jpg)
Google Storage Benefits
High Performance and Scalability Backed by Google infrastructure
Strong Security and Privacy Control access to your data
Easy to UseGet started fast with Google & 3rd party tools
![Page 24: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/24.jpg)
Google Storage Technical Details• RESTful API o Verbs: GET, PUT, POST, HEAD, DELETE o Resources: identified by URIo Compatible with S3
• Buckets o Flat containers, i.e. no bucket hierarchy • Objects o Any typeo Size: 100 GB / object
• Access Control for Google Accounts o For individuals and groups
• Two Ways to Authenticate Requests o Sign request using access keys o Web browser login
![Page 25: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/25.jpg)
Performance and Scalability
•Objects of any type and 100 GB / Object•Unlimited numbers of objects, 1000s of buckets •All data replicated to multiple US data centers•Leveraging Google's worldwide network for data delivery •Only you can use bucket names with your domain names •“Read-your-writes” data consistency•Range Get
![Page 26: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/26.jpg)
Security and Privacy Features
• Key-based authentication• Authenticated downloads from a web browser • Sharing with individuals• Group sharing via Google Groups • Access control for buckets and objects• Set Read/Write/List permissions
![Page 27: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/27.jpg)
ToolsGoogle Storage Manager
gsutil
![Page 28: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/28.jpg)
Google Storage usage within Google
Haiti Relief Imagery USPTO data
Partner Reporting
Google BigQuery
Google Prediction API
Partner Reporting
![Page 29: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/29.jpg)
Some Early Google Storage Adopters
![Page 30: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/30.jpg)
Google Storage - Pricing
oStorage$0.17/GB/Month
oNetworkUpload - $0.10/GBDownload$0.30/GB APAC$0.15/GB Americas / EMEA
oRequestsPUT, POST, LIST - $0.01 / 1,000 RequestsGET, HEAD - $0.01 / 10,000 Requests
![Page 31: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/31.jpg)
Google Storage - Availability
•Limited preview in US* currently o100GB free storage and network per accountoSign up for wait list at
o http://code.google.com/apis/storage/
* Non-US preview available on case-by-case basis
![Page 32: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/32.jpg)
Google Storage Summary •Store any kind of data using Google's cloud infrastructure•Easy to Use APIs •Many available tools and librariesogsutil, Google Storage Managero3rd party:Boto, CloudBerry, CyberDuck, JetS3t, …
![Page 33: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/33.jpg)
Google Prediction APIGoogle's prediction engine in the cloud
![Page 34: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/34.jpg)
Introducing the Google Prediction API
– Google's sophisticated machine learning technology– Available as an on-demand RESTful HTTP web service
![Page 35: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/35.jpg)
"english" The quick brown fox jumped over the lazy dog.
"english" To err is human, but to really foul things up you need a computer.
"spanish" No hay mal que por bien no venga.
"spanish" La tercera es la vencida.
?To be or not to be, that is the question.
? La fe mueve montañas.
2. PREDICTThe Prediction APIlater searches forthose featuresduring prediction.
How does it work?
• 1. TRAIN• The Prediction APIfinds relevantfeatures in the sample data during training.
![Page 36: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/36.jpg)
• Customer• Sentiment
TransactionRisk
SpeciesIdentification
MessageRouting
Legal DocketClassification
SuspiciousActivity
Work RosterAssignment
RecommendProducts
PoliticalBias
UpliftMarketing
EmailFiltering
Diagnostics
InappropriateContent
CareerCounseling
ChurnPrediction
... and many more ...
A virtually endless number of applications...
![Page 37: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/37.jpg)
Automatically categorize and respond to emails by language
– Customer: ACME Corp, a multinational organization– Goal: Respond to customer emails in their language– Data: Many emails, tagged with their languages
– Outcome: Predict language and respond accordingly
A Prediction API Example
![Page 38: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/38.jpg)
Using the Prediction API
1. Upload
2. Train
Upload your training data toGoogle Storage
Build a model from your data
Make new predictions3. Predict
A simple three step process...
![Page 39: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/39.jpg)
Upload your training data to Google Storage
– Training data: outputs and input features – Data format: comma separated value format (CSV), result in first column
"english","To err is human, but to really ...""spanish","No hay mal que por bien no venga."...
Upload to Google Storage
gsutil cp ${data} gs://yourbucket/${data}
Step 1: Upload
![Page 40: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/40.jpg)
Create a new model by training on data
• To train a model:
POST prediction/v1.1/training?data=mybucket%2Fmydata
• Training runs asynchronously. To see if it has finished:
GET prediction/v1.1/training/mybucket%2Fmydata
• {"data":{• "data":"mybucket/mydata", • "modelinfo":"estimated accuracy: 0.xx"}}}
Step 2: Train
![Page 41: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/41.jpg)
Apply the trained model to make predictions on new data
• POST prediction/v1.1/query/mybucket%2Fmydata/predict
• { "data":{ • "input": { "text" : [• "J'aime X! C'est le meilleur" ]}}}
Step 3: Predict
![Page 42: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/42.jpg)
Apply the trained model to make predictions on new data
• POST prediction/v1.1/query/mybucket%2Fmydata/predict
• { "data":{ • "input": { "text" : [• "J'aime X! C'est le meilleur" ]}}}
• { data : { • "kind" : "prediction#output",• "outputLabel":"French",• "outputMulti" :[ {"label":"French", "score": x.xx}
• {"label":"English", "score": x.xx}• {"label":"Spanish", "score": x.xx}]}}
Step 3: Predict
![Page 43: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/43.jpg)
Apply the trained model to make predictions on new data
• import httplib
# put new data in JSON format• params = { ... }• header = {"Content-Type" : "application/json"}•conn = httplib.HTTPConnection("www.googleapis.com")conn.request("POST", "/prediction/v1.1/query/mybucket%2Fmydata/predict",
• params, header)
• print conn.getresponse()
Step 3: Predict
![Page 44: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/44.jpg)
• Data– Input Features: numeric or unstructured text– Output: up to hundreds of discrete categories
• Training– Many machine learning techniques– Automatically selected – Performed asynchronously
• Access from many platforms:– Web app from Google App Engine– Apps Script (e.g. from Google Spreadsheet)– Desktop app
Prediction API Capabilities
![Page 45: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/45.jpg)
– Updated Syntax– Multi-category prediction
o Tag entry with multiple labels
– Continuous Outputo Finer grained prediction rankings based on multiple labels
– Mixed Inputso Both numeric and text inputs are now supported
• Can combine continuous output with mixed inputs
Prediction API v1.1 - new features
![Page 46: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/46.jpg)
Google BigQueryInteractive analysis of large datasets in Google's cloud
![Page 47: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/47.jpg)
Introducing Google BigQuery– Google's large data adhoc analysis technology
• Analyze massive amounts of data in seconds
– Simple SQL-like query language
– Flexible access
• REST APIs, JSON-RPC, Google Apps Script
![Page 48: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/48.jpg)
Working with large data is a challenge
Why BigQuery?
![Page 49: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/49.jpg)
• SpamTrends
Detection
Web Dashboards
Network Optimization
Interactive Tools
Many Use Cases ...
![Page 50: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/50.jpg)
–Scalable: Billions of rows
–Fast: Response in seconds
–Simple: Queries in SQL
–Web ServiceoRESToJSON-RPCoGoogle App Scripts
Key Capabilities of BigQuery
![Page 51: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/51.jpg)
1. Upload
2. Import
Upload your raw data toGoogle Storage
Import raw data into BigQuery table
Perform SQL queries on table
3. Query
Another simple three step process...
Using BigQuery
![Page 52: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/52.jpg)
• Compact subset of SQLo SELECT ... FROM ...WHERE ... GROUP BY ... ORDER BY ...LIMIT ...;
• Common functionsoMath, String, Time, ...
• Additional statistical approximationsoTOPoCOUNT DISTINCT
Writing Queries
![Page 53: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/53.jpg)
• GET /bigquery/v1/tables/{table name}
• GET /bigquery/v1/query?q={query}
• Sample JSON Reply:• {• "results": {• "fields": { [• {"id":"COUNT(*)","type":"uint64"}, ... ]• },• "rows": [• {"f":[{"v":"2949"}, ...]},• {"f":[{"v":"5387"}, ...]}, ... ]• }• }•Also supports JSON-RPC
BigQuery via REST
![Page 54: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/54.jpg)
• Standard Google Authentication– Client Login– OAuth– AuthSub
• HTTPS support– protects your credentials– protects your data
• Relies on Google Storage to manage access
Security and Privacy
![Page 55: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/55.jpg)
Wikimedia Revision history data from:http://download.wikimedia.org/enwiki/latest/enwiki-latest-pages-meta-history.xml.7z
Wikimedia Revision History
Large Data Analysis Example
![Page 56: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/56.jpg)
• Python DB API 2.0 + B. Clapper's sqlcmd• http://www.clapper.org/software/python/sqlcmd/
Using BigQuery Shell
![Page 57: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/57.jpg)
BigQuery from a Spreadsheet
![Page 58: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/58.jpg)
– Google StorageoHigh speed data storage on Google Cloud
– Prediction APIoGoogle's machine learning technology able to
predict outcomes based on sample data
– BigQueryo Interactive analysis of very large data setsoSimple SQL query language access
Recap
![Page 59: Google cloud platform](https://reader035.fdocuments.in/reader035/viewer/2022081414/54c6cb2b4a79591a568b45b6/html5/thumbnails/59.jpg)
– Google Storage for Developerso http://code.google.com/apis/storage
– Prediction APIo http://code.google.com/apis/prediction
– BigQueryo http://code.google.com/apis/bigquery
•
More information