Slide 1

Slide 1 text

Building a Green Supercomputer in the Cloud Anders Lybecker | @Lybecker

Slide 2

Slide 2 text

Agenda • Introduction • Carbon Efficiency • Energy Efficiency • Hardware Efficiency • Carbon Awareness • Case: Vestas supercomputer • Tools

Slide 3

Slide 3 text

© 2021 Green Software Foundation Why?

Slide 4

Slide 4 text

The IT industry emits more carbon than the aviation industry

Slide 5

Slide 5 text

What can you as a software engineer do?

Slide 6

Slide 6 text

What do we need to do?

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Power usage effectiveness

Slide 9

Slide 9 text

© 2021 Green Software Foundation Carbon Awareness

Slide 10

Slide 10 text

CO2

Slide 11

Slide 11 text

CO2 eq

Slide 12

Slide 12 text

Carbon intensity

Slide 13

Slide 13 text

CO2 eq/KWH

Slide 14

Slide 14 text

Electricity mix

Slide 15

Slide 15 text

© 2021 Green Software Foundation Electricity mix

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Vestas

Slide 20

Slide 20 text

Challenges • Wind Turbine Simulation • Optimal placement of turbines in windfarm • Structural optimizations • Existing on-premise HPC cluster • Expensive to maintain • Industry growth at 300% • Complexity of turbine

Slide 21

Slide 21 text

Requirements Destilled Easy of use / same tooling Scale to 400K cores Data segmentation per project Cost management per project Inexpensive As green as possible

Slide 22

Slide 22 text

Design Decisions Saturate CPU Rightsizing VM Auto scale up and down Using unused VMs Time shifting Location shifting

Slide 23

Slide 23 text

DC Client calls API with job spec + files in artifact storage

Slide 24

Slide 24 text

API sends a job create message to the dispatcher queue

Slide 25

Slide 25 text

Dispatcher handles the message

Slide 26

Slide 26 text

Dispatcher selects the pool + copies input data to satellite storage

Slide 27

Slide 27 text

ALT: Dispatcher needs to scale pool and resends the message with a 1 min delay

Slide 28

Slide 28 text

Files are copied back on task complete using event grid (BlobCreated)

Slide 29

Slide 29 text

30-90% reduction with location shifting with EU 12-16% reduction with time shifting within a day

Slide 30

Slide 30 text

© 2021 Green Software Foundation Tools

Slide 31

Slide 31 text

Carbon Aware SDK

Slide 32

Slide 32 text

Pay 5% extra for 50% carbon reduction

Slide 33

Slide 33 text

Pay 50% extra for 5% carbon reduction

Slide 34

Slide 34 text

Carbon Economy SDK

Slide 35

Slide 35 text

Cost evaluation formular

Slide 36

Slide 36 text

Example Location Emission rating Unit price Norm. rating Norm. price Cost Sweden Central 29 $1.932 0 1 0.750 Norway East 42 $1.824 0.107 0.870 0.653 West Europe 100 $1.103 0.587 0 0.147 UK South 150 $1.713 1 0.736 0.606 Emission weight: 0.25 Location Emission rating Unit price Norm. rating Norm. price Cost Sweden Central 29 $1.932 0 1 0.250 Norway East 42 $1.824 0.107 0.870 0.232 West Europe 100 $1.103 0.587 0 0.440 UK South 150 $1.713 1 0.736 0.772 Emission weight: 0.75

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Carbon aware KEDA Operator Electricity Carbon Intensity for k8s Region (ConfigMap) Admin 1 Get current Carbon Intensity 2 Get maxReplicasByCarbonIntensity CarbonAwareKedaScaler CRD CarbonAwareKeda Operator scaledObject 3 Take Action: Update maxReplicaCount based on the current Carbon Intensity • Throttle/limit scaling when Carbon Intensity is high • Allow maximum scaling when it is low Every 1 hour: CarbonAwareKeda Operator: 1 Gets the current carbon intensity 2 Gets KEDA targetRef scaling inputs 3 Updates targetRef MaxReplicaCount based on current carbon intensity Step 0: Admin creates CarbonAwareKedaScaler https://github.com/Azure/carbon-aware-keda-operator/blob/main/demo/azure.md

Slide 39

Slide 39 text

© 2021 Green Software Foundation Questions?

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

What makes software green?

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

Environmental impact Potential pathways for improvement Targeted investments Business value

Slide 46

Slide 46 text

Our future, our responsibility

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

require planet-scale innovation and business transformation Planet-sized challenges

Slide 49

Slide 49 text

Microsoft is committed to harnessing the power of technology to help everyone, everywhere build a more sustainable future.

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

Our core environmental sustainability commitments Carbon negative by 2030 Water positive by 2030 Zero waste by 2030 Protect more land than we use and build a Planetary Computer

Slide 52

Slide 52 text

3%

Slide 53

Slide 53 text

© 2021 Green Software Foundation Measuring: What you can't measure, you can't improve

Slide 54

Slide 54 text

No content