An Agile Pathway Towards Carbon-aware Clouds
This transcript was made by AI. The open source speech recognition model Whisper (large-v3-turbo) transcribed the recording with faster-whisper. Names and technical terms were checked against the paper, but it can still contain mistakes. The recording is the reference.
0:00 Thank you so much. Thank you everyone for coming to my talk and let me get started. Today I want to present our vision for carbon awareness and cloud platforms. And before I do start my talk, I just want to note that this is going to be a very opinionated and a non-traditional systems talk, but I think it has some very interesting implications for system design that I would love to discuss with everyone. So let me get started. The central question that I want to focus on in this presentation is how should cloud providers expose carbon awareness to cloud users? Previous talks have already discussed the importance of doing so, but I want to take a look at this from the cloud user perspective. So who are cloud users?
0:43 Well, cloud users are massive organizations in their own right, and they deploy applications spanning thousands of microservices on various different cloud platforms. And for carbon awareness to really work for these applications, it needs to percolate throughout the entire hardware systems, hypervisor, and the software stacks. Clearly, this is a super challenging problem. One approach that the systems community has considered in the past is to expose carbon APIs to application developers so that they can understand the carbon intensity of their application and rewrite them to be carbon aware. While this is a super powerful, powerful approach, it's limited because it puts a lot of burden on application developers. And unfortunately, developer time is already a business bottleneck for a lot of cloud users. Cloud users want to keep churning out new features and functionalities to attract and retain their own customer bases. So it's very unlikely that developers are going to have a lot of time to iterate on carbon optimizations. Even if a developer wanted to write carbon aware code, there is minimal training and tooling available to them to do so. And finally, rewriting applications in the case of these large-scale microservice deployments might not even be feasible because they often rely on legacy or black box application code, which cannot easily be modified, be modified, or it's used as libraries which developers don't regularly interact with. As an example,
2:13 Uber deploys over 2,000 microservices today, of which only a handful constitute of business logic that is really iterated upon by developers. So given these challenges, it's unlikely that developers can make a near-term impact in terms of reducing carbon emissions. So the question that we are really asking is two questions. The first, who within these large-scale cloud user organizations can make an impactful and a timely difference? And second, how can we, a systems researcher, help these people? So to answer these questions, let's take a closer look at large-scale application teams at one of such cloud users. It turns out almost every large-scale application team has an operations team. And the role of these operators is to collaborate with developers to deploy their applications on cloud infrastructure. In addition, operators also monitor these deployments to ensure that they're meeting the service-level objectives. And if that is not happening, they might make some trade-offs and tweak some knobs in order to ensure that the application gets back to meeting its SLOs. For example, they might choose to trade-off performance for reduction in cost or vice versa. Operators might do not only interact with members of their own organizations, but they also interact very closely with provider teams. So for example, Google Cloud dedicates customer reliability engineers, which are essentially provider teams that directly work with operation teams to help them
3:47 debug and debug and monitor their services. This kind of a relationship works out very great because providers have a lot more visibility into their own infrastructure and services, whereas operators might know when service faults are happening and they can communicate those to providers. Given that operators are this narrow waist between cloud users and provider organizations, we believe that they are best suited to introduce carbon awareness into the cloud. Specifically, we propose viewing carbon as a operations concern by including it as a metric that they trade-off alongside the other metrics that they already trade-off, like cost, latency, and reliability. We believe that this is likely to be an easier problem for operators to handle than rewriting applications, at least in the near term. Empowered with visibility into carbon metrics, operators can then help developers and managers within their own organizations to become more carbon aware. For example, operators could work with developers to pinpoint which applications are carbon hotspots so that the precious few cycles that developers have could be spent on optimizing those services. Similarly, operators can also work with managers when making planning decisions to choose carbon efficient cloud platforms or services so that their future projects end up becoming more and more carbon efficient. Operators can also directly communicate with provider teams and this communication can happen in both ways. This is really necessary because
5:18 operators have visibility and control over their own applications, whereas providers have more visibility into the infrastructure and have access to the knobs to tweak to improve the resource and carbon efficiency. So in the operator to provider direction, we propose that application communication, we propose that providers should introduce the notion of eco modes for cloud applications. You might have come across the term eco modes in everyday scenarios like cars or washing machines, and our idea is really to capture this notion of coarse-grained carbon trade-offs in the context of cloud applications. Eco modes are super necessary because providers don't have a lot of visibility into application information, and even though they might have some super cool carbon optimization available to them, they have to assume the worst-case SLOs for a lot of the applications, and they cannot apply them.
6:14 Enabling the eco mode can signal to the provider that, hey, we are okay with certain kinds of trade-offs being made, and that unlocks carbon optimizations to be implemented for operator services. And there doesn't need to be just one kind of eco mode. There can be different kinds of eco modes that capture different kinds of trade-offs, and to give you a couple of examples from today, we could have carbon-aware scheduling that is triggered if an application is signaled to be delay-tolerant. Eco modes can also help reduce embodied emissions if the operator signals to the provider that they're okay with low reliability mode operation for certain kinds of requests or certain kinds of end users. Eco modes actually get even cooler than that because developers can now start implementing specific trade-offs that are triggered only when the eco mode is enabled.
7:07 As a concrete example, let's say a service was running machine learning inference and was now switched on to eco mode. The developer can then choose to switch a model that performs the same task but has different carbon and accuracy trade-offs. In the other direction, we propose that providers expose coarse-grained service level carbon metrics to operators, and this is important because it helps guide optimization efforts and trade-off decisions for operators. One thing we want to emphasize here is that approximate metrics are good enough to expose for now because a lot of the code so far has been written without carbon awareness or carbon efficiency in mind. So there's likely a lot of low-hanging fruit which can be optimized and it could help reduce carbon emissions. Eventually, as carbon trade-offs become more and more nuanced, providers can start exposing fine-grained metrics, some of which you've heard about in the previous talks. We want to emphasize here also that the way the metrics are exposed should be integrated into existing operator workflows. For example, operators today rely on dashboards which help them manage the complexity of monitoring and resolving issues in tons of microservices that they're deploying.
8:29 Integrating a notion of carbon metrics along with some thresholding mechanisms like carbon budgets can help operators treat this as a resource management problem that they can use their existing workflow to optimize. Of course, it's not just restricted to that because this kind of visibility can also help operators pinpoint to developers which kinds of services should be optimized. Finally, we want to introduce the notion of carbon knowledge repositories which was briefly alluded to in the previous talk and the idea here really is that a lot of services today are used as libraries. For example, key value stores or machine learning models and the way these are benchmarked today is primarily for performance so for key value stores that might be read or write throughput that is benchmark and for deep learning models that might be accuracy and latency. What we are proposing is to standardize carbon benchmarks which could start out as energy benchmarks but eventually try to integrate some notion of embodied emissions corresponding to how much resources are being used.
9:31 And for this to actually be used by developers and operators it really needs to be integrated into popular repositories like container registries and models that help operators and developers make agile design and development decisions. I want to take this opportunity to give a shout out to researchers at the University of Michigan who very recently released a leaderboard for ML serving models where they try to capture the energy efficiency of various kinds of various kinds of models. You could go and try to contribute your own data to this. I think it'd be super cool. So to summarize, our vision is that the most pragmatic pathway towards carbon-aware clouds is one that works within existing business practices and enables the swift and progressive reduction of carbon emissions.
10:21 carbon emissions. We provide three high-level recommendations to go about this. We provide three high-level recommendations to go about this. The first is to federate carbon responsibility and tools across cloud users and providers with operators being the narrow waist. The second is to provide prompt and actionable visibility to operators into their carbon emissions so that they can get started optimizing even though it might not be the most accurate metric right away. And third, because carbon optimization efforts are a redundant problem across many different operations teams, we propose centralizing the carbon optimizations at the cloud provider as much as possible and exposing configurable mechanisms to operators to help them reduce emissions. The paper has a lot more ideas and details and I would love to hear your thoughts about it. That brings me to the end of my talk. Thank you so much for your attention and I'd be happy to answer any questions.
11:14 Great. We've got a hand raised up. Hi. Hello. Hello. Hello. Hello. No, it's not still. It's off. Hello. Hello. Yeah, there you go. Thank you. Okay. I am Noman from UMass Amherst. My question is that I think more than developers having cycles or organization of the teams, I think this problem is about incentives, because currently there is no cost of carbon, there is no incentive to reduce carbon at the application level or anything like that. If tomorrow there is a carbon tax, just like there is a cost of energy and people are trying to improve their energy efficiency, everyone would try to improve their carbon efficiency as well. So my point is that like reducing it to basically that people don't want to do that or it's complex and it cannot be done because sometimes increasing carbon efficiency just devolves to either executing things a little bit later or at a different place.
12:45 Sometimes that could be enough without changing the application code significantly. So do you have any comment on that? Thank you for the question. So I completely agree with you that there is a tremendous need for incentives and we do talk about this in our paper. And these incentives are, I believe, good and convenient for the cloud provider to offer because a lot of sustainability optimizations end up benefiting the cloud provider as well because you're ending up reducing their energy costs. So providing those kinds of incentives is really going to drive change. But the point I think we are making in this talk is that let's say there are incentives, but we're trying to figure out how that can be propagated and percolated through the cloud user organization so that we can reduce emissions as quickly as possible.
13:39 And definitely incentives are a part of this. I have a follow up comment, and that is basically we should basically differentiate between optimizing for carbon and optimizing for energy efficiency, because if something is not energy efficient, you want to basically make it energy efficient anyways due to reduce energy cost and whatnot. But when I talk about like carbon efficiency, it generally comes at the cost of energy efficiency, basically, you have the most energy efficient operation available, and then to basically reduce carbon, you have to kind of sacrifice that and there is a follow up paper later in the sessions that basically makes that point more accurately. So I think incentive currently for reducing carbon does not align well with the cost incentive. I see. So your point makes sense.
14:45 And this is especially true if you are a cloud provider trying to optimize your own workloads, because that energy cost is directly mattering to you. Now, if you're a cloud user, that energy cost is not directly made visible to you in any way. So even if you try to optimize the energy consumption of your application code, there's no real reason for you to continue doing so. So it ties back into your point about incentives that energy reduction also essentially needs to be exposed in some way to cloud users. So far, it was not being done and it was just kind of being abstracted away by the cloud abstraction. But essentially, this makes a case for exposing it more clearly to cloud users and also having them help with the optimal carbon and energy reduction optimizations.
15:36 Does that does that make sense? Yes. So at this point, thank you very much. Let's thank our speaker again. Ma'am.