Using Google’s Cloud – for Developers
Using Google Compute Engine (GCE)
Lynn Langit
About Lynn Langit
What is the GCE Service? Who is the Competition?
What is the Google Compute Engine, really?
Why should you use Google Compute Engine?
GCE Architecture
Using Google’s Cloud Services
Getting started with GCE
How do you work with Google Compute Engine?
Working with
the Web console
for GCE
– navigating
& projects

DEMO
Working with the API Web Console(s)

Bookmark the console URIs!

GCE
GCE

GAE
GAE
Working with the Web Console for GCE –
Creating an instance

DEMO
Console – GCE Instance Settings
GCE Project-Scoped Resources
Understanding Billing
considering costs of Compute, Storage & Network Use

DEMO
About Billing
 Information about free
usage tier quotas




Scalable storage via
many choices
Understanding
Sandbox vs....
Google Cloud Starter Pack
Why should you use the Google Compute Engine?
Setting up 5 instances – speed test

DEMO
Setting up gcutil
Set up for language (per OS) and environment
Python runtime

gcutil download

obtain SSH key

Python for...
Connecting to GCE with gcutil

DEMO
Details, details – connecting with gcutil
How does Authentication work in GCE?
How does disk storage work in GCE?
Hardware, OS and Networking Details- GCE
Virtualization Details - GCE
Getting started with GCE programming
 Choose language, editor and environment
Java or Python

Eclipse or Sublime

SDKs an...
API Console /OAuth 2.0 Playground
Some of the GCE OAuth Playground APIs
More APIs…
Still more APIs…
GCE API Programming in Java

32
Download and Configure Eclipse for GCE using GAE
 Download Eclipse
 Get GAE SDK (access to
APIs)
 Get GAE plug-in for E...
Adding the SDK tools via Eclipse
Using the Java GCE API

DEMO
Taking Google Compute Engine further…
 Data Storage Options
 Disks
 Scratch (Ephemeral)
 Persistent
 Google Cloud Sto...
Using Google’s Developer Resources

DEMO
Understanding Google’s Developer Resources
 Each product has API documentation and samples
 RSS Google Developer Blog fo...
• recipes)

www.TeachingKidsProgramming.org
•
•
•

Free Courseware (Java, Small Basic or C# [on Pluralsight])
Do a Recipe ...
Keep Learning
 Twitter: @LynnLangit
 YouTube:
http://www.youtube.com/user/SoCalDevGal

 Hire me




To help build yo...
Upcoming SlideShare
Loading in...5
×

Using Google Compute Engine

2,323

Published on

Deck for San Diego GTUG Oct 2013 on using Google Compute Engine or GCE. Using Google Vir

Published in: Technology, News & Politics
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,323
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
76
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide
  • Getting started documentation -- https://developers.google.com/compute/docs/api/prereqs
  • https://developers.google.com/compute/docs/gcutil/
  • From the GCE documentation -- https://developers.google.com/compute/docs/faq#morecompute
    “Can you explain more about the value of Google Compute Engine?
    We measure the compute power in GCEUs. Based on our benchmarks, one GCEU is at least as powerful as the CPU capacity of a 1.0-1.2 GHz 2007 Opteron. The hourly rate for each GCEU is $.053. Our analysis of on-demand pricing for similarly configured instance types shows that customers get 50% more compute power (GCEUs) for their money than when running on other leading cloud providers. Note that compute power transfers to applications differently, which can affect the level of performance gains.”
  • https://developers.google.com/compute/docs/gcutil/
  • https://developers.google.com/compute/docs/api/how-tos/authorization
    https://developers.google.com/compute/docs/access
  • https://developers.google.com/compute/docs/api/how-tos/authorization
    https://developers.google.com/compute/docs/access
  • https://developers.google.com/compute/docs/disks
  • https://developers.google.com/compute/docs/networking#blockedtraffic
  • Useful for exploring the APIs for Google Cloud services
  • Download location for tools
  • https://code.google.com/appengine/
    SDK for Eclipse - https://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Java
    Plug-in for Eclipse - https://code.google.com/eclipse/docs/getting_started.html
    Tutorial - http://googcloudlabs.appspot.com/whatgae.html
  • https://appengine.google.com/
  • https://appengine.google.com/
    https://cloud.google.com/resources/articles/building-high-availability-applications-on-google-compute-engine
    https://cloud.google.com/resources/articles/high-availability-lamp-stack-on-google-compute-engine
  • https://developers.google.com/compute/
  • http://developers.google.com
  • Lynn
  • Using Google Compute Engine

    1. 1. Using Google’s Cloud – for Developers Using Google Compute Engine (GCE) Lynn Langit
    2. 2. About Lynn Langit
    3. 3. What is the GCE Service? Who is the Competition?
    4. 4. What is the Google Compute Engine, really?
    5. 5. Why should you use Google Compute Engine?
    6. 6. GCE Architecture
    7. 7. Using Google’s Cloud Services
    8. 8. Getting started with GCE
    9. 9. How do you work with Google Compute Engine?
    10. 10. Working with the Web console for GCE – navigating & projects DEMO
    11. 11. Working with the API Web Console(s) Bookmark the console URIs! GCE GCE GAE GAE
    12. 12. Working with the Web Console for GCE – Creating an instance DEMO
    13. 13. Console – GCE Instance Settings
    14. 14. GCE Project-Scoped Resources
    15. 15. Understanding Billing considering costs of Compute, Storage & Network Use DEMO
    16. 16. About Billing  Information about free usage tier quotas   Scalable storage via many choices Understanding Sandbox vs. Production  Monitoring Usage   Via Service Dashboards Via APIs (programmable alerts / alarms)  How Scaling Works  Default is auto-scale
    17. 17. Google Cloud Starter Pack
    18. 18. Why should you use the Google Compute Engine?
    19. 19. Setting up 5 instances – speed test DEMO
    20. 20. Setting up gcutil Set up for language (per OS) and environment Python runtime gcutil download obtain SSH key Python for your OS Python for your OS Download Download Configure Configure gcutil OAuth Handshake gcutil OAuth Handshake SSH key / passphrase SSH key / passphrase verify metadata verify metadata Tip: it can take up to 30 minutes to associate a new key with the first VM instance in your project
    21. 21. Connecting to GCE with gcutil DEMO
    22. 22. Details, details – connecting with gcutil
    23. 23. How does Authentication work in GCE?
    24. 24. How does disk storage work in GCE?
    25. 25. Hardware, OS and Networking Details- GCE
    26. 26. Virtualization Details - GCE
    27. 27. Getting started with GCE programming  Choose language, editor and environment Java or Python Eclipse or Sublime SDKs and IDE plug-ins Dev Tools Dev Tools Java SDK Java SDK Developer IDE Developer IDE Eclipse (version) Eclipse (version) GAE tools GAE tools GAE SDK GAE SDK Eclipse plug-in Eclipse plug-in Note: APIs differ by language – Python is the most fully implemented.
    28. 28. API Console /OAuth 2.0 Playground
    29. 29. Some of the GCE OAuth Playground APIs
    30. 30. More APIs…
    31. 31. Still more APIs…
    32. 32. GCE API Programming in Java 32
    33. 33. Download and Configure Eclipse for GCE using GAE  Download Eclipse  Get GAE SDK (access to APIs)  Get GAE plug-in for Eclipse
    34. 34. Adding the SDK tools via Eclipse
    35. 35. Using the Java GCE API DEMO
    36. 36. Taking Google Compute Engine further…  Data Storage Options  Disks  Scratch (Ephemeral)  Persistent  Google Cloud Storage  Google Drive  GAE integration  All consoles are hosted in GAE  Caching, routing  Other Google APIs  Prediction, Translation…  Scaling  Google whitepaper w/reference architecture – here  Whitepaper and code sample (w/scripts) for  ‘HA w/LAMP on GCE’ - here
    37. 37. Using Google’s Developer Resources DEMO
    38. 38. Understanding Google’s Developer Resources  Each product has API documentation and samples  RSS Google Developer Blog for product updates  Google IO and other community events    GTUGs YouTube Channel Google Developer Advocate Hangouts  Google’s Developer Expert Program
    39. 39. • recipes) www.TeachingKidsProgramming.org • • • Free Courseware (Java, Small Basic or C# [on Pluralsight]) Do a Recipe  Teach a Kid (Ages 10 ++) VOTE at http://www.azureDevs.com, CONFIRM via email and SHARE (tweet)
    40. 40. Keep Learning  Twitter: @LynnLangit  YouTube: http://www.youtube.com/user/SoCalDevGal  Hire me    To help build your BI/Big Data solution To teach your team next gen BI To learn more about using NoSQL solutions
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×