The Ops Community ⚙️

Cover image for Sustainability in the cloud era
Eyal Estrin
Eyal Estrin

Posted on • Originally published at eyal-estrin.Medium

Sustainability in the cloud era

When thinking about cloud computing, we immediately think about technology.

Have we ever stopped to think about how much energy this sort of technology requires to operate an average cloud data center, and what is the environmental effect of running such huge data centers around the world?

Data centers generate around 1% of the energy consumed around the world, daily.

Data centers consume a lot of energy – electricity (for running the servers) and water (for cooling the servers).

The more energy a common data center consumes, the bigger its carbon footprint (the total amount of greenhouse gases that is generated by running a data center).

In the past couple of years, there is a new concept for professionals working with cloud services, with high environmental awareness called cloud sustainability.

The idea behind it (from a cloud provider's point of view) is to achieve 100% renewable energy – replace fuel-based electricity with wind and solar power, within a few years.

All major cloud providers (AWS, Azure, and GCP put a lot of effort into building a new data center to be powered by green energy and making changes to the existing data center to lower their emissions as much as possible and use green energy as well.

To remain transparent to their customers, the major cloud providers have created carbon footprint tools:

• AWS customer carbon footprint tool

https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/what-is-ccft.html

• Microsoft Sustainability Calculator

https://aka.ms/SustainabilityCalculator

• GCP Carbon Footprint

https://cloud.google.com/carbon-footprint

• Cloud Carbon Footprint (Open source) tool

https://www.cloudcarbonfootprint.org/docs/getting-started

Indeed, most of the responsibility for keeping the cloud data centers green is under the responsibility of the cloud providers, since they build and maintain their data centers, but what is our responsibility as consumers?

As an example, here is AWS's point of view regarding the shared responsibility model, in the context of sustainability:

Image description

Source: https://docs.aws.amazon.com/wellarchitected/latest/sustainability-pillar/the-shared-responsibility-model.html

How to act as responsible cloud consumers?

Region selection

Review business requirements (compliance, latency, cost, service, and features), and pay attention to regions with a low carbon footprint.

Additional information:

• AWS - What to Consider when Selecting a Region for your Workloads

https://aws.amazon.com/blogs/architecture/what-to-consider-when-selecting-a-region-for-your-workloads

• Carbon-free energy for Google Cloud regions

https://cloud.google.com/sustainability/region-carbon

• Measuring greenhouse gas emissions in data centers: the environmental impact of cloud computing

https://www.climatiq.io/blog/measure-greenhouse-gas-emissions-carbon-data-centres-cloud-computing

Architecture design considerations

Use cloud-native design patterns:

• Microservices – use containers (and Kubernetes) to deploy your applications and leverage the scaling capabilities of the cloud

• Serverless – use serverless (or function as a service) whenever you can decouple your applications into small functions

• Use message queues as much as possible, to decouple your applications and lower the number of requests between the various services/components

• Use caching mechanisms to lower the number of queries to backend systems

Infrastructure considerations

Embed the following as part of your infrastructure considerations:

• Right-sizing - when using VMs, always remember to right-size the VM size to your application demands

• Use up-to-date hardware – when using VMs, always use the latest VM family types and the latest block storage type, to suit your application demands

• ARM-based processors – consider using ARM processors (such as AWS Graviton Processor, Azure Ampere Altra Arm-based processors, GCP Ampere Altra Arm processors, and more), whenever your application supports the ARM technology (for better performance and lower cost)

• Idle hardware – monitor and shut down (or even delete) unused or idle hardware (VMs, databases, etc.)

• GPU – use GPUs only for tasks that are considered more efficient than CPUs (such as machine learning, rendering, transcoding, etc.)

• Spot instances – use spot instances, whenever your application supports sudden interruptions

• Schedule automatic start and stop of VMs – use scheduling capabilities (such as AWS Instance scheduler, Azure Start/Stop VMs, GCP start and stop virtual machine (VM) instances, etc.) to control the behavior of your workload VMs

• Managed services – prefer to use PaaS or managed services (from databases, storage, load-balancers, and more)

• Data lifecycle management – use object storage (or file storage) lifecycle policies to archive or remove unused or unnecessary data

• Auto-scaling – use the cloud built-in capabilities to scale horizontally according to your application load

• Content Delivery Network – use CDN (such as Amazon CloudFront, Azure Content Delivery Network, Google Cloud CDN, etc.) to lower the amount of customer traffic to your publicly exposed workloads

Summary

Sustainability and green computing are here to stay.

Although the large demand for cloud services has a huge environmental impact, I strongly believe that the use of cloud services is much more environmentally friendly than any use of legacy data center, for the following reasons:

• Efficient hardware utilization (nearly 100% of hardware utilization)

• Fast hardware replacement (due to high utilization)

• Better energy use (high use of renewable energy sources to support the electricity requirements)

I advise all cloud customers, to put sustainability higher in their design considerations.

Additional reading materials

• AWS Well-Architected Framework - Sustainability Pillar

https://docs.aws.amazon.com/wellarchitected/latest/sustainability-pillar/sustainability-pillar.html

• Microsoft Azure Well-Architected Framework – Sustainability

https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-get-started

• Google Cloud - Design for environmental sustainability

https://cloud.google.com/architecture/framework/system-design/sustainability

About the Author

Eyal Estrin is a cloud and information security architect, the owner of the blog Security & Cloud 24/7 and the author of the book Cloud Security Handbook

Top comments (2)

Collapse
 
ellativity profile image
Ella (she/her/elle) • Edited

Loved reading this, @eyalestrin - thanks so much for compiling these resources in such a fluid format.

I suspect this is a complementary conversation to have alongside reducing cloud costs, which we've noticed becoming a hot topic of late (I just noticed that @argonaut published another one of these this past week, so the conversation feels very much alive). Do you agree, or are they very separate discussions in your mind?

Collapse
 
argonaut profile image
Argonaut

Sustainability in the cloud era is a deep topic in itself and @eyalestrin did a great job of outlining what an end user can do for their part and definitely helps raise awareness.

Reducing the resource utilization for workloads reduces eco footprint as is pointed out in this article and also reduces cost in many cases.

Cloud costs are a different operational consideration for software engineering teams which was the focus of the @argonaut article and hence has some overlap, while fundamentally focusing on different operational concerns.

Hope that clarifies, @ellativity