HotCarbon 2023

Bringing Carbon Awareness to Multi-cloud Application Delivery

Diptyaroop Maji (University of Massachusetts Amherst); Ben Pfaff (Feldera); Rajagopal Sreenivasan (VMware); Colleen Josephson (VMware and UC Santa Cruz); Sreeram Iyer, Zhelong Pan, Vipin Padmam Ramesh, Victor Firoiu (VMware); Ramesh K Sitaraman (UMass Amherst & Akamai Tech)

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 So, hello everyone. I am Diptyaroop and today I'll talk about our paper titled, Bringing Carbon Awareness to Multi-Cloud Application Delivery. So, this work is a collaboration between UMass Amherst and VMware and is supported by the Carbon First Project. And this work has been jointly done with Ben Pfaff, Vipin PR, Rajagopal Sreenivasan, Victor Firoiu, Sreeram Iyer, Colleen Josephson, Zhelong Pan and Ramesh Sitaraman. So, let's get started.

0:32 So, we all know that cloud computing causes a significant amount of carbon emissions into the atmosphere, which contributes to global warming. And recent data has shown that data center carbon emissions have exceeded that of even aviation or shipping industry. And so, reducing data center carbon emissions is a very important problem and one that needs our urgent attention. But before telling how to reduce data center carbon emissions, let me first tell how to measure data center carbon emissions. So, one way to do that is in terms of marginal carbon intensity of electricity or MCI. So, MCI is the carbon emitted per new unit of electricity generated by the sources on margin. That is, by the sources which actually generate this new kilowatt hour of energy. So, let's take an example.

1:25 So, let's say in a region, there are two sources, coal and solar, which generate electricity. But if the new kilowatt hour is generated from coal, then the MCI is the amount of carbon emitted when coal is converted to electricity. And that's about 1,000 grams per kilowatt hour, whereas if it's from solar, it's zero carbon and green electricity. And we see that lower MCI means greener electricity and lesser emissions. And we compute the emissions by multiplying this MCI value with the electricity consumed by the data centers. So, this MCI is not fixed. In fact, it varies both across regions and with time. So, here we will focus only on the spatial variations. So, here we see that there are three regions and how the MCI value varies in California, Ontario and Texas.

2:26 And that's because there are different sources on margin in these different regions. And again, lower means greener. And this spatial variability enables us to reduce the carbon emissions. So, how is that? Observe that data centers in greener regions will emit less carbon for the same amount of compute. So, let's say there's a data center here, generated by the black dot, in Ontario. So, for each unit of electricity consumed, it will emit around 500 grams of carbon. But if the data center was in Texas at that same moment in time, it would have not emitted any carbon while consuming electricity. So, from here comes the idea that we can leverage geographically distributed data centers to redirect workloads or client requests or to load balance spatially in order to reduce the total carbon emissions.

3:26 So, ideally, what we would like to do is we would like to do is we would like to redirect request to follow this black dotted line, that is, follow the path of the least MCI and try to reduce the carbon emissions. So, there has been prior work in this domain of spatial load balancing, but there are a few limitations and which we hope to address with our work. So, for example, some works doesn't consider the limit in the workload shifting distance. And so, if a green data center is too far away, it may have significant performance overheads. Some works consider full workload knowledge, but that may not be available always, especially if you are talking about global load balancers, which work on DNS level. And then some works are not implemented or tested on a real load balancer.

4:23 So, to fill these missing pieces, we propose a solution where we developed a prototype where we implemented it and tested it on VMware's existing global load balancer. So, our algorithm has a bounded shifting distance and it works for stateless latency sensitive workloads and it can work with limited knowledge of the workloads. So, before going into the algorithm, let me first describe how the existing VMware global server load balancer or GSLB works. So, the current GSLB is carbon unaware. It just redirects clients to the closest data center available. So, for example, whenever a client sends an DNS query, it will just see, okay, which is the closest available data center and then redirect the client request there. And so, we take this GSLB and make it carbon aware by introducing a carbon intensity module, which now provides real-time carbon intensity data for all the data center regions.

5:24 So, in this paper, we use WattTime as a carbon intensity service, but any carbon intensity providing service like CarbonCast or any other service can easily provide this data and it can be seamlessly integrated in the system. So, what we do now, when we have introduced this CI module, so, whenever a client sends in a DNS query, for each query, we calculate a score for each data center, which is just a linear function of the current MCI or marginal carbon intensity and the client read us in a distance. And then, we send back the IP of the server with a minimum score as part of the DNS response. And in doing this, we ensure that we select a green data center, which is also not that far away from the client.

6:11 So, how does this perform against the baseline, which is carbon unaware and just directs clients to the closest data center? To test that, we use three data centers in US and Europe, and then we distribute the clients uniformly. And then, we mimic customer traffic distribution using HTTP requests. And our evaluation shows that our carbon aware GSLB causes less carbon emissions. So, in fact, as shown in this green shaded region, so, our solution reduces 21% carbon emissions on average over the carbon unaware baseline, while still maintaining comparable latency. So, we see less emissions without sacrificing performance. And thus, our carbon aware GSLB can easily replace the existing VMware GSLB, which is carbon unaware.

7:10 So, this graph shows a lot of promise. It shows a lot of potential in reducing the carbon emissions. But there are a few issues and limitations in our prototype as well. And I'll address them and discuss them next in the next couple of slides. So, first, what we have used is a very simple load balancing metric. What we can do is always improve the load balancing. So, for example, we can consider a more comprehensive load balancing technique where we include other factors, like the cost of energy, that is the current price of electricity, and so on. So, we can improve the carbon intensity metric as well by considering both real-time and forecasted carbon intensity. So, forecasts are especially important if we want to account for the future and, let's say, proactively ramp up the resources in a green data center.

8:00 Or, let's say, if there is some stateful workloads and then we want to direct to the same data center, and we need to know what the future carbon intensity is. And tools like CarbonCast again can easily provide this, and it can be used with a GSLB. Next is, in this prototype, we only consider stateless workloads. Well, that's fine, but there are plenty of workloads which are stateful. And thus, when, in an actual production setting, in a production-grade load balancer, we need to consider the overheads of state replication or state migration for all these workloads.

8:36 Third is load awareness. Again, in a real production load balancer, we need to consider the current load in each of the data centers. So, in our prototype, we assume that no matter what the incoming load is, the data center is capable to absorb all that. But, in real life, we also need to consider the current load in each of these data centers, so as to prevent overloading or saturation of any green data center. And we also need to take care of, or consider the time, actual time required to ramp up or down the servers, before making or before redirecting a load to a particular data center.

9:16 So, these are kind of a few limitations. Thus, to sum up, we extended the existing VMware global load balancer, and made it carbon-aware, we developed a prototype, and which redirects the client requests to greener regions, which are also not that far away. So, our initial early prototype shows a 21% carbon reduction, on average, over the current carbon-unaware GSLB. However, while this shows a lot of promise, there are also a lot of issues to address, many open questions for further research, before we can actually deploy it in production setting. And we hope that our early-stage work paves the way for further research in this area of large-scale load balancing. Thank you, and I'll be happy to answer any questions.

10:08 Any questions from the audience? Oh, perfect. We have a question. I think time for a couple. Hi. Hi. I was wondering, what are your latency numbers? Because you said they're comparable. What is comparable? Okay. So, yeah. I have a latency ratio slide. Okay.

10:31 Let me get bigger. Yeah. So, yeah. This is kind of a, like, it's a very overloaded graph, but just focus on the blue line, which shows the latency ratio. So, the ratio is the numerator is the round-trip time latency of the carbon-aware algorithm, the carbon-aware GSLB, and the denominator is the round-trip latency of the request for carbon-unaware. And we see that the ratio is near one, which means that the latencies are comparable. So, like the carbon-unaware GSLB, it doesn't optimize in terms of latency. It optimizes in terms of distance. So, the ratio is not always greater than one, but we see that it's near one, which implies that, yeah, those are comparable. Okay. So, 20%? Yeah. I mean, based on this set of experiments, it's something like that.

11:30 And we have time for one more question. And while this question is being answered, just a note to the next speaker, please join the Zoom and get ready to share your slides. Hello. So, there is a trend that now cloud is getting new deployments at the edge, right, using ISP infrastructures and other bits. There, you may also have different levels of carbon usage or how carbon-efficient the hardware is, but likely going to house more latency-critical infrastructure or more latency-critical applications. So, how do you think your approach would work in that situation where you may have more criticality in how much you can push the applications and you're not doing it at multiple continent scale, but rather than doing it in, for example, in city levels or within the country level.

12:26 So, would you think that this approach would work in that situation as well? So, within city level, I mean, I get it within country level. So, within city level, so where the MCI value that we are getting, it's the carbon intensity value of a grid. So, within regions in the same grid, the MCI would be same. So, if the data centers are within the same grid, there's no change in carbon. But on different grids within a country, that makes sense. And so, there is this parameter called lambda, which we can vary to ensure or to put how much weight we want to give to the distance to the carbon. So, let's say if we have some knowledge that, yeah, this is a very latency-critical application, let's say we give more importance to the distance factor and less importance to the carbon factor.

13:14 And we, like, turn, tune the knob.