1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/moon.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
<!-- <link href="https://afeld.github.io/emoji-css/emoji.css" rel="stylesheet"> -->
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-transition='concave' data-state='blackout'>
<h1>CHAOS ENGINEERING</h1>
<h2>with</h2>
<h1>SERVICE MESH</h1>
</section>
<section>
<h4>Julien Bisconti</h4>
<p>Site Reliability Engineer </p>
<small>"what happens when a software engineer is tasked with what used to be called operations"</small>
<div style="display: grid; grid-template-columns: 1fr 1fr;">
<div style="display: grid; grid-template-rows: 1fr 1fr;">
<div style="height: 160px"><img src="/56k.cloud.png" alt="56k.cloud" style="background-color: white; border: none;" height="80%"></div>
<div><svg style="height: 150px" viewBox="0 0 275 100" width="275" xmlns="http://www.w3.org/2000/svg"><path d="m82.775 79.842-17.875-30.067 17.875-30.067 8.617 30.067zm-39.783-2.934-22.459-22.275h35.75l17.875 30.067zm0-54.358 31.075-7.792-17.875 30.067h-35.75zm45.65-22.55-40.609 10.542-6.05 10.358-12.191-.092-29.792 28.967 29.792 28.967 12.191-.092 6.05 10.358 40.609 10.634 10.908-39.509-6.142-10.266 6.142-10.267zm92.216 29.242c-5.408 0-9.075 2.291-11.825 6.508h-.183v-5.408h-9.533v39.783h9.716v-22.55c0-5.408 3.392-9.167 8.067-9.167 4.4 0 7.7 2.659 7.7 7.334v24.475h9.717v-26.034c.091-8.708-5.409-14.941-13.659-14.941zm-36.3 24.108c0 5.317-3.025 8.983-7.975 8.983-4.491 0-7.333-2.566-7.333-7.241v-24.75h-9.717v26.583c0 8.708 4.95 14.392 13.842 14.392 5.592 0 8.708-2.109 11.367-5.775h.275v4.675h9.35v-39.875h-9.717v23.008zm55.184-23.008h9.716v39.783h-9.716zm0-12.375h9.716v7.975h-9.716zm64.808 12.375-5.775 17.966c-1.283 3.667-2.292 8.709-2.292 8.709h-.275s-1.283-5.042-2.566-8.709l-6.509-17.966h-10.45l10.725 28.325c2.292 6.05 3.025 8.616 3.025 10.816 0 3.3-1.741 5.409-5.866 5.409h-3.759v8.341h6.234c8.066 0 10.908-3.208 13.933-12.008l14.025-40.792h-10.45zm-36.942 28.141v-21.083h6.234v-6.967h-6.234v-12.466h-9.716v12.375h-5.5v6.966h5.5v23.375c0 7.517 5.683 9.534 10.816 9.534 4.217 0 5.317-.184 5.317-.184v-7.7h-2.475c-2.292.092-3.942-.916-3.942-3.85z" fill="#fff"/></svg></div>
<div style="height: 200px;"><img style="border: none;" src="https://corporate.discovery.com/wp-content/themes/discovery-corporate/images/discovery-logo-explore-flat-2018.png" alt="Discovery Logo"></div>
</div>
<div>
<h4>contact</h4>
<p>
<small>
<a style='font-weight:bold;color:deepskyblue;' href='http://github.com/veggiemonk'>Github: @veggiemonk</a>
<br/>
<a style='font-weight:bold;color:deepskyblue;' href='https://twitter.com/veggiemonk'>Twitter: @veggiemonk</a>
<br/>
<a style='font-weight:bold;color:deepskyblue;' href='https://www.linkedin.com/in/julienbisconti/'>LinkedIn: julienbisconti 👈 CV</a>
<br />
<a style='font-weight:bold;color:deepskyblue;' href="https://veggiemonk.github.io/">blog: https://veggiemonk.github.io/</a>
<br>
<a style='font-weight:bold;color:deepskyblue;' href="mailto:julien@56k.cloud">mail: julien@56k.cloud</a>
</small>
</p>
</div>
</div>
</section>
<section id='outline'>
<h2>Outline</h2>
<ol>
<li>Genesis</li>
<li>Service mesh: architecture and features</li>
<li>Demo of Envoy and Istio</li>
<li>Chaos Engineering: concepts & origin</li>
<li>Demo of fault-injection</li>
<li>Q&A</li>
</ol>
</section>
<section>
<h4>at the beginning there was an</h4>
<h2>APP</h2>
<p class="fragment">and the app was code</p>
<p class="fragment">that needed to scale</p>
<p class="fragment">👉 microservices</p>
</section>
<section>
<h2>Deployment</h2>
<p>Containers: lightweight VMs </p>
<ul>
<li>12 factor app</li>
<li>easier deploy</li>
<li>reproducible build</li>
</ul>
<br>
<br>
<!-- <p class="fragment grow"> but ...</p> -->
<h4 class="fragment">but ... </h4>
</section>
<section>
<ul>
<li>Scaling up and down</li>
<li>Redundancy</li>
<li>Scheduling / Orchestration</li>
<li>Service Discovery</li>
<li>Resiliency</li>
<li>Rolling out and back</li>
<li>Health checks</li>
<li>Secret and config</li>
</ul>
<br>
<p class="fragment">➡️ kubernetes <h4 class="fragment">but ... </h4></p>
</section>
<section>
<h3>8 fallacies of distributed computing</h3>
<div style="display: grid; grid-template-columns: 1fr 1fr; font-size: smaller">
<ol>
<li class="fragment highlight-blue">The network is reliable.</li>
<li>Latency is zero.</li>
<li>Bandwidth is infinite.</li>
<li>The network is secure.</li>
</ol>
<ol start="5">
<li>Topology doesn't change.</li>
<li>There is one administrator.</li>
<li>Transport cost is zero.</li>
<li>The network is homogeneous.</li>
</ol>
</div>
<br />
<span >
<a href="https://en.wikipedia.org/wiki/Fallacies_of_distributed_computing">source (wikipedia)</a>
<br />
<a href="https://tools.ietf.org/html/rfc1925">RFC 1925 - 22 years old and still relevant</a>
</span>
</section>
<section>
<ul>
<li>Logging</li>
<li>Tracing</li>
<li>Metrics</li>
<li>Dependency visualisation</li>
<li>Service identity and Auth</li>
<li>Circuit breaking</li>
<li>Traffic flow and policies</li>
<li>Failover</li>
<li>Fault injection</li>
<li>...</li>
</ul>
<br>
<br>
<h4 class="fragment">➡️ ️ use code?</h4>
</section>
<section>
<h3>drawbacks</h3>
<ul>
<li>combination language/framework/version/feature</li>
<li>maintain, upgrade, migrate, retire</li>
<li>code pollution and complexity (+ testing)</li>
<li>deployment / rolling update</li>
<li>language/framework/version lock-in</li>
<li>debugging</li>
</ul>
<br>
<br>
<h4 class="fragment">➡️ ️ move it to the infrastructure</h4>
</section>
<section id="envoyproxy">
<h3>Data plane</h3>
<img width="50%" src="envoyproxy.png" alt="envoy proxy">
<blockquote style="width: 100%">
The network should be transparent to applications.
<br>
When network and application problems do occur it should be easy to determine the source of the problem.
</blockquote>
<h4>demo</h4>
</section>
<section id="arch1">
<!-- <h4>How does it solve inter service communication</h4> -->
<img style="height: 50vh;filter: invert(.9) brightness(1.4);"
alt="The overall architecture of an Istio-based application."
src="https://istio.io/docs/concepts/what-is-istio/arch.svg" title="Istio Architecture">
<h4 class="fragment" >How to manage a fleet of envoy proxy?</h4>
</section>
<section>
<h2>Service Mesh</h2>
<div style="display: grid; grid-template-columns: repeat(4, 1fr)">
<div style="background-color: #eee8d5; border: 1px solid black; color: black">
<svg viewBox="0 0 1200 900" class="landing-image" data-name="expanded art"><defs><style>.cls-1,.cls-2,.cls-3,.cls-4{fill:none;stroke-miterlimit:10}.cls-1{stroke:#000}.cls-1,.cls-3,.cls-4{stroke-width:10px}.cls-2{stroke-width:30px}.cls-3{stroke:#64c489}.cls-4{stroke:#476baf}.cls-5{fill:#476baf}.cls-6{fill:#64c489}</style></defs><g><g><circle cx="149.5" cy="149.5" r="50"></circle><circle cx="149.5" cy="750.5" r="50"></circle><polygon points="240 120 210 150 240 180 240 120"></polygon><polygon points="240 720 210 750 240 780 240 720"></polygon></g><g><path d="M250,150c200,0,500,300,700,300" class="cls-1"></path><path d="M250,750c200,0,499-300,700-300" class="cls-1"></path><line class="cls-1" x1="250" x2="950" y1="750" y2="750"></line><line class="cls-1" x1="250" x2="950" y1="150" y2="150"></line></g></g><g><g><g><path d="M950,150c-200,0-500,300-700,300" class="cls-2"></path><path d="M950,750c-200,0-499-300-700-300" class="cls-2"></path><line class="cls-2" x1="250" x2="950" y1="450" y2="450"></line></g><g><line class="cls-3" x1="340" x2="950" y1="450" y2="450"></line><path d="M950,150c-200,0-500,300-700,300" class="cls-4"></path><path d="M950,750c-200,0-499-300-700-300" class="cls-4"></path></g></g><g><circle cx="149.5" cy="449.5" r="50" class="cls-5"></circle><circle cx="1050.5" cy="149.5" r="50" class="cls-5"></circle><circle cx="1050.5" cy="750.5" r="50" class="cls-5"></circle><circle cx="1050.5" cy="449.5" r="50" class="cls-6"></circle><polygon points="240 420 210 450 240 480 240 420" class="cls-5"></polygon><polygon points="960 480 990 450 960 420 960 480" class="cls-6"></polygon><polygon points="960 180 990 150 960 120 960 180" class="cls-5"></polygon><polygon points="960 780 990 750 960 720 960 780" class="cls-5"></polygon></g></g></svg>
<p>CONNECT</p>
</div>
<div style="background-color: #eee8d5; border: 1px solid black; color: black">
<svg viewBox="0 0 1200 900" class="landing-image" data-name="expanded art"><defs><style>.r-1,.r-3,.r-4{fill:none;stroke-miterlimit:10;stroke-width:10px}.r-1{stroke:#000}.r-2{fill:#476baf}.r-3{stroke:#64c489}.r-4{stroke:#476baf}</style></defs><g><g><polygon points="100 277.57 100 320 142.43 320 100 277.57"></polygon><polygon points="210 587.57 210 630 252.43 630 210 587.57"></polygon><polygon points="890.5 329.07 890.5 371.5 932.93 371.5 890.5 329.07"></polygon></g><path d="M100,795c84.32-10.77,165-40.47,241.15-77.37C476.51,652,603.47,561.86,751.25,525.42c117.73-29,287.93-22.63,349.46,102,2.07,4.19,3.6,8.49,5.42,12.77l-6.64,3.86c-36.75-34.34-82.24-55.82-131.45-65.17-53.63-10.2-108.94-7-162.24,3.64-50.57,10.12-99.64,26.81-147.29,46.36C574.75,663.27,494.88,706.24,411.75,742c-82,35.28-168.81,63.89-258.89,65.28A468,468,0,0,1,95,804.45v-8.86C96.67,795.4,98.33,795.19,100,795Z"></path></g><g><path d="M100,650s57.21,62.93,150,93.6" class="r-1"></path><g><line class="r-1" x1="129.95" x2="320.87" y1="290.92" y2="100"></line><line class="r-1" x1="700" x2="741.13" y1="141.13" y2="100"></line><line class="r-1" x1="240" x2="590" y1="600" y2="251.1"></line><line class="r-1" x1="920" x2="1100" y1="340.13" y2="159.13"></line></g></g><g><g><polygon points="560.21 510.56 682.41 461.91 630.82 237.77 560.21 510.56" class="r-2"></polygon><polygon points="692.15 459.66 872.05 438.78 604.68 79.6 692.15 459.66" class="r-2"></polygon><path d="M714.75,524.54c16.31-5,32.76-9.5,49.56-13.38l110-62.63L562.45,520.3l97,23.49C677.6,536.77,696,530.3,714.75,524.54Z" class="r-2"></path></g><g><polygon points="296 282.57 296 325 338.43 325 296 282.57" class="r-2"></polygon><polygon points="450.5 557.07 450.5 599.5 492.93 599.5 450.5 557.07" class="r-2"></polygon></g></g><g><path d="M477,800c100-30,211-101.14,330-124,250-48,293,102,293,102" class="r-3"></path><g><line class="r-3" x1="100.43" x2="240.87" y1="520.43" y2="380"></line><line class="r-4" x1="325.5" x2="520" y1="294.5" y2="100"></line><line class="r-3" x1="800.13" x2="950.02" y1="249.13" y2="100"></line><line class="r-4" x1="481" x2="520.33" y1="569" y2="530.33"></line><line class="r-4" x1="1004.63" x2="1099.51" y1="474.63" y2="379.51"></line></g></g></svg>
<p>SECURE</p>
</div>
<div style="background-color: #eee8d5; border: 1px solid black; color: black">
<svg viewBox="0 0 1200 900" class="landing-image" data-name="expanded art"><defs><style>.p-1{fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:10px}.p-2{fill:#476baf}.p-3{fill:#64c489}</style></defs><polygon points="390 480 420 450 390 420 390 480"></polygon><line class="p-1" x1="380" x2="100" y1="450" y2="450"></line><path d="M380,580c-110,0-180,220-280,220" class="p-1"></path><polygon points="1070 480 1100 450 1070 420 1070 480"></polygon><line class="p-1" x1="790" x2="1060" y1="450" y2="450"></line><g><line class="p-1" x1="790" x2="1060" y1="320" y2="320"></line><line class="p-1" x1="790" x2="1060" y1="580" y2="580"></line></g><polygon points="1069 610 1099 580 1069 550 1069 610"></polygon><g><polygon points="390 610 420 580 390 550 390 610"></polygon><polygon points="390 350 420 320 390 290 390 350"></polygon></g><path d="M380,320c-110,0-180-219.46-280-219.46" class="p-1"></path><polygon points="1069.5 350 1099.5 320 1069.5 290 1069.5 350"></polygon><g><path d="M455.37,455v72.52c0,85.52,114.17,133,139.63,142.57V455Z"></path><path d="M595,445V202.77L455.37,280V445Z" class="p-2"></path></g><g><path d="M744.6,445c0-82.16-.1-165.19-.1-165.19L605,202.76V445Z"></path><path d="M605,455V670.09c25.46-9.53,139.63-57.05,139.63-142.57v-.26c0-22,0-46.94,0-72.26Z" class="p-3"></path></g></svg>
<p>CONTROL</p>
</div>
<div style="background-color: #eee8d5; border: 1px solid black; color: black">
<svg viewBox="0 0 1200 900" class="landing-image" data-name="expanded art" id="expanded_art"><defs><style>.m-1{fill:#476baf}.m-2,.m-3,.m-4,.m-6{fill:none;stroke-miterlimit:10}.m-2{stroke:#000}.m-2,.m-4,.m-6{stroke-width:10px}.m-3{stroke-width:30px}.m-4{stroke:#64c489}.m-5{fill:#64c489}.m-6{stroke:#476baf}</style></defs><path d="M666.46,512.46c-105.09,105.1-221,171.4-299.72,208.52C314,745.86,261.91,765.12,214.26,777.75A202,202,0,0,0,254,747l1.46-1.45c85.64-80.87,146-107.14,222.5-140.39,52.38-22.79,112.8-49.07,194.31-98.42Q669.35,509.59,666.46,512.46Z" class="m-1"></path><path d="M1103,300c-280,0-183,120-513,186S340,800,100,800" class="m-2"></path><path d="M1103,160c-137,0-136.65,130.87-263,226C500,642,432,572,252,742" class="m-2"></path><path d="M250.49,743.49C216.2,777.16,172.84,800,100,800" class="m-2"></path><path d="M100,800c137,0,390-104,570-284s430-77,430-77" class="m-2"></path><path d="M474.34,668.6C695.34,535.6,817,439,1100,439" class="m-2"></path><g><line class="m-3" x1="830" x2="830" y1="100" y2="800"></line><line class="m-4" x1="830" x2="830" y1="100" y2="800"></line></g><g><g><ellipse cx="150" cy="148.55" rx="50" ry="50.47"></ellipse><polygon points="391.65 171.25 355.69 193.98 378.21 230.28 391.65 171.25"></polygon><polygon points="215.97 289.64 179.56 267.66 157.79 304.41 215.97 289.64"></polygon></g><g><circle cx="220" cy="430" r="50" class="m-5"></circle><circle cx="635" cy="256" r="50" class="m-1"></circle><polygon points="424.37 376.1 441.35 337.22 402.47 320.24 424.37 376.1" class="m-1"></polygon></g><g><line class="m-6" x1="404.19" x2="276.07" y1="352.78" y2="406.49"></line><line class="m-6" x1="578.89" x2="448.03" y1="279.53" y2="334.39"></line></g><g><g><line class="m-2" x1="177.73" x2="164.55" y1="260.9" y2="208.2"></line><line class="m-2" x1="205.37" x2="189.22" y1="371.49" y2="306.86"></line></g><g><line class="m-2" x1="394.71" x2="576.12" y1="203.48" y2="243.13"></line><line class="m-2" x1="208.7" x2="347.94" y1="162.83" y2="193.26"></line></g></g></g></svg>
<p>OBSERVE</p>
</div>
<br>
<div style="grid-column: span 4;"><a href="http://istio.io">source: istio.io</a></div>
</div>
<p ><a href="https://www.youtube.com/watch?v=WnmzEM52_tQ">VIDEO: Istio a la carte by Dan Ciruli</a></p>
</section>
<section data-transition='concave'>
<h4>What is a service mesh</h4>
<h3>What problems does it solve</h3>
<br/>
<h2 class="fragment">Communication between services</h2>
<br/>
<p class="fragment" style="font-style: italic">A network for services, not bytes</p>
</section>
<section id="arch2">
<h4>How does it solve inter service communication</h4>
<img style="height: 60vh;filter: invert(.9) brightness(1.4);"
alt="The overall architecture of an Istio-based application."
src="https://istio.io/docs/concepts/what-is-istio/arch.svg" title="Istio Architecture">
</section>
<section id="osi-layers">
<img style="filter: invert(.9) brightness(1.4);" height="521" width="1024"
src="https://f5.com/Portals/1/Users/038/38/38/the_new_new_osi_stack.jpg?ver=2017-10-03-080252-023" >
<a href="https://f5.com/about-us/blog/articles/the-new-osi-network-stack-containers-and-half-layers-28124">source</a>
</section>
<section id="pilot">
<h3>Control plane</h3>
<img style="height: 50vh;filter: invert(.9) brightness(1.4);"
src="https://istio.io/docs/concepts/traffic-management/PilotAdapters.svg"
alt="pilot arch">
<!-- <p>How to manage a fleet of envoy proxy?</p> -->
</section>
<section>
<h4>What's in the code</h4>
<pre><code class="python hljs" style="word-wrap: break-word;" data-trim>
servicesDomain = "" if (os.environ.get("SERVICES_DOMAIN") == None) else "." + os.environ.get("SERVICES_DOMAIN")
details = {
"name" : "http://details{0}:9080".format(servicesDomain),
"endpoint" : "details",
"children" : []
}
ratings = {
"name" : "http://ratings{0}:9080".format(servicesDomain),
"endpoint" : "ratings",
"children" : []
}
</code></pre>
<a href="https://github.com/istio/istio/blob/master/samples/bookinfo/src/productpage/productpage.py#L53">source code</a>
</section>
<section data-transition='concave' id="routing">
<h4>Traffic Management</h4>
<pre>
<code class="yaml hljs" style="word-wrap: break-word; font-size: 0.75em; line-height: 1em" data-trim>
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews
...
spec:
hosts:
- reviews
http:
- match:
- headers:
end-user:
exact: jason
route:
- destination:
host: reviews
subset: v2
- route:
- destination:
host: reviews
subset: v1
</code></pre>
</section>
<section data-transition='concave' id="resiliency">
<h4>Resiliency</h4>
<pre><code class="yaml hljs" style="word-wrap: break-word;" data-trim>
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v2
retries:
attempts: 3
perTryTimeout: 2s
</code></pre>
</section>
<section id="Security">
<h2>Security</h2>
<ul>
<li>namespace-level and service-level policies</li>
<li>mutual TLS Authentication</li>
<li>role-based access control (RBAC)</li>
</ul>
</section>
<section>
<h2>Observability</h2>
<ul>
<li>Metrics (prometheus)</li>
<li>Logs (fluentd)</li>
<li>Tracing (jaeger)</li>
<li>Cluster traffic (kiali)</li>
</ul>
</section>
<section>
<h1>DEMO</h1>
<img style="filter: invert(.9) brightness(1.4);"
src="https://istio.io/docs/examples/bookinfo/withistio.svg"
alt="Bookinfo Application without Istio" title="Bookinfo Application without Istio">
</section>
<section>
<h2>QUESTIONS about service mesh</h2>
<p>List of service meshes</p>
<ul>
<li><a href="https://github.com/istio/istio">Istio</a></li>
<li><a href="https://github.com/envoyproxy/envoy">Envoy</a></li>
<li><a href="https://github.com/linkerd/linkerd2">Conduit/Linkerd2</a></li>
<li><a href="https://github.com/linkerd/linkerd">Linkerd</a></li>
<li><a href="https://github.com/hashicorp/consul">Consul</a></li>
<li><a href="https://github.com/weaveworks/mesh">Weave mesh</a></li>
</ul>
<p><a href="https://www.consul.io/intro/vs/istio.html">Comparison: Consult vs Istio</a></p>
</section>
<!--
*******************************************************************************************
-->
<section>
<h1>CHAOS ENGINEERING</h1>
</section>
<section>
<blockquote>
<p lang="en" dir="ltr">Chaos Engineering is the discipline of experimenting on a distributed system in order to build confidence
in the system’s capability to withstand turbulent conditions in production.</p>
— <a href="https://principlesofchaos.org/">principlesofchaos.org</a>
</blockquote>
</section>
<section>
<blockquote>
<p>Thoughtful, planned experiments designed to reveal the weakness in our systems. </p>
— <a href="https://www.gremlin.com/">Kolton Andrus (cofounder and CEO of Gremlin Inc.)</a>
</blockquote>
<img src="https://media.science360.gov/files/story/cbb08900-d237-40a5-be17-307532b53688-largeImage.jpg" width="350px" />
</section>
<section>
<blockquote>
<p lang="en" dir="ltr">Chaos Engineering isn't done to cause problems; it is done to reveal them.</p>
— <a href="https://twitter.com/allspaw/status/1030226933248798720">Nora Jones (Netflix)</a>
</blockquote>
</section>
<section>
<h4>What Chaos Engineering is not</h4>
<img src="https://randomoverload.org/wp-content/uploads/2015/10/1abaS6RB77Z.jpg" alt="pray to server">
</section>
<section>
<h1>Hope is not a strategy</h1>
</section>
<section>
<h2>Usually untested</h2>
<ol>
<li>Graceful shutdown</li>
<li>Health check</li>
<li>Cascading timeouts</li>
<li>Deployments (smoke test)</li>
<li>...</li>
</ol>
</section>
<section>
<h2>Type of errors</h2>
<ul>
<li>Unreachable</li>
<li>Delays</li>
<li>Timeout cascading</li>
<li>Circuit breaker</li>
<li>Migration</li>
<li>...</li>
</ul>
</section>
<section>
<h2>Site Reliability Engineering</h2>
<ul>
<li>Identify weaknesses</li>
<li>Improve resiliency</li>
<li>
<a href="https://landing.google.com/sre/book/chapters/service-level-objectives.html">SLI, SLO, SLA</a>
<!--
These measurements describe basic properties of metrics that matter,
what values we want those metrics to have,
and how we’ll react if we can’t provide the expected service -->
</li>
</ul>
</section>
<section>
<h2>Gameday</h2>
<p>What happens when ________ ? [fill in the blank]</p>
<p>example: <a href="https://www.gremlin.com/community/tutorials/gremlin-gameday-breaking-dynamodb/">Breaking DynamoDB</a></p>
</section>
<section>
<h2>Organization failures</h2>
<h4>Expect failure and learn from it</h4>
<ul>
<li>High Severity Incident Management Program</li>
<li>If you don't learn from it, it will happen again!</li>
<li>Practice: It's a cultural approach to failure</li>
<li>Publish reports (RCA) and results</li>
</ul>
<p><a href="https://www.gremlin.com/community/tutorials/how-to-establish-a-high-severity-incident-management-program/">source</a></p>
</section>
<section>
<h2>Kaizen (改善)</h2>
<p> kai-zen = change-good</p>
<img src="https://image.slidesharecdn.com/om-150830140656-lva1-app6892/95/the-toyota-way-toyota-production-system-operations-management-27-638.jpg" alt="Toyota andon cord">
<p>
<a href="https://web.archive.org/web/20131029204446/http://www.kaizen.com/about-us/definition-of-kaizen.html">definition</a>
</p>
</section>
<section>
<h2>Word of caution</h2>
<p>
<i>"Chaos"</i>: sounds cool and fun for you.
<br>
<i>"Resiliency"</i>: sounds great for your manager and the system.
</p>
<h4>
Results of Chaos Engineering = resiliency
</h4>
<p>
<br>
Article: <a href="https://www.linkedin.com/pulse/would-chaos-any-othername-casey-rosenthal/">Would a Chaos by any other Name</a>
</p>
<p>Book: <a href="https://www.amazon.co.uk/Resilience-Engineering-Practice-Guidebook-Ashgate/dp/1472420748/ref=sr_1_2">Resilience Engineering in Practice</a></p>
</section>
<section>
<h2><span style="text-decoration: underline">Chaos</span> is in the system already</h2>
<br>
<h2>Chaos engineering <span style="text-decoration: underline">exposes</span> it</p>
</section>
<section>
<h2>How to start Chaos Engineering</h2>
<ol>
<li>Don't mention "Chaos" yet - talk about goals</li>
<li>Set up monitoring !!!</li>
<li>Identify a measurable output for "steady state"</li>
<li>Form a hypothesis</li>
<li>Simulate real-world events</li>
<li>Disprove your hypothesis</li>
<li>Write a report with findings and mesurements</li>
<li>Talk about the "Chaos" experiment</li>
<li>Practice and improve</li>
</ol>
</section>
<section>
<h1>DEMO</h1>
<img style="filter: invert(.9) brightness(1.2);" height="300px" src="https://istio.io/docs/examples/bookinfo/withistio.svg" alt="Bookinfo Application without Istio" title="Bookinfo Application without Istio">
<p>Inject delay in user Jason's requests</p>
</section>
<section id="resources">
<h2>Resources</h2>
<small>
<ul>
<li><a href="https://blog.buoyant.io/2017/04/25/whats-a-service-mesh-and-why-do-i-need-one/">What's a service mesh</a></li>
<li><a href="https://landing.google.com/sre/book/index.html">SRE book</a></li>
<li><a href="https://www.youtube.com/watch?v=tEylFyxbDLE">SLI, SLO, SLA</a> </li>
<li><a href="https://www.microservices.com/talks/lyfts-envoy-monolith-service-mesh-matt-klein/">[Talk] Lyft's envoy</a></li>
<li><a href="https://blog.sebastian-daschner.com/entries/istio-networking-api-explained">Istio Networking Api explained (Video)</a></li>
<li><a href="https://www.gremlin.com/blog/">Gremlin Blog</a></li>
<li><a href="https://www.techrepublic.com/article/chaos-engineering-a-cheat-sheet/">Chaos Engineering Cheat sheet</a></li>
<li><a href="https://www.infoq.com/presentations/chaos-engineering-resilient-systems">[Talk] Chaos Engineering: Why the World Needs More Resilient Systems</a></li>
<li><a href="https://www.oreilly.com/webops-perf/free/chaos-engineering.csp">Chaos Engineering Book</a></li>
<li><a href="https://www.gremlin.com/community/tutorials/chaos-engineering-the-history-principles-and-practice/">Chaos Engineering: the history, principles, and practice</a></li>
<li><a href="https://github.com/dastergon/awesome-chaos-engineering">⭐️ Awesome Chaos Engineering</a></li>
<li><a href="https://www.infoq.com/presentations/adopt-chaos-engineering">[Talk] Choose Your Own Adventure: Chaos Engineering</a></li>
<li><a href="https://www.linkedin.com/pulse/would-chaos-any-othername-casey-rosenthal/">Would a Chaos by any other Name</a></li>
</ul>
</small>
</section>
<section>
<h2>THANK YOU</h2>
<p>
<small>
<a style='font-weight:bold;color:deepskyblue;' href='http://github.com/veggiemonk'>Github: @veggiemonk</a>
<br/>
<a style='font-weight:bold;color:deepskyblue;' href='https://twitter.com/veggiemonk'>Twitter: @veggiemonk</a>
<br/>
<a style='font-weight:bold;color:deepskyblue;' href='https://www.linkedin.com/in/julienbisconti/'>LinkedIn: julienbisconti</a>
<br />
<a style='font-weight:bold;color:deepskyblue;' href="https://veggiemonk.github.io/">blog: https://veggiemonk.github.io/</a>
<br />
<a style='font-weight:bold;color:deepskyblue;' href="https://www.slideshare.net/julienbisconti">slides: https://www.slideshare.net/julienbisconti</a>
</small>
</p>
<br/>
<p>Slides made with Reveal.js</p>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
history: true,
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function () { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>