$30 off During Our Annual Pro Sale. View Details »

Devoxx UK 2022: Sustainability in Software Engineering - Today and Tomorrow

Devoxx UK 2022: Sustainability in Software Engineering - Today and Tomorrow

Martin Lippert

May 18, 2022
Tweet

More Decks by Martin Lippert

Other Decks in Programming

Transcript

  1. Martin Lippert, Spring Tools Lead & Sustainability Ambassador @ VMware
    May 2022
    Sustainability in Software
    Engineering
    Today and Tomorrow

    View Slide

  2. Environment
    Social
    Economic
    Sustainability

    View Slide

  3. Environment
    Social
    Economic
    Sustainability

    View Slide

  4. Climate Change is real

    View Slide

  5. Greenhouse gas emissions
    the main problem

    View Slide

  6. Where do they come from?

    View Slide

  7. Energy

    View Slide

  8. What about Software?

    View Slide

  9. We need to decarbonize the entire
    world of software engineering
    hardware production
    commute to/from work
    heating / cooling
    datacenter operation (energy)
    energy production
    network data transfer
    business travel
    food at work
    accommodation
    energy consumption
    . . .
    . . .
    . . .
    . . .
    conferences
    virtual meetings / zoom calls

    View Slide

  10. Devoxx UK

    View Slide

  11. Flight: 282kg
    Hotel (2 nights): 51kg
    Public transport: 5kg
    ~338kg
    Driving a car for one year: 2000kg

    View Slide

  12. Back to Software

    View Slide

  13. Let’s talk about


    Data Centers

    View Slide

  14. 100%


    Carbon Neutral
    on 100%


    Renewable Energy
    The slogans
    On Site Production
    of renewable energy

    View Slide

  15. The reality


    Your workloads do not run on
    renewable energy all the time

    View Slide

  16. There is not enough renewable
    energy (yet)

    View Slide

  17. There is not enough renewable
    energy (yet)
    Renewable energy production
    varies a lot

    View Slide

  18. There is not enough renewable
    energy (yet)
    Renewable energy production
    varies a lot
    Energy consumption
    increases

    View Slide

  19. There is still
    a long way to go

    View Slide

  20. Just Wait?

    View Slide

  21. No !!!
    The transition is not fast enough


    Energy consumption is increasing


    Too many other aspects involved

    View Slide

  22. What should we do
    instead?

    View Slide

  23. Do not run
    your software

    View Slide

  24. Eh, what?

    View Slide

  25. Zombies
    are a real problem
    Related study: Jonathan Koomey & Jon Taylor: „Zombie/Comatose Server Redux“, http://anthesisgroup.com/zombie-servers-redux/

    View Slide

  26. Do not run
    your software - when not used

    View Slide

  27. Idle machines
    are a real problem

    View Slide

  28. Adopt


    Scale to Zero
    architectures

    View Slide

  29. Fast Startup
    is important

    View Slide

  30. Where
    to run the software?

    View Slide

  31. Choose the data center
    wisely

    View Slide

  32. Research Paper


    „A Low Carbon Kubernetes
    Scheduler“
    Aled James, Daniel Schien

    View Slide

  33. When
    to run the software?

    View Slide

  34. Let the data center decide
    when to run your batch jobs

    View Slide

  35. Write better software
    that uses less energy


    that uses less hardware

    View Slide

  36. CPU
    Memory
    Network

    View Slide

  37. Reserved Resources
    consume energy

    View Slide

  38. Really think about your container
    resource requirements

    View Slide

  39. In perspective
    2 CPUs, 32GB: ~1930 kgCO2e / year


    (Dell PowerEdge R560, 32GB, 2 CPUs, x4 300 GB HDD)


    flight from FRA -> SFO: ~1883 kgCO2e
    (per passenger and flight, economy, 747-8)


    View Slide

  40. Don’t forget


    Scaling Effects

    View Slide

  41. Example:


    Spring Boot
    Spring Native
    GraalVM

    View Slide

  42. Feedback loops
    are super important

    View Slide

  43. Carbon Intensity
    of a software will be a differentiating factor

    View Slide

  44. Open Standards
    to be able to compare

    View Slide

  45. Green Software Foundation
    https://greensoftware.foundation

    View Slide

  46. Remember


    We can have a huge impact

    View Slide

  47. Let’s do it !!!

    View Slide

  48. Thank You
    for listening


    Martin Lippert


    @martinlippert

    View Slide