SlideShare a Scribd company logo
Deploying to
AppEngine
⇒ Whoami
Alex Hayorov @hayorov
We
Cats
vs
Dogs
voting
Choose Get the results
Our applicationArchitecture
• Multiplatform design
https://github.com/hayorov/example-voting-app
• Dockerized
• Hosted in Docker VM
Our applicationVoting-app
GET /
voting-appPOST /
vote: a
rpush
voter_id, vote
•Flask (python 2.7-alpine)
•Gunicorn
•Redis (TCP)
New project on cloud.google.com
Install Google Cloud Platform SDK (gcloud)
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
script: app.app
- url: /static
static_dir: static
Create app.yaml file
⇒ gcloud app deploy --project catsdogsvote
You are about to deploy the following services:
- catsdogsvote/default/20161120t203231 (from [example-voting-app/vote/app.yaml])
Deploying to URL: [https://catsdogsvote.appspot.com]
Beginning deployment of service [default]...
File upload done.
Updating service [default]...done.
Deployed service [default] to [https://catsdogsvote.appspot.com]
goto https://catsdogsvote.appspot.com
Deploying to AppEngine
Collecting Flask (from -r requirements.txt (line 1))
Using cached Flask-0.11.1.tar.gz
…
Running setup.py install for Flask ... done
Running setup.py install for Redis ... done
Running setup.py install for gunicorn ... done
Successfully installed Flask Jinja2-2.8 MarkupSafe-0.23 Redis Werkzeug click gunicorn itsdangerous-
0.24
⇒ virtualenv ./env && pip install -r requirements.txt #fixme
Create appengine_config.py
from google.appengine.ext import vendor
vendor.add('env/lib/python2.7/site-packages')
⇒ gcloud app deploy --project catsdogsvote
Choose Get the results
powered by AppEngine
rps-instances/time
t, secs
rps
1k
100
Count: 321612
Load: line(1, 1000, 10m) const(100, 5m)
HTTP codes
Count Percent
200 - OK 65.2% (430490)
500 - Error 32.2% (212734)
??? - Error 2.6% (17306)
workload
300 600
created instances
183
Response time distribution
time, s quantile
12000 100
5000 87
1000 71
500 63
350 41
150 4
Deploying to AppEngine
Deploying to AppEngine
Deploying to AppEngine

More Related Content

PPTX
Google colab introduction
PDF
Kube Your Enthusiasm - Paul Czarkowski
PPTX
Biwug 20180410 - I developed a SharePoint Framework solution, what to do next...
PDF
JCConf 2016 - Dataflow Workshop Labs
PPTX
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
PPTX
Serverless
PPTX
Serverless Workshop - Tomato Restaurant Rating App
PPTX
Introduction to using google colab
Google colab introduction
Kube Your Enthusiasm - Paul Czarkowski
Biwug 20180410 - I developed a SharePoint Framework solution, what to do next...
JCConf 2016 - Dataflow Workshop Labs
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
Serverless
Serverless Workshop - Tomato Restaurant Rating App
Introduction to using google colab

What's hot (20)

PPTX
Python Programming with Google Colab
PDF
Continuous mobile automation in build pipeline
PDF
GitLab Product Update, January 2017
PDF
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
PDF
5 Habits of High-Velocity Teams Using Kubernetes
PPTX
Roman Iovlev. Comaqa Spring 2018. Архитектура Open Source решений для автомат...
PPTX
Iot with google actions (optimised)
PPTX
What's new in c# 8.0
PPTX
Skip Staging! Test Docker, Helm, and Kubernetes Apps like a Pro
PPTX
State in stateless serverless functions
PDF
Infrastructure as Code
PPTX
Blazor and Azure Functions - a serverless approach
PDF
GCPUG.TW - GCP學習資源分享
PDF
When to use Serverless? When to use Kubernetes?
PDF
Running Docker on AWS
PPTX
Serverless Orchestration with Azure Durable Functions
PDF
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
PPTX
Selenium Testing your Kubernetes Apps with Machine Learning and Testim
PDF
Continuous delivery in AWS
PPTX
Cloud Networking
Python Programming with Google Colab
Continuous mobile automation in build pipeline
GitLab Product Update, January 2017
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
5 Habits of High-Velocity Teams Using Kubernetes
Roman Iovlev. Comaqa Spring 2018. Архитектура Open Source решений для автомат...
Iot with google actions (optimised)
What's new in c# 8.0
Skip Staging! Test Docker, Helm, and Kubernetes Apps like a Pro
State in stateless serverless functions
Infrastructure as Code
Blazor and Azure Functions - a serverless approach
GCPUG.TW - GCP學習資源分享
When to use Serverless? When to use Kubernetes?
Running Docker on AWS
Serverless Orchestration with Azure Durable Functions
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
Selenium Testing your Kubernetes Apps with Machine Learning and Testim
Continuous delivery in AWS
Cloud Networking
Ad

Viewers also liked (7)

PPT
The 90-Day Startup with Google AppEngine for Java
PPT
Cloud computing and security 01
PDF
appengine ja night #25 Google App Engine for PHP (English)
PDF
Google App Engine Developer - Day4
PDF
Understanding PaaS
PDF
Google I/O 2016 Recap - Google Cloud Platform News Update
PDF
Google Cloud Platform 入門
The 90-Day Startup with Google AppEngine for Java
Cloud computing and security 01
appengine ja night #25 Google App Engine for PHP (English)
Google App Engine Developer - Day4
Understanding PaaS
Google I/O 2016 Recap - Google Cloud Platform News Update
Google Cloud Platform 入門
Ad

Similar to Deploying to AppEngine (7)

PDF
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
PDF
Serverless Computing with Google Cloud
PDF
Continuous Integration & Continuous Delivery with GCP
PDF
Introduction to Cloud Computing with Google Cloud
PDF
Docker on Google App Engine
PPTX
Deploy Your Website with GCP Workshop slides of GDG on Campus UNSTPB
PDF
Serverless and you @ Women Who Code London 2020
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
Serverless Computing with Google Cloud
Continuous Integration & Continuous Delivery with GCP
Introduction to Cloud Computing with Google Cloud
Docker on Google App Engine
Deploy Your Website with GCP Workshop slides of GDG on Campus UNSTPB
Serverless and you @ Women Who Code London 2020

More from Alexander Khaerov (7)

PDF
The Amazing AppEngine
PDF
Moscow IT-English Meetup #1
PDF
Mpc store testing
PPTX
Selenium Grid: Culinary tips #optconf.ru
PPTX
Hayorov AA selen_internal_demo
PPTX
Selen short regru + demo
PPTX
Selen framework
The Amazing AppEngine
Moscow IT-English Meetup #1
Mpc store testing
Selenium Grid: Culinary tips #optconf.ru
Hayorov AA selen_internal_demo
Selen short regru + demo
Selen framework

Recently uploaded (20)

PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Well-logging-methods_new................
PDF
composite construction of structures.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPT
Project quality management in manufacturing
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
PPT on Performance Review to get promotions
PPTX
Sustainable Sites - Green Building Construction
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Welding lecture in detail for understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
Mechanical Engineering MATERIALS Selection
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Well-logging-methods_new................
composite construction of structures.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
R24 SURVEYING LAB MANUAL for civil enggi
Project quality management in manufacturing
bas. eng. economics group 4 presentation 1.pptx
UNIT 4 Total Quality Management .pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT on Performance Review to get promotions
Sustainable Sites - Green Building Construction
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Welding lecture in detail for understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mechanical Engineering MATERIALS Selection

Deploying to AppEngine

  • 4. Choose Get the results
  • 5. Our applicationArchitecture • Multiplatform design https://github.com/hayorov/example-voting-app • Dockerized • Hosted in Docker VM
  • 6. Our applicationVoting-app GET / voting-appPOST / vote: a rpush voter_id, vote •Flask (python 2.7-alpine) •Gunicorn •Redis (TCP)
  • 7. New project on cloud.google.com Install Google Cloud Platform SDK (gcloud) runtime: python27 api_version: 1 threadsafe: true handlers: - url: / script: app.app - url: /static static_dir: static Create app.yaml file
  • 8. ⇒ gcloud app deploy --project catsdogsvote You are about to deploy the following services: - catsdogsvote/default/20161120t203231 (from [example-voting-app/vote/app.yaml]) Deploying to URL: [https://catsdogsvote.appspot.com] Beginning deployment of service [default]... File upload done. Updating service [default]...done. Deployed service [default] to [https://catsdogsvote.appspot.com] goto https://catsdogsvote.appspot.com
  • 10. Collecting Flask (from -r requirements.txt (line 1)) Using cached Flask-0.11.1.tar.gz … Running setup.py install for Flask ... done Running setup.py install for Redis ... done Running setup.py install for gunicorn ... done Successfully installed Flask Jinja2-2.8 MarkupSafe-0.23 Redis Werkzeug click gunicorn itsdangerous- 0.24 ⇒ virtualenv ./env && pip install -r requirements.txt #fixme Create appengine_config.py from google.appengine.ext import vendor vendor.add('env/lib/python2.7/site-packages') ⇒ gcloud app deploy --project catsdogsvote
  • 11. Choose Get the results powered by AppEngine
  • 12. rps-instances/time t, secs rps 1k 100 Count: 321612 Load: line(1, 1000, 10m) const(100, 5m) HTTP codes Count Percent 200 - OK 65.2% (430490) 500 - Error 32.2% (212734) ??? - Error 2.6% (17306) workload 300 600 created instances 183 Response time distribution time, s quantile 12000 100 5000 87 1000 71 500 63 350 41 150 4