Should I Host Everything in My Cluster or Use Managed Services?

0
3
Asked By TechSavvy123 On

I'm currently running an application that includes a frontend, backend, and PostgreSQL database—all hosted in my cluster using Crunchy operator with high availability configuration, and I'm using Azure for this setup. I'm looking to add Redis as well.

I'm wondering whether it makes more sense to keep everything in my cluster, or if I should consider separating the database and Redis. For instance, I could use Azure Managed PostgreSQL and Azure Managed Redis, or look into a different database provider like PlanetScale.

Currently, my cluster nodes are Standard_E2s_v4 with about 30-40% CPU usage on average. If I switch to Azure Managed Database, I'll likely need to use B1S nodes to keep costs down. I wonder if this would affect performance, making the database slower?

5 Answers

Answered By VMWizard77 On

For databases like PostgreSQL and RabbitMQ, we've opted to run those on virtual machines instead of clusters. Our database administrators aren't very Kubernetes savvy, and getting them to debug pods was just too challenging. Also, just a heads up, B1S nodes on Azure are burstable and may not be suitable for production use.

Answered By CloudGuru88 On

In my experiences, we use managed services whenever possible. If the cloud provider offers something beneficial, like Kafka or Flink, we take advantage of it. But for databases, relying on the cloud provider’s services is usually more effective, especially for complex needs.

Answered By KubeMaster301 On

If you're considering running a database on Kubernetes, I recommend something like CNPG, but be cautious because Kubernetes isn't really designed for databases. Managed database services take a load off your shoulders, and if cost isn’t a huge concern, they are definitely the way to go.

Answered By DataDude42 On

It really varies based on your traffic and whether your workload is constant or fluctuating. If you have stable traffic, self-hosting could work well.

Answered By CloudNinja99 On

Cost is a big factor here. Running everything in your cluster is usually cheaper when scaling up. Managed services are convenient but can get pricey. Plus, using something like Crunchy for PostgreSQL is solid. Just keep in mind that self-hosting does come with some management responsibilities. If something goes wrong, like data loss or downtime, that could be a big issue. In my project, we run ephemeral caches on k8s, but for critical data, we prefer managed services from cloud providers.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.