Slide 1

Slide 1 text

cloud chaos and microservices mayhem Holly Cummins Red Hat @holly_cummins OOP Virtual

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

#RedHat @holly_cummins things you need to do well in 2023:

Slide 5

Slide 5 text

#RedHat @holly_cummins handwashing (still) things you need to do well in 2023:

Slide 6

Slide 6 text

#RedHat @holly_cummins handwashing (still) apps things you need to do well in 2023:

Slide 7

Slide 7 text

#RedHat @holly_cummins handwashing (still) apps ops things you need to do well in 2023:

Slide 8

Slide 8 text

#RedHat @holly_cummins handwashing (still) apps ops devops things you need to do well in 2023:

Slide 9

Slide 9 text

#RedHat @holly_cummins handwashing (still) apps ops devops devsecops things you need to do well in 2023:

Slide 10

Slide 10 text

#RedHat @holly_cummins handwashing (still) apps ops devops devsecops finops things you need to do well in 2023:

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

#RedHat @holly_cummins a few

Slide 14

Slide 14 text

#RedHat @holly_cummins

Slide 15

Slide 15 text

#RedHat @holly_cummins technology changes fast (duh)

Slide 16

Slide 16 text

#RedHat @holly_cummins technology changes fast (duh) … but it’s taking us a while to catch up to cloud

Slide 17

Slide 17 text

#RedHat @holly_cummins technology changes fast (duh) … but it’s taking us a while to catch up to cloud

Slide 18

Slide 18 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins tracing

Slide 19

Slide 19 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins observability

Slide 20

Slide 20 text

#RedHat @holly_cummins hardware old way logs

Slide 21

Slide 21 text

#RedHat @holly_cummins hardware old way cloud way logs container logs

Slide 22

Slide 22 text

#RedHat @holly_cummins hardware old way cloud way logs logs

Slide 23

Slide 23 text

#RedHat @holly_cummins hardware old way cloud way logs oops

Slide 24

Slide 24 text

#RedHat @holly_cummins hardware old way cloud way logs container logs

Slide 25

Slide 25 text

#RedHat @holly_cummins hardware old way cloud way logs container logs

Slide 26

Slide 26 text

#RedHat @holly_cummins hardware old way cloud way logs logs

Slide 27

Slide 27 text

#RedHat @holly_cummins hardware old way cloud way logs logs container logs container logs container logs container logs

Slide 28

Slide 28 text

#RedHat @holly_cummins hardware old way cloud way logs logs container logs container logs container logs container logs

Slide 29

Slide 29 text

#RedHat @holly_cummins hardware old way cloud way logs logs container logs container logs container logs container logs aggregation + correlation

Slide 30

Slide 30 text

#RedHat @holly_cummins hardware old way cloud way logs logs container logs container logs container logs container logs aggregation + correlation open telemetry (open tracing)

Slide 31

Slide 31 text

#RedHat @holly_cummins

Slide 32

Slide 32 text

#RedHat @holly_cummins good news: observability is ‘fixed’

Slide 33

Slide 33 text

#RedHat @holly_cummins good news: observability is ‘fixed’ bad news: not all of us are using it

Slide 34

Slide 34 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins performance requirements

Slide 35

Slide 35 text

#RedHat @holly_cummins memory footprint is money startup time is money

Slide 36

Slide 36 text

#RedHat @holly_cummins all that dynamism we worked so hard is (now) a bad idea

Slide 37

Slide 37 text

#RedHat @holly_cummins ahead of time optimisation is (now) a good idea

Slide 38

Slide 38 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins performance optimisation

Slide 39

Slide 39 text

#RedHat @holly_cummins

Slide 40

Slide 40 text

#RedHat @holly_cummins garbage collection and microservices

Slide 41

Slide 41 text

#RedHat @holly_cummins garbage collection and microservices

Slide 42

Slide 42 text

#RedHat @holly_cummins garbage collection and microservices

Slide 43

Slide 43 text

#RedHat @holly_cummins garbage collection and microservices

Slide 44

Slide 44 text

#RedHat @holly_cummins garbage collection and microservices if you chain 100 microservices together, you are almost guaranteed a GC pause

Slide 45

Slide 45 text

#RedHat @holly_cummins

Slide 46

Slide 46 text

#RedHat @holly_cummins

Slide 47

Slide 47 text

#RedHat @holly_cummins the JVM tunes itself differently on servers

Slide 48

Slide 48 text

#RedHat @holly_cummins the JVM tunes itself differently on servers … but what’s a server?

Slide 49

Slide 49 text

#RedHat @holly_cummins answer(ish):

Slide 50

Slide 50 text

#RedHat @holly_cummins // This is the working definition of a server class machine: // >= 2 physical CPU's and >=2GB of memory answer(ish): actual hotspot source code

Slide 51

Slide 51 text

#RedHat @holly_cummins

Slide 52

Slide 52 text

#RedHat @holly_cummins takeaway: don’t shrink your containers too much or your JVM will make bad decisions advice accurate as of June 2022. all performance advice should be independently verified. do not try this at home without testing first. your mileage may vary.

Slide 53

Slide 53 text

#RedHat @holly_cummins wait, isn’t that the opposite of the advice in the previous section? should my containers be big or small?

Slide 54

Slide 54 text

#RedHat @holly_cummins this is the chaos part :) wait, isn’t that the opposite of the advice in the previous section? should my containers be big or small?

Slide 55

Slide 55 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins management

Slide 56

Slide 56 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins keeping track of hardware

Slide 57

Slide 57 text

#RedHat @holly_cummins The cloud makes it so easy to provision hardware.

Slide 58

Slide 58 text

#RedHat @holly_cummins That doesn’t mean the hardware is free.

Slide 59

Slide 59 text

#RedHat @holly_cummins That doesn’t mean the hardware is free.

Slide 60

Slide 60 text

#RedHat @holly_cummins That doesn’t mean the hardware is free. Or useful.

Slide 61

Slide 61 text

#RedHat @holly_cummins That doesn’t mean the hardware is free. Or useful. Or shuts itself off.

Slide 62

Slide 62 text

#RedHat @holly_cummins Hey boss, I created a Kubernetes cluster.

Slide 63

Slide 63 text

#RedHat @holly_cummins Hey boss, I created a Kubernetes cluster. I forgot it for 2 months.

Slide 64

Slide 64 text

#RedHat @holly_cummins Hey boss, I created a Kubernetes cluster. I forgot it for 2 months. … and it’s €1000 a month.

Slide 65

Slide 65 text

Photo by daveynin, flickr

Slide 66

Slide 66 text

#RedHat @holly_cummins 2017 survey 25% of 16,000 servers doing no useful work

Slide 67

Slide 67 text

#RedHat @holly_cummins 2017 survey 25% of 16,000 servers doing no useful work “perhaps someone forgot to turn them off”

Slide 68

Slide 68 text

#RedHat @holly_cummins finops figuring out who in your company forgot to turn off their cloud

Slide 69

Slide 69 text

#RedHat @holly_cummins companies that went out of business for cloud cost accidents

Slide 70

Slide 70 text

@holly_cummins #RedHat

Slide 71

Slide 71 text

#RedHat @holly_cummins (See Troy tomorrow at GOTO !)

Slide 72

Slide 72 text

#RedHat @holly_cummins (See Troy tomorrow at GOTO !)

Slide 73

Slide 73 text

#RedHat @holly_cummins $11,448.30 (See Troy tomorrow at GOTO !)

Slide 74

Slide 74 text

#RedHat @holly_cummins “I did find a setting on your plan that set the max cacheable file size to 15GB and it looks like your zipfile is 18GB big” $11,448.30 (See Troy tomorrow at GOTO !)

Slide 75

Slide 75 text

#RedHat @holly_cummins

Slide 76

Slide 76 text

#RedHat @holly_cummins maybe this is the chaos part

Slide 77

Slide 77 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins releasing

Slide 78

Slide 78 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins releasing

Slide 79

Slide 79 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins microservices

Slide 80

Slide 80 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins microservices

Slide 81

Slide 81 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins

Slide 82

Slide 82 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins “we’re moving too slowly.

Slide 83

Slide 83 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins “we’re moving too slowly. we should modernise our COBOL application into microservices.

Slide 84

Slide 84 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins “we’re moving too slowly. we should modernise our COBOL application into microservices. … but our release board only meets twice a year.”

Slide 85

Slide 85 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins modularity

Slide 86

Slide 86 text

#RedHat @holly_cummins microservices are not the goal

Slide 87

Slide 87 text

#RedHat @holly_cummins microservices are not the goal they are the means

Slide 88

Slide 88 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins wishful mimicry

Slide 89

Slide 89 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins cloud != microservices

Slide 90

Slide 90 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins cloud native != microservices

Slide 91

Slide 91 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins “every time we touch one microservice, all the others break.”

Slide 92

Slide 92 text

#RedHat @holly_cummins distributed monolith

Slide 93

Slide 93 text

#RedHat @holly_cummins distributed monolith but without compile-time checking … or guaranteed function execution

Slide 94

Slide 94 text

#RedHat @holly_cummins distributed monolith but without compile-time checking … or guaranteed function execution

Slide 95

Slide 95 text

#RedHat @holly_cummins distributed monolith but without compile-time checking … or guaranteed function execution

Slide 96

Slide 96 text

#RedHat @holly_cummins distributed monolith but without compile-time checking … or guaranteed function execution

Slide 97

Slide 97 text

#RedHat @holly_cummins “each of our microservices has duplicated the same object model … with twenty classes and seventy fields”

Slide 98

Slide 98 text

#RedHat @holly_cummins Microservice Domain

Slide 99

Slide 99 text

#RedHat @holly_cummins Microservice Domain

Slide 100

Slide 100 text

#RedHat @holly_cummins Microservice Domain (this is bad)

Slide 101

Slide 101 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins distributed != decoupled

Slide 102

Slide 102 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins “ohhhh, we weren’t expecting your service to do that … “

Slide 103

Slide 103 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins “uh, what do you mean you corrected the typo in your json?”

Slide 104

Slide 104 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins If you’re going to do microservices, you need to get good at automation. And testing.

Slide 105

Slide 105 text

IBM Cloud © 2020 IBM Corporation

Slide 106

Slide 106 text

IBM Cloud © 2020 IBM Corporation the test pyramid

Slide 107

Slide 107 text

IBM Cloud © 2020 IBM Corporation the test pyramid end-to-end tests

Slide 108

Slide 108 text

IBM Cloud © 2020 IBM Corporation the test pyramid end-to-end tests unit tests

Slide 109

Slide 109 text

IBM Cloud © 2020 IBM Corporation the test pyramid end-to-end tests unit tests contract tests

Slide 110

Slide 110 text

IBM Cloud © 2020 IBM Corporation the test pyramid (you can TDD at every level!) end-to-end tests unit tests contract tests

Slide 111

Slide 111 text

#RedHat @holly_cummins How to test a fire alarm?

Slide 112

Slide 112 text

IBM Cloud © 2020 IBM Corporation how not to test a fire alarm

Slide 113

Slide 113 text

IBM Cloud © 2020 IBM Corporation how not to test a fire alarm

Slide 114

Slide 114 text

#RedHat @holly_cummins

Slide 115

Slide 115 text

#RedHat @holly_cummins unit testing a fire alarm

Slide 116

Slide 116 text

#RedHat @holly_cummins uh … is that enough?

Slide 117

Slide 117 text

#RedHat @holly_cummins contract testing a fire alarm

Slide 118

Slide 118 text

#RedHat @holly_cummins contract testing a fire alarm

Slide 119

Slide 119 text

@holly_cummins to the code!

Slide 120

Slide 120 text

@holly_cummins #RedHat cold person knitter sheep farmer demo recap:

Slide 121

Slide 121 text

@holly_cummins #RedHat cold person knitter sheep farmer “white sweater, please” demo recap:

Slide 122

Slide 122 text

@holly_cummins #RedHat cold person knitter sheep farmer “white sweater, please” demo recap:

Slide 123

Slide 123 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” demo recap:

Slide 124

Slide 124 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” white wool demo recap:

Slide 125

Slide 125 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” white wool demo recap:

Slide 126

Slide 126 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” white wool demo recap:

Slide 127

Slide 127 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” white wool black sweater demo recap:

Slide 128

Slide 128 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” white wool black sweater black wool demo recap:

Slide 129

Slide 129 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool demo recap:

Slide 130

Slide 130 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool demo recap:

Slide 131

Slide 131 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool pink sweater demo recap:

Slide 132

Slide 132 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool pink sweater pink wool demo recap:

Slide 133

Slide 133 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool pink sweater pink wool what?! pink sheep don’t exist demo recap:

Slide 134

Slide 134 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool pink sweater pink wool should the knitter ask for white wool and bring in a dyeing service? what?! pink sheep don’t exist demo recap:

Slide 135

Slide 135 text

@holly_cummins #RedHat cold person white sweater knitter sheep farmer “white sweater, please” “black sweater, please” “pink sweater, please” white wool black sweater black wool pink sweater pink wool should the knitter ask for white wool and bring in a dyeing service? should the farmer dye the wool? what?! pink sheep don’t exist demo recap:

Slide 136

Slide 136 text

@holly_cummins #RedHat Photo of sheep at the Latitude Festival by Tim Parkinson, https://www.flickr.com/photos/timparkinson

Slide 137

Slide 137 text

@holly_cummins #RedHat Photo of sheep at the Latitude Festival by Tim Parkinson, https://www.flickr.com/photos/timparkinson “pink sheep don’t exist”

Slide 138

Slide 138 text

#RedHat @holly_cummins demo resources: https://github.com/holly-cummins/pact-quarkus-sweater-demo

Slide 139

Slide 139 text

#RedHat @holly_cummins demo recap: • consumer-driven contract testing can help avoid disaster • pact is a mock for the consumer • pact is a functional test for the producer • shared json contracts aligns expectations across services

Slide 140

Slide 140 text

#RedHat @holly_cummins so … don’t assume cloud is a solved problem don’t assume microservices will solve all your problems contract testing may solve some of your problems

Slide 141

Slide 141 text

@holly_cummins slides