Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Asynchronous & Unreliable - Tech & AI Podcast

Asynchronous & Unreliable - Tech & AI Podcast artwork

Ep 3: What Does Extreme Operational Efficiency Look Like? WIth Niki Manoledaki of Grafana

Apr 24, 202659 minAudioSeason 1, Episode 3
ShareXLinkedInFacebookWhatsAppEmail

In the third episode of Asynchronous and Unreliable, Anne Currie and Niki Manoledaki of the CNCF and Grafana Labs discuss the highest end of operational efficiency, GreenOps, and Finops using purely open source solutions including Kubernetes, Kepler and the Vertical Pod Autoscaler. What can you do with them and what is the vital technology you need in place before you attempt it? Real life stories! Shownotes and transcript #cloud #kubernetes #karpenter #kepler #VPA #CNCF #opensource #earthday #sustainability

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show.

Anne Currie: Thank you very much for listening to Asynchronous and Unreliable podcast. If you enjoyed the show and you want us to create more content, please do show your support by hitting the subscribe button below. It really does make a difference. Thank you very much. Hello and welcome to asynchronous and unreliable, a new weekly podcast where we discuss the most interesting ideas in tech. I'm your host, Anne Currie co-author of Building Green Software, the Cloud Native Attitude and author of the Science Fiction Panopticon I offer consultancy training and workshops at strategically.green. And as for my guest today to celebrate Earth Day and... And arguably, it's still Earth Day. We will discuss whether it is really still Earth Day because we're recording this on Thursday, not Wednesday, but it's Earth Day in Hawaii. So arguably, it's still Earth Day. ⁓ We have sustainability and green software expert, who I first met as one of my many contributors to ⁓ building green software. ⁓ So, do want to introduce yourself?

Niki: Sure. Hi everyone. And thank you, Anne, for bringing me on the podcast. I'm so excited to be here, ⁓ along with the really great cohort that you have put together. I'm Niki Manoledaki. I'm a senior software engineer at Grafana Labs on the platform engineering team. And I'm a long time open source contributor. I lead a few different projects in the open source ecosystem. particularly in the Cloud Native Computing Foundation. For example, ⁓ Kepler, an energy monitoring tool, and also previously the technical advisory group for environmental sustainability has been a big focus of mine. I'm so excited to be here to talk about cloud sustainability. And it is still Earth Day in Hawaii. So it's Earth Day somewhere. And I'm mentally in Hawaii right now.

Anne Currie: Yeah, we all are, I think.

Niki: Thank

Anne Currie: The, yeah, I've never been to Hawaii actually. It looks, it sounds fantastic.

Niki: I mean, I was researching the meaning of Earth Day and definitely Hawaii is a beautiful place to think of Earth Day happening. It's beautiful, beautiful nature for sure. ⁓ One day we'll go to Hawaii.

Anne Currie: One day we'll all go to Hawaii. So, ⁓ yeah, it's, it's, yes, I'd say it very appropriate that we'll wait this it's a whole Hawaii themed. We didn't have anything, you know, culturally insensitive or whatever to fortunately we did we couldn't kind of like grab our lays or whatever or, you know, that was we were spared that you've all been spared that totally. culturally inappropriates probably experience of seeing us attempt to pretend to be in Hawaii. today is in Earth data, we will be talking about green things. And one of the interesting things, you were a major contributor to the operational chapter of building green software, because ops are your area. So I'm very interested in and you do a lot of interesting work around effectively operational efficiency and aligning the operation of your systems with renewable power availability. you work on that from multiple angles, multiple really interesting angles. ⁓ One is well, I'll just say one is your involvement in Kepler. The other is your involvement in ⁓ monitoring ⁓ and tracking sustainability for systems through your job. So it would be great to talk about both those things today. So I don't know which one you want to talk about first. They will both be good.

Niki: Mm. My day to day is with cost monitoring and that's something ⁓ people don't ⁓ about me. My day to day ⁓ is the cost of at there at a lot with a lot of granularity. So I, what I generally about what we talked about in green software. is the trifecta of cloud sustainability, which I describe as ⁓ energy, carbon and cost. On the cost side of things, ⁓ I know it's a complicated topic when it comes to time cost and carbon energy or efficiency in general. But what I do in my day to day is creating cost metrics that can be used by engineers. ⁓ by tying pricing and utilization metrics. So that's where it really connects with operational efficiency because we multiply pricing with utilization. So for example, CPU utilization or ⁓ load balancer utilization or ⁓ ⁓ virtual machine utilization for EC2 instances, ⁓ different kind of utilization metrics that we usually get depending on whether it's running on Kubernetes or if it's not running on Kubernetes, we'll use different calculations. And we do all this through Prometheus recording rules. So we have a set of cost metrics. through Prometheus that we build and maintain ⁓ and and we add granularity to and we aggregate them in different ways. We add a team level attribution to them as well. We can calculate unit costs. We can use this unit cost during the release process to show that the unit cost has stayed. ⁓ The same release by release, is really unit economics is, ⁓ I was reading in the, FinOps book, the cloud FinOps book by O'Reilly unit economics is the Nirvana of, of FinOps. And that's where you want to be. ⁓ And also then you can use this unit cost to tie production costs to SKUs, which are stock keeping units. And that's where. ⁓

Anne Currie: Mm.

Niki: my team is right now. It's a very exciting place to be. ⁓ Energy comes into it if you look at ⁓ cost per watt, which is not something we've achieved yet, at least in my team, but I'm very interested in going in that direction. Especially when it comes to AI, I've been ⁓ listening to a lot of discussions around the limit of AI scaling. obviously one of the limiting factors of AI is energy consumption. So a lot of companies are trying to tie operational efficiency and cost per watt, which I think is where we're heading.

Anne Currie: Yeah, absolutely. Yeah, so that's very interesting. I'm over to that. It's really interesting. There's loads in there. And now we're gonna unpack that and slightly talk about it. And I'm gonna roll all the way back for our listeners and viewers to the very beginning of this, is why FinOps? So your involvement, one of the things that ⁓ you suggested that we put in building in software was that the algorithm. out the very simple algorithm, which I quite like a lot, which is ⁓ green ops. And this was a CNCF when you were still very heavily involved with CNCF at the time. ⁓ The CNCF statements of green ops, the definition of green ops as FinOps plus GitOps, which is effectively green ops is automated FinOps. ⁓ And the reason for saying, well, green ops is all about cost. is because they're both really about the same thing. operational efficiency and being green is about cutting the amount of resources you're using to do the job. So not cutting the amount of job you're doing, cutting the amount of resources you are doing per unit of delivery or whatever that unit of delivery is, SKU or whatever order or visits or whatever the unit of delivery is. So you want to cut. the amount of resources and the resources that you're trying to cut are generally the machines, the number of machines you're using, the amount of hardware that you're using, and the amount of electricity that you're using. Those are the two key resources. And they both have a cost associated with them. Obviously, the cost of buying the hardware, replacing, maintaining the hardware, housing the hardware, which is more costly and difficult than it often appears. ⁓ And then electricity is the cost of electricity. As you say, that one of the difficulties or one of the things that you are trying sounds like you are trying to achieve and I totally and wholeheartedly applaud this is making it quite like for like. So you're kind of saying, well, the only way you can move forward with improving things is if you have something where you can say, well, this is better this week than last week. And to a certain extent, you have to isolate some of the actual rightness that the moment by moment changes in the information that would just hide the underlying issue from you. that it's, it's why often money is a better metric for early days in improving your operational efficiency than for example, carbon, because carbon mix or carbon intensity of the grid varies moment by moment. So it's very hard for you to tell whether a change that you made, made your system less operational efficiency. efficient by meaning you use twice as much electricity and twice as much hardware, which is often a decision that is under your control as the ops team or the the team. ⁓ it was just sunny. It was just less sunny than expected this week. And therefore your your carbon emissions have gone up. So it's really all about operational monitoring is really all about giving you actionable information, Not true information that is not actionable. So it's prioritizing actionability over correct over moment by moment correctness? that correct? that right?

Niki: Absolutely. And absolutely. what we've done is we've decentralized as a platform engineering team, we've decentralized the optimization of resources so that each engineering team can ⁓ create, can perform and implement these optimizations because they are the domain expert. They are the specialist. So Grafana Labs, as you know, maybe has, ⁓ there's the There's logs, there's metrics, there are traces. I'm a platform engineer. I'm a specialist in Kubernetes. I might not have much in my toolkit beyond, you know, deploying autoscalers like Karpenter and the vertical pod autoscaler. And we do that very well. We do that very, very well. We've achieved ⁓ a really good utilization efficiency metrics. as a platform team ⁓ using Karpenter and we maintain the vertical pod autoscaler so that there's right sizing available for engineering teams.

Anne Currie: So I'm going to interrupt you there because you've introduced a lot of concepts, which I know all about because ⁓ we, know, we, me and my co-authors had to, well, we knew about them already, but we did a lot more ⁓ investigation and writing about them for writing the book. So you've ⁓ introduced a couple of concepts there that are utterly key to operational efficiency. So using fewer machines to produce the same results. ⁓ I would say the

Niki: Mm-hmm.

Anne Currie: probably the most fundamental one, which all the others kind of serve to improve is utilization, machine utilization. And what that means is if you're running them, if you've got your system set up, and this is very, very common, I think a couple of years back, it was Gartner came out, so the average enterprise has a machine utilization of 10 to 15 % in their data centers. That's not surprising. And if you look at somebody who's doing things really well, like Google, who have excellent machine utilization, they have more like 80, maybe even 90%. Yeah, they have the 80 to 90 % range of utilization. That means that ⁓ for doing a what should be a similar job, Google require maybe seven or eight times, times fewer, like 10x effectively fewer machines, they use 10x fewer resources, an order of magnitude fewer resources to deliver the same effect because they're really good at machine utilization. And that's that there's no, there's no debate over that. If you use, if you just have fewer machines and you're using, as a result you're using less electricity because a partially utilized machine uses more or less the same, a lot of the electricity of a fully utilized machine. you know, there's, there's no, it's... It's a no brainer to reduce the number of machines that you've got and increase the utilization. So utilization is the key thing in operational efficiency to increase your utilization, decreases your resource usage. And a couple of the techniques that are used to do that are auto scaling and also, say, mentioned Karpenter of scheduling, clever schedulers. So why don't you tell us a little bit about how autoscalers do it and then we'll talk a little bit about how clever schedulers do it.

Niki: So there's ⁓ a couple of different concepts that we can use with autoscaling in Kubernetes. One of them is bin packing and the other one is right sizing. So bin packing is exactly what you're describing where we try to orchestrate as many pods to land on the same node so that we can reach a higher percentage of utilization on that node, ranging from 70 to 90 percent. 80 percent is probably your sweet spot. Anything above that starts to actually be a regression in terms of performance. We've seen that anything closer to 90 percent can actually increase latency for scheduling things or pods that are burstable cannot scale up. And I also have seen some academic research around, you know, the energy efficiency on machines starts to degrade at these really high levels. So probably, I think the target would be 70 to 90, ideally 80%. So that's been packed.

Anne Currie: So I'm going to zoom in a little bit on that one as well, because that's oddly enough the subject of another book I wrote separately before Cloud Native, before building read software called the Cloud Native Attitude, which is about kind of what are the modern techniques that have led to the cloud and led to the ability for the cloud to make as much money for cloud providers as it does. And for if you use it right for it can be very good. You know, it's all down to whether are you cloud native or are you not cloud native? All of this bin packing is about, OK, well, look, I've got a big, I've got rather than just having one application per server which is used to be the way that things ran. And that's very, that's that leads to your 10 percent utilization or even less. If you wrap each application in something in some kind of encapsulating layer. Now that might be a virtual machine, it totally encapsulates your application, but it's more lightweight if it's a container and it's ⁓ quicker to move it around and it's ⁓ quicker to start and stop it if it's a container. So you need a wrapping to wrap up your application, so virtual machine or ⁓ container. And then you can say, well, hang on a minute, let's bin pack. my applications onto the effectively at the lowest level onto the physical service that I've got. Like ⁓ Kelsey Hightower always used to do an excellent visual representation of this when he would play Tetris live on screen. He said it's like playing Tetris live ⁓ with your operational with all the applications that you want to run across your entire estate. ⁓ his point there was you can't do it manually. have, know, you can't have your engineers sitting there doing right. Billy, if it required people to be playing Tetris live, then you wouldn't be doing it on your systems. But automation through things like Kubernetes ⁓ of ⁓ schedulers ⁓ like Karpenter allow you to effectively do that playing Tetris and packing thing, bin applications onto your physical. servers in an automated way all the time, in a way that humans could never possibly possibly do it. All of this auto-scaling and bin packing and the efficiency levels that you're talking about, know, 80 % are only achievable because of programmatic control of data centers. which, know, the beginning of my career certainly was not a thing even until the most Enterprises is still not a thing, but it is a thing.

Niki: Yeah, that's, that's the, that should be a must. this kind of really ⁓ bin packing ⁓ an orchestrator like Kubernetes ⁓ such a lifesaver when it comes to ⁓ at scale. And then, ⁓ then there are there, the maturity model continues the way I see it after you've bin packed as much as you can. ⁓ Karpenter is doing its thing. The next thing that you can implement is right sizing. And then I'll get to unit economics, but right sizing is when, well, okay, let's look at the pods anatomy. It's going to request a pod is. It's a container, which is ⁓ just an application, a workload. It's the unit.

Anne Currie: So define a pod for us. I have a wide range of listeners.

Niki: it's the smallest unit components Kubernetes. So let's say you wrap up your application in a container. Maybe you Docker. You then have ⁓ a deployment ⁓ manifest for application. And then you have maybe ⁓ three replicas of your application running in the Kubernetes cluster. So at that point, what you can do is you can set ⁓ the resource in terms of CPU and memory that your application will request when it's being scheduled onto a node. So it will request memory and CPU utilization. You can set a limit, which is very important to set a limit for how much your pod is going to request. ⁓ But you might not always get it right. might over-provision ⁓ CPU and memory for your application, for your pod. So at that point, what can help is something called the vertical pod autoscaler, which is another Kubernetes tool that can help with right sizing. So right sizing with VPA is when you ⁓ set a really high upper limit, but then Below that, the VPA algorithm will adapt the memory and CPU that your pod is requesting. So might lower it, it might increase it. ⁓ And that's ⁓ another smart tool that you can use, another scheduler that you can use to optimize resources at that small unit ⁓ that is your pod.

Anne Currie: So that's very interesting. ⁓ And it's interesting Because it, right sizing used to just be kind of like, well, if you're talking about a physical machine or a VM, a VM, would have said a VM was you get a VM and you say, well, hang on a minute, you you over provisioned the VM, you get a bigger size than you need to, you buy a bigger machine than you need to. And then you say, well, actually, that wasn't really what I wanted to do. if you're on prem, it's more difficult then because you bought the machine and you go, well, I'm using it. in the cloud, one of the points of the cloud is that you can right size. You can say, actually, that VM was a bit bigger than I need. Can I it? And a good ops team will be doing that all the time. ⁓ always over provision to start with, and then you right size because you don't really know. When first deploy something, ⁓ it's hard to know how much resource it's going to need. And so you over provision because that's the sensible thing to do. because if you over-provision, then it costs you money. If you're under-provision, it falls over. you're always err the side of caution and over-provision. And then at some point later, you manually go back through usually and ⁓ right the old days, you'd have gone manually through and said that VM is oversized, I'll to a small one. And in fact, that never really happened because ⁓ physical processes that where you go through and ⁓ ops teams busy and they don't need to, it just costs money. so they don't go through and right size. So one of the big things that we've all been trying to work on is how do you make right sizing happen automatically, auto scale, that you're not relying on people going, ⁓ do you know what? I've got load of spare time at the moment, so I'm gonna go back and do a right sizing review, a manual right sizing review of my entire system, which I suppose it never happens. It does sometimes happen because I have come across companies that do something called thrift-a-thons, ⁓ where rather than doing a hackathon, they all go, actually, let's see if we can make the system greener and cheaper to run, we'll do a thrift-a-thon. And at that point, we go through and right size everything and make a bit of a, you know, and have a beer or whatever, but don't have a beer while you're right sizing the systems. the never have a beer while you're making operational changes to your production infrastructure. But the generally speaking, right sizing never happens. So you're talking about automatic right sizing. Now there are two, but I'm also gonna zoom in because you're talking about quite a clever, a second and a meta level of right sizing your systems. You can use things like auto scaling that people are often quite familiar with on VMs. And an auto scaler in a VM will kind of like. fire up more VMs. Generally, it's about firing up more VMs and scaling horizontally rather than vertically and making the VM bigger because that's a bit complicated. But also scaling generally on clouds is about, okay, we're running out of resources. I'm going to create some more. going to scale vertically, create more copies of this application and run up my capacity that way. That's auto-scaling. And we talked about that in Holly Cummins talks about that in Building Green Software. And that but that is kind of meta VM level auto scaling that everybody's quite used to. ⁓ But this is a cleverer kind of this is this is a zoom in auto scale. This is rather than this is about someone saying, well, rather than doing or you were very familiar with the concept of auto scaling at the VM level by firing up more ⁓ VMs. ⁓ But what if we were to look at start looking at within with it ⁓ at the container level rather than the VM level? You know, I said a bit like we we were playing we're playing Tetris and it turns out that everybody's just got bigger, ⁓ bigger squares and shapes on the Tetris than they really needed to. And you fitted them all ⁓ and you know, and and they fitted. at the time, but actually it was only because people were trying to make them bigger than they needed to be. Is there a way that we've already got these out there, we've got them running? Is there a way we can just say, say, let's make all of those smaller and fit in more onto these machines, live as you go. And again, that's something that realistically could never have been done by human hand. That's like, that's playing live Tetris squared. You're playing live Tetris except that the size of the shapes as they're falling are changing. just absolutely no way that that could have ever been done by an operational team manually. ⁓ Even Kelsey Hightower could not do that live, say on stage during a talk. ⁓ Is that really, ⁓ you could of course do it programmatically. that is what Karpenter is about. It's about saying that was always bigger than it needed to be. Let's make it smaller. And then let's replay that whole Tetris screen to fit more stuff onto the machine because actually it was bigger than it needed to be. So it's a kind of meta level of over-provisioning. ⁓ ⁓ I have that right?

Niki: Yeah, yes. And so a lot of this can be automated. And we've seen also some use cases where ⁓ the vertical pod autoscaler, can fit most workloads. It can work with most workloads. There are some exceptions that we've seen. Obviously, vertical pod autoscaler itself, but also other workloads, maybe those that have a really sp- big spike in utilization when they start up. So startup resource utilization can be different than runtime utilization. So what we've seen is sometimes VPA, well, what VPA does, it will restart the pod ⁓ when it receives a signal that it should increase the resources for this pod. So what we've seen is we've seen this these loops, these eternal out of memory loops that can happen if a pod that has been restarted to scale it up ⁓ doesn't have enough memory allocated to it. So it keeps restarting and vertical pod.oscaler fails to adjust to it and adapt its ⁓ memory utilization. But Kubernetes had a really cool new feature. It was released a few months ago. Maybe it must be less than a year ago. But this in-place restart. So you avoid this problem of having an out-of-memory issue ⁓ because VPA no longer requires to restart. the pod in order to increase or decrease its CPU or memory ⁓ utilization, the request or the limits for this pod. So this is a wonderful new feature ⁓ that can help even some of these harder edge cases that cannot be automated with VPA. these right sizing edge cases that cannot be automated with UPA. But now we see this solution that was built in the open, right? Because it's all open source. And I know I've been tracking this feature for two or three years. ⁓ And it took a really long time to build it and release it, but it's out there. And so maybe if anyone is listening to this and has not. has not heard of this feature, check it out because it can really even adapt to these difficult pods that were the outliers before, but not anymore.

Anne Currie: So this kind of reminds me, I am gonna have a guest later on in this podcast who really speaks to this very well. He's currently the ⁓ engineering director, I think, at Sky Scanner in the UK. Now Sky Scanner were one of the very, very cutting edge companies that used all of the things. So ⁓ all of the early... ⁓ orchestration, all of the early container orchestration. they went through, wrote, I've written multiple case studies of them over and over, over the many years over the decade. And one of the things they said is, you know, things do change all the time, but and one of the really difficult things about doing this really complicated automation of your data centers is it's really complicated. And it's not just really complicated. it's very trial and error because things change all the time. And a lot of stuff that gets shipped, it's still, in the early days, it still has a lot of problems. So you have to be really, really comfortable with trial and error to use these early Kubernetes and scheduler features. So the Virtual Pod Autoscaler, the VPA, is part of Kubernetes. It's just another scheduler for Kubernetes. it's quite a sophisticated scheduler that it has been around for a long time. really like the idea of it. It's probably not your I wouldn't jump, but if you if you're new to Kubernetes, do not start there. It is definitely advanced Kubernetes isn't it? You do need to learn the skills and don't go.

Niki: Yeah, the internals. Yeah. And I think that's the beauty of a platform engineering team working with product engineering teams that we can hide away a lot of the complexity. I've contributed to VPA in code. I've gone through the code base. It's a very complicated algorithm. But the user interface of using VPA and just adding a VPA definition, which is ⁓ just a YAML file for your workload. That's not that hard, but deploying VPA itself, understanding it has like three or four different components to it. Understanding that can be a challenge. So I really like the contract that we've built between the platform engineering teams, maintaining these tooling. and making it really easy to use. So one of my past lives before I was doing unit economics, it was to make it as simple as possible to use VPA. If you're a product engineer and you're out there building Grafana or Prometheus ⁓ and you don't have the time to learn all about VPA, don't worry. I'm here for you. I'll make it so simple for you to use it. It will be so easy. The docs are there. A lot of it comes down to docs, to writing good documentation.

Anne Currie: ⁓ yeah, a lot of does come down to lots, that is true.

Niki: So I've had to advocate a fair bit, but it runs itself. Eventually it just kind of runs itself and I moved on because there wasn't much more to do with it, to be honest.

Anne Currie: Well, so there are a couple of things there. I'm going to pick you up slightly on, you are an expert in the use of Kubernetes. You have contributed to Kepler, to VPA code, to this is, you are hot stuff when it comes to operational efficiency. And I would say that the VPA, so what you're really signaling at this point is you feel that VPA, it has been It has been a bit, it's been hard to use and you've got to have been part of a company that had a really, really healthy attitude to trial and error. And that's a whole company thing because stuff fails with these new, quite complex bits of software. Everybody has to be on board with the fact that you're going to massively cut your costs. If you can get it to work, you're going to become much more, you're going to be much more resilient and responsive in the long run, but you are going to have issues along the way. you're effectively saying that the virtual pod autoscaler, which I have heard is that me in the past is amazing, but hard. I've spoken to a lot of people over the past few years who've said it's hard. You have to be ridiculously good to use the VPA. And even if you're ridiculously good, there were issues with using the VPA. You're now saying it's actually more, it's kind of closer to mainstream. So if you've used it in the past, and you found it difficult, maybe now it's time to take another look at it? Is that kind of what you're saying?

Niki: I think so. I think with the in-place restart feature that landed in Kubernetes in the past few months, I don't see any other edge case that VPA doesn't cover. Well, actually, that's a lie. We do have some workloads for which we don't want to use VPA. And those are some of our really large Prometheus. ⁓ some of our big Prometheus instances. And for that actually we use cron job ⁓ Argo ⁓ And we have, we periodically right size our Prometheus instances, ⁓ the ones my team maintains ⁓ and ⁓ We built a small for that. It's kind of like a replacement of VPA a little bit, but just very, very, very, very, very simple. And we'll only right size every, I think it's once a week or every two weeks, basically because VPA right sizes very quickly and the day potentially, whereas you might want a slower cadence of right sizing. So that's the exception. ⁓

Anne Currie: So I'm going to step back and say that here you are representing, although you were here as a person who likes really green things and being like, here you are representing a company that is at the, what I'm hearing from this is that Grafana is really very, at the most sophisticated end of using a programmatic data center, a programmatic infrastructure in a data center, which is probably unsurprising because Grafana, you're drinking your own, you you're eating your own dog food here. would say, I was about to say you're drinking your own Kool-Aid, but that's, that would be totally the wrong analogy. They totally the wrong cliches using this one. You are, as a company, you're pushing people towards giving them the data to do better and to be more programmatic in their data center, to control their data center, to push down the cost of running their data center, which also down the ⁓ emissions per unit. ⁓ unit cost, so per whatever the unit you choose. So per ⁓ per order, per whatever. So you can do like for like comparisons ⁓ and say, well, it's getting better, it's getting worse in a way that's actually actionable. But what you're describing about your own internal systems are My guess is, and this has been a while, I I used to go out and interview people all the time about what they were doing for the Cloud Native Attitude book and all that's, you we're on edition three of this at the moment. And every time I go back and talk to people about what they're doing, ⁓ most people, you have to remember that most enterprises are still thinking, maybe we should run a thrift-a-thon. They're not manually right-sized things. They're so far off where you are. But it's interesting that you are running an actual application in the wild. Not an application, you're running a service in the wild using VPA. And what you're saying, Virtual Pod Autoscaler for Kubernetes, that is part of the system that you are providing as a service, is what I understand. And you are using it for pretty much everything these days that you've in the early days with these systems, it's always the edge cases. If you are a big end, a big user, you hit the edge cases and it causes you head endless headaches. But we, you know, we always relied on the companies like sky scanner, for example, who were willing to push through those horrendous edge cases and learn and put the feedback in and take the pain and it is really painful get you to the point where, ⁓ ⁓ a more ⁓ enterprise can do it. ⁓ then that's always the case with these things is trying to work out when it is, ⁓ is within the scope of a scope of a, and there were there were there were all kinds of enterprises, you know, you go from the extremely operationally sophisticated to, ⁓ to bare competence and, and And enterprises live on that scale. ⁓

Niki: Yeah, we're definitely pushing the limits ⁓ ⁓ Grafana. And I think, you know, ⁓ unit economics, ⁓ whole ⁓ and concept that is that, well, okay, what else can we do? We've deployed Karpenter, we've deployed VPA, we have covered some edge cases with some tooling, we have... ⁓ We have event-driven auto scaling in place with KEDA which is another Kubernetes ecosystem tool. ⁓ We've done all these things. What else can we do? Well, okay. You know what? Let's gamify cost optimization and utilization efficiency. So this is we are now. efficiency doesn't end with Kubernetes.

Anne Currie: you

Niki: we've realized there are all these other resources that are non Kubernetes resources that we also want to optimize. So we started with economics in Kubernetes, but then we expanded outside of it. ⁓ What I mean by that is we did to use OpenCost, which might be familiar to ⁓ for listeners. OpenCost is a CNCF. project, is used for ⁓ cost monitoring ⁓ in Kubernetes. And what it does is it will query the Kubernetes API, which has information about all of the resources running on a cluster. And then it will calculate the cost of each resource. It will essentially attribute the cost of resources running in a cluster. Attribution is key here. Attribution is the name of the game. It's all about attribution. So open cost helps to get the cost of various resources running in a cluster. What happened was, this is very interesting. ⁓ People are a little shocked when I tell them this. What happened was open cost didn't scale very well for us and

Anne Currie: you

Niki: we do have some really, really large clusters running in some regions. And OpenCost took down the Kubernetes API because there's so many things running in that cluster that it made so many ⁓ queries to the kube-api that the kube-api ⁓ was not responding well. wasn't, this happened before I joined the team, so I don't know exactly, ⁓ did it take down the kube-api? Did stop returning? I'm not sure exactly what happened to it. All I know is that it didn't scale well, and at that point we ended up building our own tool. So we haven't, it's open source. It's all open source. It's called Cloud Cost Exporter. I'm one of the maintainers of this tool. We've done some talks about ⁓ it. Our plan isn't necessarily to increase adoption for it, but it solves our problem. So I'm happy to talk about it.

Anne Currie: So you're making me laugh here because you are absolutely demonstrating the classic behaviour of a very early adopter, an early adopter and somebody who's pushing the boundaries of these systems. ⁓ In some ways, still, you're illustrating my point that a lot of these systems are still for folk who are really keen on, you're the kind of people who will be talking about this at a conference. ⁓ It's like you're showing what's possible and this is all about So it's interesting, you mentioned attribution is the name of the game here. And this isn't about blame, you you're the one who cost us 100 million pounds. This is about, about delegating responsibility to the people who have the power to make the delegating information and ownership to the power to the people who have the ability to make the changes that would actually say rather than having someone on high sake, the costs. ⁓ You know, you get the information. You have the power to change how you're doing things, the code that you're writing, the designs that you're using, and you have the information to do so, and you have the ownership, effectively. It's a way of moving ownership towards the people who have the ability to make the changes. that's what what attribution is about. It's not about blame, it's about ownership and that's that's a really good thing. All of these things are interesting because they all require cultural changes within a company as well. You have to be quite culturally mature to see attribution as about ownership and not about blame. If you're in a company that still would see that is quite blame focused then no one will want attribution because they'll go that sounds like blames me and it probably would be in some companies, it would be it's you're only going to want attribution where you know that the company is is is all about ownership and information and continual improvement and and lack of blame not and psychological safety not blame, blame, blame. In that case, you're going to run a mile from attribution. So this is a really good example of of that kind of thinking. goes hand in hand with a company that can push the boundaries. everybody going, I don't want to touch attribution with the 10 foot pole because I'll all happen will be I'll get shouted at, then you're so far off being using systems. Almost the first thing you have to do. When I wrote ⁓ Cloud Attitude, I was quite interested in the companies that were doing the most on this. all you would have been Grafana would have been in cloud native attitude if I, you know, if I'd known you 10 years ago, you'd definitely been cloud native attitude. As a company that's pushing the edge and I was looking at companies that were pushing it were doing really well and doing amazing things and cutting their costs by 90%, that kind of thing, massively increasing their resilience that those are the wins of this scalability, resilience, cost savings. And we're talking 10X on this. So that's what they're all going for. They all and I was looking for what is the common technology that everybody was using? You know, is it Kubernetes? Is it, you know, the kepler of the day or whatever? But it was not technology. They all everybody who's pushing the edge and producing amazing results. None of them were consistent in what technology they were using. They weren't even using all using Kubernetes at the time. ⁓ The one thing that absolutely was consistent between everybody who was doing well. was CI CD. It was an iterative trial and error mindset. was an, which is why we call, I called the book, we called the book Cloud Native Attitude in the end, because the technique, the technology was the attitude, not that any piece of technology. It was, it was a attitude, trial and error and a safe environment in which attribution did not equal blame. ⁓ Sounds like that's what you got at Grafana isn't it? Really, which is nice.

Niki: Yeah, I think we have a really nice recipe that has led us here. I think there's a lot of factors. One of them, A lot of this culture is top down, but we also have a very engineering driven culture at Grafana. We started with open source. It's very much focused on community and adoption and sharing things and as soon as there's open source as a focus as a ⁓ core attribute of the engineering culture there I don't know from a sociological point of view what that means but that openness is really key ⁓ that willingness to share and not not hold on to the juicy tool that you built and that you're not going to share externally. Or I think there's something to it. And definitely I want to highlight that a lot of it comes down to our engineering leadership and that the CTO, actually Tom Wilkie, he

Anne Currie: Mm.

Niki: ⁓ he's an engineer himself and he started, know, part of his career, for part of his career he was a Prometheus maintainer. So he was a Kubernetes maintainer himself. I think that is a huge contributor to everything that we've talked about today. The fact that our CTO ⁓ contributed to Kubernetes himself. And so that just That is why we operate the way we do today. And that has driven our culture towards, you know, adopting a lot of Kubernetes tooling, adapting it, contributing back to it, open sourcing all the things. So the fact that I can share all this with you is because we have such a big culture of open source and about sharing openly, building openly, and innovating in the open. I do think that's a huge cultural aspect that helps a lot. And I think we're growing, or innovation is growing so much more because of this. So I truly love open source software. I've been in this business almost 10 years and it's just, it's been open source from day one. ⁓ So I'm a huge, huge proponent of it. ⁓ I think that, yeah, that helps so much.

Anne Currie: Yeah, so we have I was only going to talk for 30 minutes because I didn't want to overload people's brains. We have now talked 50 minutes with loads of stuff, which is quite complicated. I think and I hadn't really because fundamentally, we all got a bit carried away here with high end ops style. So high end ops, which is really interesting, because it's really interesting high end ops. But the reason why we all got into this was, well, it wasn't the reason we got into it, but the reason why we really love it is because operational efficiency is green. And that's why we're still over here today. ⁓ But so we'll both sign off on the operational efficiency is green. You do not have to be as sophisticated as Grafana, who is absolutely, you you're not Google, but you're at that end of the scale of how sophisticated you are compared to

Niki: and Mm.

Anne Currie: if even if you're at the very beginning of this journey, if there's one thing to take away from this, I think it's what you said at the end, which is you have to be open, you have to be willing to share, you have to put things out there and then and be willing, trusting, willing to take on and try and have a play around with and accept attribution as a useful tool, not a tool of blame. And iterate and just kind of go units of units. units of cost, know, do I can I make this just a little bit better, just a little bit better, just a little bit better, CI CD, rolling around feedback loops, all of these things are utterly key to being at that high end of operational efficiency, which which Grafana is. And yeah, it's more useful to have you on than somebody from Google, because Google is such a big business, I'll never be able to get someone who knows how it works, what's what's going on in their entire

Niki: Yeah.

Anne Currie: estate, whereas you do know what's going on at the Grafana estate and you do know how how things happen that way. that's quite interesting.

Niki: Yeah. I just love decentralizing this information. I think it's been a core part of being a platform engineer and adopting the platform engineering mindset is that, well, my role is here to create golden paths for other engineers to adopt this important tooling. So, but I can multiply my environmental impact and my beliefs in green ops. by sharing these best practices internally at Grafana with all the other engineers in the company and externally ⁓ by helping these golden paths and best practices get adopted. So in my personal growth journey, I've seen, I've always tried to be a catalyst and I've always asked myself, how can I grow and scale my impact? I think platform engineering lends itself very well to doing that. ⁓ And so that's been, that's another whole conversation. I think we could talk more about the unit economics another time. So I am foreshadowing another conversation around that. We didn't even touch AI and token economics.

Anne Currie: You No, because we talked a lot about stuff, future podcasts will zoom in on some of those things. We've already covered a lot today, which is good. thank you very, very much indeed for being on the podcast and showing us what the highest end of operational efficiency is. So at the moment, you are the person who is the hands-on person representing the highest end of operational efficiency.

Niki: next time. Yeah. Yeah. Yeah. We've covered the basics.

Anne Currie: So not code efficiency, I'm going to have a of code efficiency experts on separately, but you are the operational efficiency high end. Don't everybody gets ⁓ put off by the fact that actually you're really pushing the edge of this. Most enterprises, we're looking to you to find out where things are going ⁓ and what good will look like in maybe five years for the majority of enterprises. But it's really useful to talk to you. So we do know what good looks like what we're all heading for. And all of the tools, as you say, all the tools that you use at Grafana are open source tools. They're available to everybody doesn't necessarily mean that you should use them immediately unless you're feeling very confident about your ability to do trial and error, but they're all open source tools. That's that's the other reason for talking to you here about this rather than say talk to somebody at Google.

Niki: Thank you.

Anne Currie: A lot of the Google tools are still proprietary, internal. They're not proprietary, but they're internal tools. haven't, they're not open source, not available to everybody. But everything that you are doing, all this clever stuff that you're doing at Grafana is open source. So in theory, anybody could do it. In theory, don't do it. ⁓ You can do it. Don't do that. A lot of thoughts about your company culture before you go there.

Niki: Yeah. Yeah, there's a lot of organizational things that do need to happen before you can replicate this whole pattern that I've just described. ⁓ But everything is achievable. And I do sometimes see myself as like opening a path. I'm clearing a path. I feel like I'm clearing a path and showing others how to follow along. ⁓ I definitely see that. mental image quite often about where we're heading. And I'd love to talk, we'll talk about token economics next time.

Anne Currie: ⁓ yeah, token ops. really want to talk. Token maxing versus token ops was the subject of my, Sara Bergman and I did a podcast on environment variables that will come out imminently on token maxing versus token ops. Is token maxing evil or is it, does it ever have a place versus token ops, which I will talk to you about at some point in the future. Tokenomics.

Niki: ⁓ yeah. Coconomics. Let's add Coconomics to the mix of terms.

Anne Currie: So yeah, we can talk about token maxing, token ops and tokenomics next time you are on asynchronous and unreliable podcast. But for the moment, thank you very much. And you've given me a hell of a lot of stuff to edit to get this out today while it's still Earth Day somewhere in the world.

Niki: It's Earth Day! It's ⁓ somewhere in the world, I'm sure it's still Earth Day. It's Earth Week it's Earth Day every day for us. And thank you so much Anne for everything that you do. And ⁓ so excited for ⁓ Sara ⁓ episode and all the other episodes in your podcast. And I'm so excited to come back as well and ⁓ more about Tokenomics and everything else.

Anne Currie: Well, I look forward to it. So thank you, Nikki. Thank you to all our watchers and listeners. And hopefully I will see you again on a future episode of Asynchronous and Unreliable Podcast. Goodbye.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Ep 36: What Is Psychological Safety? With Psychologist Andrea Dobson

    Nov 23, 202629 minAudio

    Psychological Safety, Burnout and Speaking Up What makes it possible to say, “Something isn't right”? And how do you spot someone who is taking on too much if they never complain? Counselling psychologist Andrea Dobson...

    Credit the people on this episode

  2. Ep 35: Why Are Feedback Loops So Vital to Humans & AIs With Critical Systems Expert Jon Berger

    Nov 16, 202631 minAudio

    What do steam engines, fighter pilots, Japanese manufacturing, software development and AI agents have in common? Feedback loops. In this episode, Anne is joined face-to-face for the first time by returning guest (and...

    Credit the people on this episode

  3. Ep 34: Is Your Key Person About to Burn Out? With Clinical Psychologist Andrea Dobson

    Nov 9, 202629 minAudio

    Every tech organisation knows a Brent: the brilliant, helpful person everything goes through. Being indispensable can feel good - but what happens when that person reaches their limit? Counselling psychologist Andrea...

    Credit the people on this episode

  4. Ep 33: Will Open Source Maintainers Survive AI? With OpenUK and the CNCF's Liz Rice

    Nov 2, 202616 minAudio

    Liz Rice, O'Reilly author and open source expert joins Anne to talk about the problems faced by OSS maintainers in the face of a tsunami of AI-generated PRs. When does being helpful become more like an attack? What is...

    Credit the people on this episode

  5. Ep 32: AI, Security and eBPF: Buying Time Against the Hackers with AI & Security Expert Liz Rice

    Oct 25, 20261 hr 2 minAudio

    What happens when attackers can exploit vulnerabilities faster than organisations can patch them - sometimes before the vulnerabilities have even been publicly disclosed? Anne talks to Liz Rice, Chief Open Source...

    Credit the people on this episode