# How moving from AWS to Bare-Metal saved us $230,000 /yr.

**URL:** <https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525>\
**Category:** AWS Cloud Talk\
**Created:** [November 22, 2023, 7:33am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525 "2023-11-22T07:33:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![optdampet](https://awshq.com/letter_avatar_proxy/v4/letter/o/b5e925/32.png) [@optdampet](https://awshq.com/u/optdampet)\
**Post date:** [November 22, 2023, 7:33am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/1 "2023-11-22T07:33:12Z")

</div>

In the ever-evolving world of technology, businesses are constantly looking for ways to optimize their operations and reduce costs. One such journey we embarked on was moving our infrastructure from Amazon Web Services (AWS) to a bare-metal solution. This transition not only provided us with more control over our resources but also resulted in substantial financial savings.

While the cost savings and technological benefits were significant factors in our decision to move from AWS to a bare-metal solution, there was another crucial reason behind this transition.

Most of our customers are on the public cloud, and part of our service involves notifying them when the public cloud goes down. To ensure we can provide this service reliably and independently of the public cloud’s status, we needed to be on our own dedicated data center.

By moving to a bare-metal solution in a colocation facility, we’ve been able to achieve this independence. This move has not only resulted in substantial cost savings but also enhanced our service reliability and customer communication, further demonstrating the multifaceted benefits of considering alternative infrastructure solutions.

Our Initial Setup: Kubernetes on AWS

In the early stages of our technological journey, we adopted a Kubernetes cluster on Amazon Web Services (AWS), utilizing their managed Elastic Kubernetes Service (EKS) offering.

OneUptime, our open-source observability platform is built on a robust foundation of open-source software such as Redis, Postgres, Clickhouse, Docker, NodeJS, and BullMQ. Interestingly, none of these technologies are AWS-specific. This choice was intentional and strategic.

Our goal was to avoid reliance on AWS or any proprietary cloud technology. The reason? We wanted to empower our customers with the ability to self-host OneUptime on their own clusters. This approach not only aligns with our commitment to open-source but also provides our customers with greater control and flexibility. For those interested in self-hosting OneUptime, the Helm chart is readily available on Artifact Hub here.

While AWS offered us flexibility and scalability, we began to realize that these benefits could be achieved elsewhere and at a fraction of the cost. This realization sparked a shift in our approach and led us to explore more cost-effective yet equally efficient alternatives.

The Transition: Moving to Bare-Metal

In our continuous pursuit of technological excellence, we recently made the strategic decision to transition to a bare-metal solution. Our choice was to run a Microk8s cluster in a colocation facility, a decision driven by our past experiences and future aspirations.

Historically, we’ve always maintained an internal self-hosted test cluster on Microk8s. This hands-on experience with a Kubernetes flavor not only enriched our understanding but also bolstered our confidence in setting up a production-ready cluster.

There’s a common misconception that Microk8s is solely for edge computing or development purposes. However, this couldn’t be further from the truth. In fact, numerous companies, including ours, are now leveraging Microk8s in production environments. This shift is testament to the robustness and versatility of Microk8s, proving it to be a viable option for diverse use-cases.

Transitioning to bare-metal servers has provided us with dedicated resources, effectively eliminating the ‘noisy neighbor’ issue often experienced in shared hosting environments like AWS. This issue arises when multiple customers share the same server resources, leading to performance degradation if one customer hogs more than their fair share of resources.

Now, we have complete control over our hardware. This autonomy allows us to fine-tune our servers to meet our specific needs, optimizing performance and efficiency. We can customize every aspect of our infrastructure, from the operating system and network architecture to the type and amount of storage used.

The Role of Kubernetes and Helm in Our Transition

Technologies like Kubernetes and Helm have played a significant role in our transition from the cloud to our own servers. Kubernetes, an open-source platform designed to automate deploying, scaling, and operating application containers, has made it easier for us to manage our applications on our own servers.

Helm, on the other hand, is a package manager for Kubernetes that simplifies the process of defining, installing, and upgrading complex Kubernetes applications. It’s like a homebrew for Kubernetes; it packages up applications into charts (collections of files that describe a related set of Kubernetes resources) that can be deployed onto your cluster.

These technologies have made it incredibly easy to ‘de-cloud’ and move to our own servers. They’ve provided us with the flexibility and control we needed while ensuring that the transition was smooth and efficient.

Storage and LoadBalancers

Most people are confused on how are volumes provisioned and how are load balancers provisioned on a bare metal kubernets cluster,

We use Network File System (NFS) for volumes. NFS is a distributed file system protocol that allows a user on a client computer to access files over a network in a manner similar to how local storage is accessed. Microk8s makes it incredibly easy to implement NFS storage, which has been a significant advantage for us. You can check their docs here on how to configure one: [https://microk8s.io/docs/addon-nfs](https://microk8s.io/docs/addon-nfs)

For managing publicly facing services, we use MetalLB. MetalLB is a load-balancer implementation for bare metal Kubernetes clusters, using standard routing protocols. Microk8s offers a plugin that simplifies the process of integrating MetalLB into our setup. You can check the docs here: [Addon: MetalLB | Canonical](https://microk8s.io/docs/addon-metallb)

We will do a blog post soon to explain how to configure these if you’re thinking about de-clouding yourself.

The Financial Impact: Saving $230,000+ per Year

Before Migration

When we were utilizing AWS, our setup consisted of a 28-node managed Kubernetes cluster. Each of these nodes was an m7a EC2 instance. With block storage and network fees included, our monthly bills amounted to $38,000+. This brought our annual expenditure to over $456,000+.

After Migration

We transitioned to using a single rack configuration at our co-location partner, providing us with 40 rack units of usable space. With each server being 2U - we could potentially rack about 18 of them (other U’s are usually for networking equipment). Each of our servers are upgradeable to over 1 TB of RAM and has 2 socket 128 core CPU with about 80 TB usable of storage in our storage cluster.

The financial implications of this move were significant. We allocated and invested $150,000 in new servers for our bare-metal setup. While this might appear as a substantial upfront cost, the long-term savings have been nothing short of remarkable.

Our monthly operational expenditure (op-ex), which includes power, cooling, energy, and remote hands (although we seldom use this service), is now approximately $5,500. When compared to our previous AWS costs, we’re saving over $230,000 roughly per year if you amortize the cap-ex costs of the server over 5 years. This substantial reduction in expenses has enabled us to allocate resources to other critical areas of our business and has facilitated the hiring of more engineers. Thats over 55% in savings for better compute!

Things to Consider

Backups: We back up all of our data multiple times a day to a storage server located at two of our offices - one in Boston, US, and the other in London, UK. You can also do this to a public cloud. We think its easier and cheaper to do it on-prem.

Multi Location Cluster: You could also run a multi-location kubernetes cluster on two different co-location facility with 2 different co-location partners in 2 different continents for higher redundancy. You could potentally do this by creating a VPN between these two locations.

Backup Cluster: We have a ready to go backup cluster on AWS that can spin up in under 10 minutes if something were to happen to our co-location facility. Helm charts + k8s make it really easy to spin these up. We still use AWS in disaster scenarios and haven’t closed our AWS account just yet!

Server Admins: When planning a transition to bare metal, many believe that hiring server administrators is a necessity. While their role is undeniably important, it’s worth noting that a substantial part of hardware maintenance is actually managed by the colocation facility. In the context of AWS, the expenses associated with employing AWS administrators often exceed those of Linux on-premises server administrators. This represents an additional cost-saving benefit when shifting to bare metal. With today’s servers being both efficient and reliable, the need for “management” has significantly decreased.

Use of Microk8s: There is a common misconception that Microk8s is only for edge computing or development purposes. However, this is not true at all. Microk8s is a small, fast, and single-package Kubernetes distribution that can run on any platform. Many companies, including ours, are using Microk8s in production environments and the official documentation supports this use case. We have been very satisfied with Microk8s so far, but we are also flexible to change to another Kubernetes distribution if needed. The beauty of Kubernetes is that it is portable, extensible, and open source, so switching flavors is easy. We chose Kubernetes because it is the best platform for managing containerized workloads and services.

Conclusion

Our transition from AWS to bare-metal infrastructure underscores the fact that while cloud services such as AWS offer robust flexibility and power, they may not always be the most economical choice for every enterprise. By harnessing the power of open-source technologies and investing in our own hardware, we’ve not only gained greater control over our resources but also realized substantial savings in operational costs.

It’s important to remember that each business has its own unique needs. What proved successful for us may not necessarily yield the same results for everyone. Therefore, conducting a comprehensive evaluation of your specific requirements is crucial before undertaking such a transition.

Thanks to advancements in technologies like Docker, Kubernetes, Helm, Microk8s, and more, transitioning to bare-metal infrastructure is now significantly easier than it was just a few years ago.

---

<div class="post-metadata">

**Author:** ![andrewguenther](https://awshq.com/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@andrewguenther](https://awshq.com/u/andrewguenther)\
**Post date:** [November 22, 2023, 7:45am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/2 "2023-11-22T07:45:17Z")

</div>

I’d bet money that they were not on any form of savings plan or RIs. If they were, they would have had a committed spend and wouldn’t have migrated.

The savings rate for an EC2 savings plan 3-yr upfront for m7a instance types is 55%…about the same amount they say they’ve saved by migrating.

Granted, they had other reasons for migrating, but comparing on-demand pricing to bare metal is nonsense.

---

<div class="post-metadata">

**Author:** ![justin-8](https://awshq.com/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@justin-8](https://awshq.com/u/justin-8)\
**Post date:** [November 22, 2023, 8:07am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/3 "2023-11-22T08:07:07Z")

</div>

> [@andrewguenther](#):
>
> I’d bet money that they were not on any form of savings plan or RIs. If they were, they would have had a committed spend and wouldn’t have migrated. The savings rate for an EC2 savings plan 3-yr upfront for m7a instance …

Every time it’s always this. Or they are at single digit utilisation of instances and 85% of the cost is EC2 and EBS.

---

<div class="post-metadata">

**Author:** ![andrewguenther](https://awshq.com/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@andrewguenther](https://awshq.com/u/andrewguenther)\
**Post date:** [November 22, 2023, 8:41am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/4 "2023-11-22T08:41:04Z")

</div>

> [@justin-8](#):
>
> Every time it’s always this. Or they are at single digit utilisation of instances and 85% of the cost is EC2 and EBS.

> Our goal was to avoid reliance on AWS or any proprietary cloud technology.

Statements like this are always a dead giveaway they had no clue what they were doing.

---

<div class="post-metadata">

**Author:** ![SolderDragon](https://awshq.com/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@SolderDragon](https://awshq.com/u/SolderDragon)\
**Post date:** [November 22, 2023, 8:54am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/5 "2023-11-22T08:54:20Z")

</div>

This article doesn’t discuss the hit in redundancy the new architecture has, being available in only 1 rack/datacenter.

I wonder how much the cost savings would be if they deployed a more equivalent multi-zone setup.

---

<div class="post-metadata">

**Author:** ![Kralizek82](https://awshq.com/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@Kralizek82](https://awshq.com/u/Kralizek82)\
**Post date:** [November 22, 2023, 9:00am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/6 "2023-11-22T09:00:40Z")

</div>

> [@justin-8](#):
>
> Every time it’s always this. Or they are at single digit utilisation of instances and 85% of the cost is EC2 and EBS.

Isn’t it the target to keep instances at 10% cpu or below? 🤔

(Honest question)

---

<div class="post-metadata">

**Author:** ![mba\_pmt\_throwaway](https://awshq.com/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@mba\_pmt\_throwaway](https://awshq.com/u/mba_pmt_throwaway)\
**Post date:** [November 22, 2023, 9:06am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/7 "2023-11-22T09:06:49Z")

</div>

> [@andrewguenther](#):
>
> I’d bet money that they were not on any form of savings plan or RIs. If they were, they would have had a committed spend and wouldn’t have migrated. The savings rate for an EC2 savings plan 3-yr upfront for m7a instance …

Yeah, it’s a bit disingenuous to compare OD pricing to a bare metal config that they’re amortizing over 5 years. Also comparing 28 “M7a” (??? Why mention the family and not the insurance side) to 18 128 core servers is overly vague. And what about incremental capacity and disaster recovery? They might have a point that bare metal works better for some customers, but I’d argue _most_ customers won’t fall in that bucket.

---

<div class="post-metadata">

**Author:** ![Dull-Wrangler-5154](https://awshq.com/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@Dull-Wrangler-5154](https://awshq.com/u/Dull-Wrangler-5154)\
**Post date:** [November 22, 2023, 9:07am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/8 "2023-11-22T09:07:13Z")

</div>

> [@Kralizek82](#):
>
> Isn’t it the target to keep instances at 10% cpu or below? 🤔 (Honest question)

I’ve never heard that before. Where are you getting that?

---

<div class="post-metadata">

**Author:** ![andrewguenther](https://awshq.com/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@andrewguenther](https://awshq.com/u/andrewguenther)\
**Post date:** [November 22, 2023, 9:12am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/9 "2023-11-22T09:12:21Z")

</div>

> [@Kralizek82](#):
>
> Isn’t it the target to keep instances at 10% cpu or below? 🤔 (Honest question)

You might be thinking about burst instances? In general, you don’t want to leave capacity just sitting there.

---

<div class="post-metadata">

**Author:** ![Kralizek82](https://awshq.com/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@Kralizek82](https://awshq.com/u/Kralizek82)\
**Post date:** [November 22, 2023, 9:14am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/10 "2023-11-22T09:14:28Z")

</div>

> [@Kralizek82](#):
>
> Isn’t it the target to keep instances at 10% cpu or below? 🤔 (Honest question)

Can’t remember. I’m not into ops. It was someone who was and wanted the instances always be at 10-25 % to be able to handle spikes.

I guess they were expecting a reddit kiss of death or something 😂

---

<div class="post-metadata">

**Author:** ![Kralizek82](https://awshq.com/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@Kralizek82](https://awshq.com/u/Kralizek82)\
**Post date:** [November 22, 2023, 9:14am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/11 "2023-11-22T09:14:57Z")

</div>

> [@Dull-Wrangler-5154](#):
>
> I’ve never heard that before. Where are you getting that?

Can’t remember. I’m not into ops. It was someone who was and wanted the instances always be at 10-25 % to be able to handle spikes.

I guess they were expecting a reddit kiss of death or something 😂

---

<div class="post-metadata">

**Author:** ![ultra\_ai](https://awshq.com/letter_avatar_proxy/v4/letter/u/f6c823/32.png) [@ultra\_ai](https://awshq.com/u/ultra_ai)\
**Post date:** [November 22, 2023, 9:21am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/12 "2023-11-22T09:21:05Z")

</div>

Congrats on moving from opex to capex and maintaining that shit, plus upgrades.

---

<div class="post-metadata">

**Author:** ![cutsandplayswithwood](https://awshq.com/letter_avatar_proxy/v4/letter/c/9fc29f/32.png) [@cutsandplayswithwood](https://awshq.com/u/cutsandplayswithwood)\
**Post date:** [November 22, 2023, 9:30am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/13 "2023-11-22T09:30:19Z")

</div>

$230k a YEAR savings?

What a joke. plenty people spending many times more than $230k a MONTH and AWS is still the right option… because math.

These folks switched from cloud to prem for less savings than a midrange infra engineer.. maybe hiring one of those who knew anything about AWS would have saved more over the long run?

---

<div class="post-metadata">

**Author:** ![Tridente](https://awshq.com/letter_avatar_proxy/v4/letter/t/4491bb/32.png) [@Tridente](https://awshq.com/u/Tridente)\
**Post date:** [November 22, 2023, 9:32am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/14 "2023-11-22T09:32:33Z")

</div>

Until you have a data center outage, security incident, or massive hardware failure.

If you don’t see the value of the infrastructure AWS provides in so many different ways, you haven’t been doing this long enough.

---

<div class="post-metadata">

**Author:** ![justin-8](https://awshq.com/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@justin-8](https://awshq.com/u/justin-8)\
**Post date:** [November 22, 2023, 9:33am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/15 "2023-11-22T09:33:57Z")

</div>

> [@andrewguenther](#):
>
> Statements like this are always a dead giveaway they had no clue what they were doing.

Yep. If that’s the case, don’t use it then.

---

<div class="post-metadata">

**Author:** ![BlueSea9357](https://awshq.com/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@BlueSea9357](https://awshq.com/u/BlueSea9357)\
**Post date:** [November 22, 2023, 9:38am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/16 "2023-11-22T09:38:40Z")

</div>

> [@SolderDragon](#):
>
> This article doesn’t discuss the hit in redundancy the new architecture has, being available in only 1 rack/datacenter. I wonder how much the cost savings would be if they deployed a more equivalent multi-zone setup.

I would’ve gone with utilizing multiple public clouds, but maybe that’s too pricy for them

---

<div class="post-metadata">

**Author:** ![ultra\_ai](https://awshq.com/letter_avatar_proxy/v4/letter/u/f6c823/32.png) [@ultra\_ai](https://awshq.com/u/ultra_ai)\
**Post date:** [November 22, 2023, 9:41am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/17 "2023-11-22T09:41:52Z")

</div>

I need more math for this. I run the AWS pricing calculator for 28x m7a.4xlarge ec2s with 1 year up front computer savings pricing for a year and I get 156,000 USD in Ohio.

Up it to 12xlarge and it’s 468,000 per year.

What about mixing a base reserved capacity + autoscaling with on demand instances?? Why not also go with bigger instances? Instead of running 28 nodes?

---

<div class="post-metadata">

**Author:** ![MalhamTarn](https://awshq.com/letter_avatar_proxy/v4/letter/m/b5a626/32.png) [@MalhamTarn](https://awshq.com/u/MalhamTarn)\
**Post date:** [November 22, 2023, 9:45am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/18 "2023-11-22T09:45:05Z")

</div>

DR / resiliency is a big plus. Easy access to other services from the cloud vendor is another. RI’s and Savings plan need careful consideration as they can be outdated quite quickly.  
Tools like Karpenter and similar can also offer considerable savings when using spot (can also be configured to utilise savings plans).

If you have a hybrid model so can still utilise cloud vendor services where needed you can maintain a better speed to live in some cases. But if the work load suits it running on-prem has its place.

I think start out right in serverless for POC then shift left as your understanding grows and you can apply the best value solutions. And that should include the option of all the way back in-Prem if it is of value

---

<div class="post-metadata">

**Author:** ![yunus89115](https://awshq.com/letter_avatar_proxy/v4/letter/y/c68b51/32.png) [@yunus89115](https://awshq.com/u/yunus89115)\
**Post date:** [November 22, 2023, 9:52am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/19 "2023-11-22T09:52:21Z")

</div>

I didn’t see any mention of maintenance contract for hardware replacement or future upgrade costs. While the initial $150k was mentioned they didn’t seem to count it against the overall cost in the end.

Their use case may be more appropriate for co-located bare metal but they don’t really address all the issues and risks they are taking in the article.

---

<div class="post-metadata">

**Author:** ![mastahhbates](https://awshq.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@mastahhbates](https://awshq.com/u/mastahhbates)\
**Post date:** [November 22, 2023, 10:02am UTC](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525/20 "2023-11-22T10:02:57Z")

</div>

> [@cutsandplayswithwood](#):
>
> $230k a YEAR savings? What a joke. plenty people spending many times more than $230k a MONTH and AWS is still the right option… because math. These folks switched from cloud to prem for less savings than a midrange …

Are salaries really that high in the US? If so, I’m on the next plane across the lake.

[Next page](https://awshq.com/t/how-moving-from-aws-to-bare-metal-saved-us-230-000-yr/17525.md?page=2)
