GCP App Engine - Deploy and Split traffic (Part 2)

  Рет қаралды 10,502

Cloud Advocate

Cloud Advocate

Күн бұрын

This is part 2 of GCP App Engine video. By end of this video you will know how to deploy a sample application. Split the traffic between multiple versions of the application. Different scaling options and migration of traffic from one version to another. Google Cloud App Engine is very important from exam's perspective. I will help you to answer any question in exam on app engine.
Important commands:
Install python libraries
gcloud components install app-engine-python
GIT URL to download sample app
git clone github.com/GoogleCloudPlatfor...
Deploy Application
gcloud app deploy app.yml --version v1
To stop serving versions named v1 and v2, use the
following:
gcloud app versions stop v1 v2
To specify automatic scaling, add a section to app.yaml that includes the term
automatic_scaling followed by key-value pairs of configuration options. These include
the following:
■■ target_cpu_utilization
■■ target_throughput_utilization
■■ max_concurrent_requests
■■ max_instances
■■ min_instances
■■ max_pending_latency
■■ min_pending_latency
Target CPU Utilization Specifies the maximum CPU utilization that occurs before additional
instances are started.
Target Throughput Utilization Specifies the maximum number of concurrent requests
before additional instances are started. This is specified as a number between 0.5 and 0.95.
Maximum Concurrent Requests Specifies the max concurrent requests an instance can
accept before starting a new instance. The default is 10; the max is 80.
Maximum and Minimum Instances Indicates the range of number of instances that can
run for this application.
Maximum and Minimum Latency Indicates the maximum and minimum time a request
will wait in the queue to be processed.
-----------------
To split the traffic:
#gcloud app services set-traffic default --splits v1=.4,v2=.6
QUESTION;
You have deployed a Django 1.5 Python application to App Engine. This version of Django
requires Python 3. For some reason, App Engine is trying to run the application using
Python 2. What file would you check and possibly modify to ensure that Python 3 is used
with this application?
A. app.config
B. app.yaml
C. services.yaml
D. deploy.yaml

Пікірлер: 51
@adamtechdays
@adamtechdays 3 жыл бұрын
Thanks man. I feel very confident with App Engine now with your explanation. I was struggling understand how to 2 versions of same app is used but now you have explained it simply.
@CloudAdvocate
@CloudAdvocate 3 жыл бұрын
Glad it helped!
@mayankjadhav4509
@mayankjadhav4509 4 жыл бұрын
Hello Cloud Advocate, First of all thank you so much for uploading this kind of videos and for explaining in detail with practicals. I would like to give a feedback and that is - Please try to upload more videos in gap of 2-3 days.
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Thanks Mayank for your feedback. I will try to upload more content.
@beehag2007
@beehag2007 3 жыл бұрын
Excellent one, GK. Best explanation for this topic I could find.
@CloudAdvocate
@CloudAdvocate 3 жыл бұрын
Thanks Arun!!
@deepeshchauhan6927
@deepeshchauhan6927 3 жыл бұрын
Please cover all the topics of GCP. Your videos are really helpful.
@atulsuroshe
@atulsuroshe 3 жыл бұрын
Amazing demo.. I have used PHP app instead of python. Thanks for a nice explanation. Please make hands-on on other services. Thanks
@talk2haimanti
@talk2haimanti 4 жыл бұрын
Amazing explanation !!! Thanks so much :)
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
You're very welcome!
@scorpiovibration8172
@scorpiovibration8172 3 жыл бұрын
Nice explanation Sir :)
@mariathomas5112
@mariathomas5112 2 жыл бұрын
Neat and clean explanation😍
@BeautifulL1fe
@BeautifulL1fe 3 жыл бұрын
Thank you 🙂
@anoopgk9417
@anoopgk9417 4 жыл бұрын
Thanks GK for sharing this video, it gave a clear understanding in deploying an application on App Engine and splitting traffic. I guess for your question anwser is B (app.yaml) where in in runtime option you mention the Python version
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
You are spot on!!
@ttdinesh7357
@ttdinesh7357 2 жыл бұрын
Excellent work ...understood the process of app engine and services and vertions from ur spelling mistake
@ajeshsanthabth
@ajeshsanthabth 3 жыл бұрын
Thanks for superb content. We need to modify app.yaml file. I tried to play around with the file to get different warning message. Thanks once again..
@suriyajan3597
@suriyajan3597 Жыл бұрын
It is perfect! Can you please provide some practice questions based on these topics?
@sharmilabhattacharyya3388
@sharmilabhattacharyya3388 3 жыл бұрын
Thanks for amazing and detailed explanations! Really worked.. Do you maintain any sequence of videos that needs to be gone through in this learning process? If yes, is it possible for you to provide the link of the next video in the prior one? That way, it helps to keep a track instead of browsing the you tube with which one to select next.. Thanks again for all your effort.
@CloudAdvocate
@CloudAdvocate 3 жыл бұрын
Yes :) you can find learn gcp playlist in my channel.
@sunildahiya1709
@sunildahiya1709 4 жыл бұрын
As we can't change the region of deployed application in app engine. Is it possible to deploy the new version of that application with changing the region ??
@ranjithkoppu6165
@ranjithkoppu6165 2 жыл бұрын
Thank you for the video. I just have a question, why would we want to split traffic between versions ? Wouldn't we make versions for the reason to release new content ?
@ibmuser13
@ibmuser13 3 жыл бұрын
thanks for the knowledge sharing GK. Appreciated. Had a question - so with GCP, we can only create 1 app per project .. this limitation is not there per AWS account correct? meaning, one can create as many apps as needed in beanstalk per account
@CloudAdvocate
@CloudAdvocate 3 жыл бұрын
Yes you are right.
@CookiePirate
@CookiePirate 2 жыл бұрын
Hi Cloud Advocate, can I deploy a service or a version of a service in app engine using cloud console? I can't seem to find any option to deploy a service or a version using the console.
@nachogallego5083
@nachogallego5083 4 жыл бұрын
Answer b IMHO. By the way, while studying the App engine docs I think that it’s important to know the no-promote parameter, am I right? P.S. thanks for the videos 👏🏻
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Yes Nacho, thanks for pointing it out. no-promote is important parameter.
@subesingh7285
@subesingh7285 4 жыл бұрын
Could please make a video that show difference between blue/green deployment and A/B testing on app engine?
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Sure, meanwhile please look at this doc cloud.google.com/appengine/docs/standard/python/splitting-traffic
@thatisrikanth7524
@thatisrikanth7524 4 жыл бұрын
option B is the correct answer
@justkeepfilming9767
@justkeepfilming9767 4 жыл бұрын
Hi! This is really helpful :) Do you have a tutorial on how to connect to Cloud SQL from App Engine? Thanks
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Thank you!!. I don't have that yet. But will work on that.
@justkeepfilming9767
@justkeepfilming9767 4 жыл бұрын
@@CloudAdvocate that'd be great! I have a project on it and have no clue how to do it haha your tutorials are very easy to follow :) any chance you will upload before nxt week? coz i have the project deadline haha :/
@justkeepfilming9767
@justkeepfilming9767 4 жыл бұрын
@@CloudAdvocate thank you! is there any chance you can upload it this week? :)
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Sure will do it..and it doesn't matter with language right? You want to know how your app would connect to cloud sql.
@justkeepfilming9767
@justkeepfilming9767 4 жыл бұрын
@@CloudAdvocate Is it okay if the language is in Python? and yes id like to know how my app would connect to cloud sql using python :) Thanks a million!
@saikota5765
@saikota5765 4 жыл бұрын
Hello Cloud Advocate, Could you help me to connect gcp cloud sql mysql with python code. I am totally new to gcp and python
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Hi Sai, I did it here kzfaq.info/get/bejne/mruCl5SSucquoZs.html
@saikota5765
@saikota5765 4 жыл бұрын
@@CloudAdvocate Thank you very much.
@rajasekhar4833
@rajasekhar4833 4 жыл бұрын
Answer is B (app.yaml)
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Yes
@RajuKumar-yk1ct
@RajuKumar-yk1ct 4 жыл бұрын
answer: b
@subesingh7285
@subesingh7285 4 жыл бұрын
Thanks for providing very good video! Could you please suggest, is it possible to deploy application that consume RAM more than 2 GB. As per the web link provided by google documentation its looks not feasible. Web link cloud.google.com/appengine/docs/standard
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Yes, looks like it for standard version.
@subesingh7285
@subesingh7285 4 жыл бұрын
@@CloudAdvocate What we do if application required more than 2gb ram. And we do not want spin up new instance.
@CloudAdvocate
@CloudAdvocate 4 жыл бұрын
Then that application is not suited for appengine :). It should be microservices for app engine. Did you check the limit in flexible?
@subesingh7285
@subesingh7285 4 жыл бұрын
@@CloudAdvocate I tried to find out the RAM limit for app engine flexible. But did not find any concrete in gcp documentation.
@SunilPandey-bl8kq
@SunilPandey-bl8kq 3 жыл бұрын
B
Google Cloud Functions - Serverless in GCP
17:52
Cloud Advocate
Рет қаралды 22 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 206 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 32 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 94 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
Deploy the same app to App Engine, Cloud Functions, and Cloud Run?
15:46
Google Cloud Tech
Рет қаралды 11 М.
Google Cloud Deployment Manager - Getting Started
18:31
Cloud Advocate
Рет қаралды 14 М.
Google App Engine for Google Associate Cloud Engineer - Part I
9:11
Cloud Advocate
Рет қаралды 21 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 217 М.
VPC Peering in Google Cloud | Networking in GCP
18:02
Cloud Advocate
Рет қаралды 16 М.
Google Cloud Platform (GCP) - Cloud Run
1:53:07
Cloud Monkey
Рет қаралды 27 М.
How to design a serverless app
9:55
Google Cloud Tech
Рет қаралды 12 М.
Google Associate Cloud Engineer Practice Exam and Tips
37:53
Cloud Advocate
Рет қаралды 56 М.
Лучший браузер!
0:27
Honey Montana
Рет қаралды 1,1 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 525 М.
Это - iPhone 16!
16:29
Rozetked
Рет қаралды 389 М.
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 548 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 494 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,7 МЛН