Skip to content

Commit 3c062e8

Browse files
committed
updated service resilience demo
1 parent 1894a2d commit 3c062e8

7 files changed

+45
-5
lines changed

demos/msa-service-resilience.adoc

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ orders without knowing about the inventory.
2828
2929
3030
### Demonstrate Container Lifecycle Management
31+
{% if modules.demos_msa-cicd-eap %}
3132

3233
* Explain OpenShift container health management using
3334
https://docs.google.com/presentation/d/1bt4k9yB0wDOj0d5WzDCWqftPxIizQ7f5S15LysEGFyQ/edit#slide=id.g1b95a791a8_0_24[the slides]
3435
* In the OpenShift web console, go to *CoolStore PROD* project
35-
{% if modules.demos_msa-cicd-eap %}
3636
* Scroll down to find the *Inventory Live* service group
37-
{% else %}
38-
* Scroll down to find the *Inventory* service group
39-
{% endif %}
4037
* Explain that the blue circle shows the number containers that back *inventory-green* service
4138
4239
====
@@ -52,7 +49,7 @@ image::demos/msa-resilience-inventory.png[Live Inventory Container,width=800,ali
5249
and added automatically to the load-balancer. If one container fails,
5350
there will be another container that can service requests
5451
55-
image::demos/msa-resilience-scaled.png[Scaled Up,width=540,align=center]
52+
image::demos/msa-resilience-scaled-bg.png[Scaled Up,width=540,align=center]
5653

5754
* Click on the blue circle
5855
* Explain that the list of pods backing the *inventory-green* is displayed
@@ -65,6 +62,47 @@ image::demos/msa-resilience-scaled.png[Scaled Up,width=540,align=center]
6562
** Health and number of times its restarted +
6663
* Click on *Actions* button and then *Delete* to delete this pod
6764
65+
image::demos/msa-resilience-delete-pod-bg.png[Delete Pod,width=920,align=center]
66+
67+
* Click on *Overview* in the left sidebar menu
68+
* Explain that OpenShift immediately realizes that number of pods
69+
backing the *CoolStore GW* service is reduced to 1 while it was declared
70+
to have 2 pods backing this service for high-availability. OpenShift
71+
restarts the removed pod in order to bring the number of pods back to 2 pods.
72+
73+
image::demos/msa-resilience-auto-healing-bg.png[Auto Healing,width=540,align=center]
74+
75+
* Explain that OpenShift allows distinguishing between failures that
76+
might resolve with a restart and more severe issues that need required
77+
further investigation. In latter cases, OpenShift is able to remove
78+
those pods from the load-balancer and send user to the healthy
79+
containers
80+
81+
{% else %}
82+
83+
* Explain OpenShift container health management using
84+
https://docs.google.com/presentation/d/1bt4k9yB0wDOj0d5WzDCWqftPxIizQ7f5S15LysEGFyQ/edit#slide=id.g1b95a791a8_0_24[the slides]
85+
* In the OpenShift web console, go to *CoolStore PROD* project
86+
* Scroll down to find the *Inventory* service group
87+
* Explain that the blue circle shows the number containers that back *inventory* service
88+
* Click on the up arrow to scale the inventory container to two containers.
89+
* Explain that in a few seconds, a new identical container is deployed
90+
and added automatically to the load-balancer. If one container fails,
91+
there will be another container that can service requests
92+
93+
image::demos/msa-resilience-scaled.png[Scaled Up,width=540,align=center]
94+
95+
* Click on the blue circle
96+
* Explain that the list of pods backing the *inventory* is displayed
97+
* Click on one of the containers with a name similar to *inventory-n-nnnnn*
98+
* Explain that you can see the pod details such as
99+
** The container image that is deployed
100+
** The host that container is deployed on
101+
** Persistent storage attached to the container
102+
** Memory and CPU configurations
103+
** Health and number of times its restarted +
104+
* Click on *Actions* button and then *Delete* to delete this pod
105+
68106
image::demos/msa-resilience-delete-pod.png[Delete Pod,width=920,align=center]
69107

70108
* Click on *Overview* in the left sidebar menu
@@ -81,6 +119,8 @@ further investigation. In latter cases, OpenShift is able to remove
81119
those pods from the load-balancer and send user to the healthy
82120
containers
83121
122+
{% endif %}
123+
84124
### Demonstrate Service Resilience and Preventing Cascading Failures
85125

86126
* Explain service resilience using
86.1 KB
Loading
-15.3 KB
Loading
77.3 KB
Loading
-17.9 KB
Loading
88.3 KB
Loading
-7.23 KB
Loading

0 commit comments

Comments
 (0)