Exploring Google App Engine [DEMO] 2002099911
Hafeez Baig
33 steps
6 minutes
Google Cloud
This lab is the continuation of - <https://scribehow.com/o/ZY1mpfUWREm8HX6hm6Zx_w/viewer/Playing_with_Google_App_Engine_DEMO_2002099901__I1qwvrRqTIWxAppw6ILCUw>
1
Go to Google Cloud Console
2
Type and Select "**App Engine**" in the search bar
3
**App Engine** Dashboard will open
4
On the left side bar click on the **Services** section
5
Services page will open, click on the **default** Service
6
On the new tab **My Default Service - V1** is displayed
7
Go back to the Services - App engine Dashboard
8
Click on the **1 version** hyperlink
9
**Versions** page will open, here you can see all the versions
10
Click on the instances
11
**Instances** page will open, scroll to the **Summary** section
12
Scroll to the **Instances (autoscaled) section,** here you can see the instances
13
Go back to the **Cloud Shell Terminal** tab
14
On the left side bar click on the **main.py** file
15
Change "My Default Service - V1" to "My Default Service - V2"
16
On the navigation bar click on the **File** option
17
Click on the **Save** option
18
On the Cloud Shell Terminal type the command [[gcloud app deploy --version=v2]]
19
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
20
Copy the link of **Deployed service \[default\]**
21
Paste the link in the new tab and hit refresh
22
**My Default Service - V2** is displayed
23
Go back to the **App Engine dashboard** tab and on the left side bar click on the **Services** option
24
**Services** page will open, click on the **2 versions** hyperlink
25
**Versions** page will open, here you will observe that the traffic allocation is 100% for the **v2**
26
Click on the **Split traffic** option
27
**Split traffic** page will open, scroll to the **Split traffic by** section and select the option **IP address**
28
Scroll to the **Traffic allocation** section and click on the **Add version** button
29
In the **Allocation 2** text input field enter "**50**"
30
Click on the **Save** button
31
On the left side bar click on the **Services** option
32
On the **Services** page, click on the **2 versions** hyperlink
33
**Versions** page will open, here you will observe that the traffic is split into both versions by **50%**
Congratulations on completing this lab Exploring Google App Engine
Exploring Google App Engine [DEMO] 2002099911
Hafeez Baig
33 steps
6 minutes
Google Cloud
This lab is the continuation of - <https://scribehow.com/o/ZY1mpfUWREm8HX6hm6Zx_w/viewer/Playing_with_Google_App_Engine_DEMO_2002099901__I1qwvrRqTIWxAppw6ILCUw>
1
Go to Google Cloud Console
2
Type and Select "**App Engine**" in the search bar
3
**App Engine** Dashboard will open
4
On the left side bar click on the **Services** section
5
Services page will open, click on the **default** Service
6
On the new tab **My Default Service - V1** is displayed
7
Go back to the Services - App engine Dashboard
8
Click on the **1 version** hyperlink
9
**Versions** page will open, here you can see all the versions
10
Click on the instances
11
**Instances** page will open, scroll to the **Summary** section
12
Scroll to the **Instances (autoscaled) section,** here you can see the instances
13
Go back to the **Cloud Shell Terminal** tab
14
On the left side bar click on the **main.py** file
15
Change "My Default Service - V1" to "My Default Service - V2"
16
On the navigation bar click on the **File** option
17
Click on the **Save** option
18
On the Cloud Shell Terminal type the command [[gcloud app deploy --version=v2]]
19
Terminal will prompt you **Do you want to continue (Y/n):** type **Y**
20
Copy the link of **Deployed service \[default\]**
21
Paste the link in the new tab and hit refresh
22
**My Default Service - V2** is displayed
23
Go back to the **App Engine dashboard** tab and on the left side bar click on the **Services** option
24
**Services** page will open, click on the **2 versions** hyperlink
25
**Versions** page will open, here you will observe that the traffic allocation is 100% for the **v2**
26
Click on the **Split traffic** option
27
**Split traffic** page will open, scroll to the **Split traffic by** section and select the option **IP address**
28
Scroll to the **Traffic allocation** section and click on the **Add version** button
29
In the **Allocation 2** text input field enter "**50**"
30
Click on the **Save** button
31
On the left side bar click on the **Services** option
32
On the **Services** page, click on the **2 versions** hyperlink
33
**Versions** page will open, here you will observe that the traffic is split into both versions by **50%**
Congratulations on completing this lab Exploring Google App Engine