@@ -28,15 +28,12 @@ orders without knowing about the inventory.
28
28
29
29
30
30
### Demonstrate Container Lifecycle Management
31
+ {% if modules.demos_msa-cicd-eap %}
31
32
32
33
* Explain OpenShift container health management using
33
34
https://docs.google.com/presentation/d/1bt4k9yB0wDOj0d5WzDCWqftPxIizQ7f5S15LysEGFyQ/edit#slide=id.g1b95a791a8_0_24[the slides]
34
35
* In the OpenShift web console, go to *CoolStore PROD* project
35
- {% if modules.demos_msa-cicd-eap %}
36
36
* Scroll down to find the *Inventory Live* service group
37
- {% else %}
38
- * Scroll down to find the *Inventory* service group
39
- {% endif %}
40
37
* Explain that the blue circle shows the number containers that back *inventory-green* service
41
38
42
39
====
@@ -52,7 +49,7 @@ image::demos/msa-resilience-inventory.png[Live Inventory Container,width=800,ali
52
49
and added automatically to the load-balancer. If one container fails,
53
50
there will be another container that can service requests
54
51
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]
56
53
57
54
* Click on the blue circle
58
55
* 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]
65
62
** Health and number of times its restarted +
66
63
* Click on *Actions* button and then *Delete* to delete this pod
67
64
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
+
68
106
image::demos/msa-resilience-delete-pod.png[Delete Pod,width=920,align=center]
69
107
70
108
* Click on *Overview* in the left sidebar menu
@@ -81,6 +119,8 @@ further investigation. In latter cases, OpenShift is able to remove
81
119
those pods from the load-balancer and send user to the healthy
82
120
containers
83
121
122
+ {% endif %}
123
+
84
124
### Demonstrate Service Resilience and Preventing Cascading Failures
85
125
86
126
* Explain service resilience using
0 commit comments