Slide 1

Slide 1 text

cloud chaos and microservices mayhem Holly Cummins Red Hat @holly_cummins Voxxed Athens

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 2022:

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

#RedHat @holly_cummins handwashing apps things you need to do well in 2022:

Slide 7

Slide 7 text

#RedHat @holly_cummins handwashing apps ops things you need to do well in 2022:

Slide 8

Slide 8 text

#RedHat @holly_cummins handwashing apps ops devops things you need to do well in 2022:

Slide 9

Slide 9 text

#RedHat @holly_cummins handwashing apps ops devops devsecops things you need to do well in 2022:

Slide 10

Slide 10 text

#RedHat @holly_cummins handwashing apps ops devops devsecops finops things you need to do well in 2022:

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 ahead of time compilation is (now) a good idea

Slide 37

Slide 37 text

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

Slide 38

Slide 38 text

#RedHat @holly_cummins

Slide 39

Slide 39 text

#RedHat @holly_cummins

Slide 40

Slide 40 text

#RedHat @holly_cummins the JVM tunes itself differently on servers

Slide 41

Slide 41 text

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

Slide 42

Slide 42 text

#RedHat @holly_cummins answer(ish):

Slide 43

Slide 43 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 44

Slide 44 text

#RedHat @holly_cummins

Slide 45

Slide 45 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 46

Slide 46 text

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

Slide 47

Slide 47 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 48

Slide 48 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 49

Slide 49 text

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

Slide 50

Slide 50 text

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

Slide 51

Slide 51 text

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

Slide 52

Slide 52 text

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

Slide 53

Slide 53 text

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

Slide 54

Slide 54 text

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

Slide 55

Slide 55 text

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

Slide 56

Slide 56 text

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

Slide 57

Slide 57 text

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

Slide 58

Slide 58 text

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

Slide 59

Slide 59 text

Photo by daveynin, flickr

Slide 60

Slide 60 text

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

Slide 61

Slide 61 text

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

Slide 62

Slide 62 text

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

Slide 63

Slide 63 text

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

Slide 64

Slide 64 text

@holly_cummins #RedHat

Slide 65

Slide 65 text

#RedHat @holly_cummins

Slide 66

Slide 66 text

#RedHat @holly_cummins

Slide 67

Slide 67 text

#RedHat @holly_cummins $11,448.30

Slide 68

Slide 68 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

Slide 69

Slide 69 text

#RedHat @holly_cummins

Slide 70

Slide 70 text

#RedHat @holly_cummins maybe this is the chaos part

Slide 71

Slide 71 text

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

Slide 72

Slide 72 text

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

Slide 73

Slide 73 text

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

Slide 74

Slide 74 text

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

Slide 75

Slide 75 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins

Slide 76

Slide 76 text

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

Slide 77

Slide 77 text

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

Slide 78

Slide 78 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 79

Slide 79 text

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

Slide 80

Slide 80 text

#RedHat @holly_cummins microservices are not the goal

Slide 81

Slide 81 text

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

Slide 82

Slide 82 text

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

Slide 83

Slide 83 text

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

Slide 84

Slide 84 text

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

Slide 85

Slide 85 text

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

Slide 86

Slide 86 text

#RedHat @holly_cummins distributed monolith

Slide 87

Slide 87 text

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

Slide 88

Slide 88 text

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

Slide 89

Slide 89 text

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

Slide 90

Slide 90 text

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

Slide 91

Slide 91 text

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

Slide 92

Slide 92 text

#RedHat @holly_cummins Microservice Domain

Slide 93

Slide 93 text

#RedHat @holly_cummins Microservice Domain

Slide 94

Slide 94 text

#RedHat @holly_cummins Microservice Domain (this is bad)

Slide 95

Slide 95 text

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

Slide 96

Slide 96 text

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

Slide 97

Slide 97 text

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

Slide 98

Slide 98 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 99

Slide 99 text

IBM Cloud © 2020 IBM Corporation

Slide 100

Slide 100 text

IBM Cloud © 2020 IBM Corporation the test pyramid

Slide 101

Slide 101 text

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

Slide 102

Slide 102 text

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

Slide 103

Slide 103 text

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

Slide 104

Slide 104 text

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

Slide 105

Slide 105 text

#RedHat @holly_cummins How to test a fire alarm?

Slide 106

Slide 106 text

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

Slide 107

Slide 107 text

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

Slide 108

Slide 108 text

#RedHat @holly_cummins

Slide 109

Slide 109 text

#RedHat @holly_cummins unit testing a fire alarm

Slide 110

Slide 110 text

#RedHat @holly_cummins uh … is that enough?

Slide 111

Slide 111 text

#RedHat @holly_cummins contract testing a fire alarm

Slide 112

Slide 112 text

#RedHat @holly_cummins contract testing a fire alarm

Slide 113

Slide 113 text

#IBMGarage + IBM Cloud © 2020 IBM Corporation @holly_cummins to the code!

Slide 114

Slide 114 text

#RedHat @holly_cummins demo recap: https://github.com/holly-cummins/house-of-microservices-quarkus-contract-testing-sample

Slide 115

Slide 115 text

#RedHat @holly_cummins demo recap: https://github.com/holly-cummins/house-of-microservices-quarkus-contract-testing-sample

Slide 116

Slide 116 text

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

Slide 117

Slide 117 text

thank you @holly_cummins