Live data from Hacker News

Kubernetes and back – Why I don't run distributed systems

davd.io

11–20 of 43 posts

Re: Kubernetes and back – Why I don't run distributed systems

#11
post #9

I thought the DB isn’t supposed to go in the cluster?

Depends on what you're using your cluster for. When you're big enough it's worth just treating the database like any other job and running it on the cluster, but this can be tricky to get right. For small K8s deployments many people choose to outsource the database to their cloud provider and have it separate from the cluster as there are fewer things that can go wrong.

Re: Kubernetes and back – Why I don't run distributed systems

#12
post #4

These posts come up so frequently, people keep falling for buzzwords they don't understand and then start blaming the tech. Distributed systems are all cool and fun but use them as a last option when you have exhausted all other choices. > I took a moment to calculate the cost of hosting my app on the K8s offerings of a Hyperscaler like AWS, Google or Azure just to figure out that this won’t be an option for me. Clea…

> Cloud services are costly but in most cases you'll pay similar cost in terms of time and in some cases lot more if you pick something complex that you don't know about.

Even just something like EC2 instances is costly - and a surprising amount of stuff in the cloud is just containers or EC2 instances, before redundancy even. Adding in specialized services makes things even more costly.

Problem is that nowadays it's hard to find a team that knows how to properly handle hardware - if you manage to get a handful of people that know how to do that cloud is only sensible for very few edge cases.

And as the article states - in many cases you probably don't even need all that fancy from K8s. I can for the cost of using K8s cloud stuff just put a second copy of our hardware in a different DC (or maybe even a third one), and just fail between DCs if needed. Way simpler setup, and excludes a lot of failure cases I'd catch with a K8s setup.

Re: Kubernetes and back – Why I don't run distributed systems

#13
LocalPV supports ZFS Snapshots.

MongoDB is shitsoftware anyway.

I use k8s in a very small setup (3 worker nodes, 3 ctrl planes) in my startup. But i'm working professionally with k8s for 6 years.

My setup is relative big but also relative simple and most of it is also IaC. I don't need to backup my setup and i don't need to document how i setup everything.

I have blue/green deployment, multiply enviorrnments (dev, test, prod) configured 100% equal, a good monitoring stack + tracing, s3 replication, postgresql ha and offside backup.

i can shut down a node and nothing happens.

But you know, if k8s doesn't fit your time and experience and benefit estimation, don't use it.

The upfront cost of k8s is bigger though.

Re: Kubernetes and back – Why I don't run distributed systems

#15
Why on earth did the author even believe he needed K8s to serve 500 concurrent users? You could do that on a couple basic web servers behind a load balancer 15+ years ago. Hell, you could probably run the whole app, including the database on a single server if you don't care about availability.

Re: Kubernetes and back – Why I don't run distributed systems

#16
post #9

I thought the DB isn’t supposed to go in the cluster?

And why did you thought this?

With an operator, you get HA setup with switch over etc. basically for free.

I would prefer relativly cheap managed db over hosting it myself but its absolutly fine.

Re: Kubernetes and back – Why I don't run distributed systems

#17
I’ve read such insanely doctrinaire opinions here on HN like you must NEVER!!! ssh into a system, and instead have some rube-goldberg distributed contrivance for deployment and debugging and anything else. I presume this attitude is how we got to people running their phpbb blog in a 5 node kubernetes cluster.

A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your hobby project isn’t Google.

Re: Kubernetes and back – Why I don't run distributed systems

#18
post #17

I’ve read such insanely doctrinaire opinions here on HN like you must NEVER!!! ssh into a system, and instead have some rube-goldberg distributed contrivance for deployment and debugging and anything else. I presume this attitude is how we got to people running their phpbb blog in a 5 node kubernetes cluster. A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your…

> A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your hobby project isn’t Google.

   73.6% of All Statistics Are Made up
https://www.datacenterdynamics.com/en/opinions/ovhclouds-dat...

Re: Kubernetes and back – Why I don't run distributed systems

#19
post #18
post #17

I’ve read such insanely doctrinaire opinions here on HN like you must NEVER!!! ssh into a system, and instead have some rube-goldberg distributed contrivance for deployment and debugging and anything else. I presume this attitude is how we got to people running their phpbb blog in a 5 node kubernetes cluster. A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your…

> A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your hobby project isn’t Google. 73.6% of All Statistics Are Made up https://www.datacenterdynamics.com/en/opinions/ovhclouds-dat...

18:37:01 up 1618 days, 6:40, 6 users, load average: 0.00, 0.00, 0.00

Just go away and burn ;)

Re: Kubernetes and back – Why I don't run distributed systems

#20
post #18
post #17

I’ve read such insanely doctrinaire opinions here on HN like you must NEVER!!! ssh into a system, and instead have some rube-goldberg distributed contrivance for deployment and debugging and anything else. I presume this attitude is how we got to people running their phpbb blog in a 5 node kubernetes cluster. A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your…

> A dedicated server from OVH running some processes under lxc and systemd can achieve 100% yearly uptime. Your hobby project isn’t Google. 73.6% of All Statistics Are Made up https://www.datacenterdynamics.com/en/opinions/ovhclouds-dat...

can =/= must

I have 2x 5$ VPSes on OVH for small side projects

>up 828 days

>up 1025 days

Post reply on HN