Slide 1

Slide 1 text

Confidential Customized for Lorem Ipsum LLC Version 1.0 Making our applications greener Marta Paciorkowska, infrastructure developer @FINN @a_meba

Slide 2

Slide 2 text

Confidential Customized for Lorem Ipsum LLC Version 1.0 Our plan today Personal story Global crisis Our users Mental model Platform Packets Process Where to start @a_meba

Slide 3

Slide 3 text

Personal story I haven’t always worked in tech. Came from environmental activism and struggled to feel relevant. Western tech needs more outsiders. ☺ @a_meba

Slide 4

Slide 4 text

Global crisis @a_meba

Slide 5

Slide 5 text

Our hands aren’t clean Global electricity consumption = 21,000 TWh 1 in 2016. Est. global energy consumption for data centers & enterprise networks alone was 245 TWh in 2016. 1 ICT networks (phones + computers) add another 220 TWh. 1 @a_meba Norway Iran IT sector USA China 100 200 300 6400 TWh 400 6300 … 4000 3900 3800 … 3700

Slide 6

Slide 6 text

Let’s simplify it a bit (Conservative) assumptions: ● The IT sector produces well over 110 Mt CO 2 equivalent every year.1 ● We can spend 20 years on offsetting a year’s emissions. ● A tree can absorb ½ ton of CO 2 in that time.2 ● we fit 100,000 trees in a km2. @a_meba

Slide 7

Slide 7 text

@a_meba = Tokyo (~2,200 km2)

Slide 8

Slide 8 text

@a_meba = 1,000,000 trees = Tokyo (~2,200 km2)

Slide 9

Slide 9 text

@a_meba = 1,000,000 trees = Tokyo (~2,200 km2) x 20 years

Slide 10

Slide 10 text

@a_meba = 1,000,000 trees = Tokyo (~2,200 km2) x 20 years = 1 year’s offset

Slide 11

Slide 11 text

@a_meba

Slide 12

Slide 12 text

Our users @a_meba

Slide 13

Slide 13 text

They care They want to make better choices and they want us to do better 01 | Organic food market in Poland grew 4x in under 10 yrs 1 02 | 73% of millennials would pay more for sustainability 2 03 | ⅓ of consumers prefer sustainable brands 3 04 | 69% of consumers want transparency 4 05 | 52% of Norwegians shop for sustainability 5 @a_meba

Slide 14

Slide 14 text

We can be in the way Do brands make it easier or harder for you to be environmentally friendly and ethical in your daily life? Easier 28% Harder 43% Don’t know 29% @a_meba Survey of 1004 respondents in the USA and UK, November 2018 for Futerra by OnePulse 1

Slide 15

Slide 15 text

High expectations @a_meba Yes 88% No 12% Would you like brands to help you be more environmentally friendly and ethical in your daily life? Survey of 1004 respondents in the USA and UK, November 2018 for Futerra by OnePulse 1

Slide 16

Slide 16 text

Return of investment? A habitable planet. @a_meba @a_meba

Slide 17

Slide 17 text

Build your mental model @a_meba

Slide 18

Slide 18 text

Platform, Packets, Process A model introduced by The Green Web Foundation 1 that helps reason about the environmental impact of your infrastructure. There are also other models you can use to reason about other areas of how your company operates. @a_meba

Slide 19

Slide 19 text

Platform Environmental costs of servers and infrastructure used to run your application. @a_meba

Slide 20

Slide 20 text

Where you run @a_meba

Slide 21

Slide 21 text

Finn’s story Evaluated different cloud providers. Made an internal sustainability report. Initiative came from the developers. Choose a cloud provider because it fit our use case and was more sustainable. @a_meba

Slide 22

Slide 22 text

Not all cloud providers are the same @a_meba ● Some create efficient data centers with a PUE (Power Usage Effectiveness) way over the industry average.1 ● Some either use renewable energy or match actual energy demand with carbon-free supply. ● Some implement a circular economy and reuse server components. @a_meba

Slide 23

Slide 23 text

Not all cloud providers are the same ● Some create efficient data centers with a PUE (Power Usage Effectiveness) way over the industry average.1 ● Some either use renewable energy or match actual energy demand with carbon-free supply. ● Some implement a circular economy and reuse server components. @a_meba ● Others allegedly drop sustainable goals to pursue business with the oil and gas industry. @a_meba

Slide 24

Slide 24 text

Carbon neutral data centers exist Pictured: A carbon-neutral data center in Norway. 1 @a_meba

Slide 25

Slide 25 text

Can your platform be greener? Some tips to make it happen @a_meba

Slide 26

Slide 26 text

Can your platform be greener? ● Choose those cloud regions for your infrastructure which are powered by renewables. 1 Some tips to make it happen @a_meba

Slide 27

Slide 27 text

Can your platform be greener? ● Choose those cloud regions for your infrastructure which are powered by renewables. 1 ● Switch to a sustainable cloud provider or data center. Some tips to make it happen @a_meba

Slide 28

Slide 28 text

Can your platform be greener? ● Choose those cloud regions for your infrastructure which are powered by renewables. 1 ● Switch to a sustainable cloud provider or data center. ● Avoid over-provisioning servers. Some tips to make it happen @a_meba

Slide 29

Slide 29 text

Can your platform be greener? ● Choose those cloud regions for your infrastructure which are powered by renewables. 1 ● Switch to a sustainable cloud provider or data center. ● Avoid over-provisioning servers. ● Periodically audit infrastructure to remove unused VMs and services. Some tips to make it happen @a_meba

Slide 30

Slide 30 text

How you run it @a_meba

Slide 31

Slide 31 text

We still build infrastructure of tomorrow on concepts from yesterday. @a_meba

Slide 32

Slide 32 text

@a_meba

Slide 33

Slide 33 text

@a_meba CPU utilization

Slide 34

Slide 34 text

@a_meba CPU utilization 35%

Slide 35

Slide 35 text

A waste of capacity @a_meba We’re literally burning coal when our machines are idling.

Slide 36

Slide 36 text

Servers in US data centers 10%-30% Zombie servers: obsolete/unused machines that consume electricity but aren’t used 1 @a_meba

Slide 37

Slide 37 text

Different ways to scale better 1 @a_meba

Slide 38

Slide 38 text

How efficient is your application? Some open questions @a_meba

Slide 39

Slide 39 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) @a_meba

Slide 40

Slide 40 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) ● Do you optimize your database calls? These can get resource-heavy. @a_meba

Slide 41

Slide 41 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) ● Do you optimize your database calls? These can get resource-heavy. ● Do you (de)serialize data needlessly? Should you switch to a binary format instead? @a_meba

Slide 42

Slide 42 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) ● Do you optimize your database calls? These can get resource-heavy. ● Do you (de)serialize data needlessly? Should you switch to a binary format instead? ● JVM? How about GraalVM! @a_meba

Slide 43

Slide 43 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) ● Do you optimize your database calls? These can get resource-heavy. ● Do you (de)serialize data needlessly? Should you switch to a binary format instead? ● JVM? How about GraalVM! ● Are some languages more efficient than others (Java vs Go)? @a_meba

Slide 44

Slide 44 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) ● Do you optimize your database calls? These can get resource-heavy. ● Do you (de)serialize data needlessly? Should you switch to a binary format instead? ● JVM? How about GraalVM! ● Are some languages more efficient than others (Java vs Go)? ● Maybe drop threads and use coroutines instead? @a_meba

Slide 45

Slide 45 text

How efficient is your application? Some open questions ● Do you cache everything you could to save traffic? (Immutable = cacheable) ● Do you optimize your database calls? These can get resource-heavy. ● Do you (de)serialize data needlessly? Should you switch to a binary format instead? ● JVM? How about GraalVM! ● Are some languages more efficient than others (Java vs Go)? ● Maybe drop threads and use coroutines instead? ● Smaller. Docker. Images. @a_meba

Slide 46

Slide 46 text

Packets Environmental costs of infrastructure other people own. @a_meba

Slide 47

Slide 47 text

It’s not me, it’s you Your dependencies also count @a_meba

Slide 48

Slide 48 text

It’s not me, it’s you ● Remove unused dependencies. Your dependencies also count @a_meba

Slide 49

Slide 49 text

It’s not me, it’s you ● Remove unused dependencies. ● Assess services like Heroku, Travis, Dockerhub, … Your dependencies also count @a_meba

Slide 50

Slide 50 text

It’s not me, it’s you ● Remove unused dependencies. ● Assess services like Heroku, Travis, Dockerhub, … ● If applicable, switch to GitHub Actions because your build runs where your code is. Your dependencies also count @a_meba

Slide 51

Slide 51 text

It’s not me, it’s you ● Remove unused dependencies. ● Assess services like Heroku, Travis, Dockerhub, … ● If applicable, switch to GitHub Actions because your build runs where your code is. ● When choosing new technologies, make an environmental sustainability assessment of each option. Your dependencies also count @a_meba

Slide 52

Slide 52 text

Process How people work in your organization and how you deliver your product to your users. @a_meba

Slide 53

Slide 53 text

Meat is tasty. A future is tastier. Travel 2.88t CO 2 Round flight from Oslo to Barcelona for KubeCon for your DevOps team of 4. 1 Meat 5.99t CO 2 Saved by providing only vegetarian food at a company canteen for 200 people in a month.2 Idle resources 2.2t CO 2 Saved by switching off 200 laptops for the night for a month. 3 @a_meba

Slide 54

Slide 54 text

A greener office A greener application @a_meba

Slide 55

Slide 55 text

A greener office ● Public transport tickets for all employees. ● Safe bike parking on premises. ● Promote home office. ● Six hour workdays. ● Conferences? Accessible by train or video stream. A greener application @a_meba

Slide 56

Slide 56 text

A greener office ● Public transport tickets for all employees. ● Safe bike parking on premises. ● Promote home office. ● Six hour workdays. ● Conferences? Accessible by train or video stream. ● Update your company’s device policy to exchange equipment less often. ● Turn off screens, lights & computers for the night. A greener application @a_meba

Slide 57

Slide 57 text

Where to start @a_meba

Slide 58

Slide 58 text

ClimateAction.Tech recommends: 1 0 1 Sustainability statement Creates a feeling of shared purpose. 0 2 Gather data & ideas Stick to same methodology throughout whole process. 0 3 Appoint a task force Remove obstacles, keep momentum going. @a_meba

Slide 59

Slide 59 text

Find allies in your company Example: We have a weekly Academy at Finn, where we have talks, brainstorm. I held an Academy and asked colleagues about their ideas. I used some of them here. @a_meba

Slide 60

Slide 60 text

Turn off Finn.no from 01:00-05:00 @a_meba

Slide 61

Slide 61 text

Don’t give up

Slide 62

Slide 62 text

Resources To help you get started ● ClimateAction.Tech slack ● Green Web Foundation’s website ● This article that outlines a good process ● A short summary of environmental sustainability of cloud providers ● Greenpeace’s Click Clean reports @a_meba

Slide 63

Slide 63 text

Get to work @a_meba

Slide 64

Slide 64 text

In times of crisis, we need to be efficient, resourceful, and caring about each other. @a_meba @a_meba

Slide 65

Slide 65 text

Thank you! Marta Paciorkowska Office hours @ FInn’s stand: 13-14 @a_meba thatmarta.wordpress.com @a_meba

Slide 66

Slide 66 text

Confidential Customized for Lorem Ipsum LLC Version 1.0 Credits Images on slides 1, 3, 4, 12, 14, 15, 17, 18, 21, 51, 57, 59, 60, 63, 65: Marta Paciorkowska Images on slides 13, 35, 58: Rawpixel.com Image on slide 24: Volkswagen @a_meba Image on slide 61: Finn.no AS Images on slide 37: The Green Web Foundation A huge thank you to Kim Tore Jensen, Magdalena Kowalczyk and Chris Adams.