News for hackers. Stuff that matters.
Re:Percona Everest: open-source automated database provision... by achanda358 on Sunday September 01, 2024 @12:32AM (#41414305)
> By its nature, K8s is designed to host stateless apps. It is fantastic at doing this, to be clear. I love K8s. But a system where the nodes can (and should, if you're taking advantage of spot pricing) disappear with a few minutes' warning is not a great host for an RDBMS.

Why is this a problem? A typical deployment will have multiple replicas, with (hopefully) small replication lag. Those should be able to be promoted to be the new primary within a minute.

Re:Percona Everest: open-source automated database provision... by porker on Sunday September 01, 2024 @02:21AM (#41414745)
> A typical deployment will have multiple replicas, with (hopefully) small replication lag. Those should be able to be promoted to be the new primary within a minute.

What happens within that minute to database writes?

Re:Percona Everest: open-source automated database provision... by anonzzzies on Sunday September 01, 2024 @01:20AM (#41414507)
> typical deployment

Ah yes, HN. You know there are billions of sites(wp mostly), LoB apps etc that run on 1 mysql/pg/etc instance right? Replicas are not typical and a tiny minority.

Re:Percona Everest: open-source automated database provision... by movedx on Sunday September 01, 2024 @01:39AM (#41414594)
Exactly. Kubernetes and micro services? Sure, for about 0.5% of the industry. Everyone else needs two servers and a load balancer.
Re:Percona Everest: open-source automated database provision... by sgarland on Sunday September 01, 2024 @07:56AM (#41416181)
Technically four servers, because you’ll want a HA LB as well, but yes.

Tech is rife with people who have never set up an old school HA solution proffering advice on how a miasma of cloud services makes theirs better.

Re:Percona Everest: open-source automated database provision... by kgeist on Sunday September 01, 2024 @04:19AM (#41415186)
Why would I want k8s for a simple Wordpress site in that case?
Re:Percona Everest: open-source automated database provision... by anonzzzies on Sunday September 01, 2024 @05:42AM (#41415540)
OP was talking about 'typical database setup' being a replicated db. It's not typical. Nor is the use of k8s for stuff outside HN and massive companies. Not that I mentioned k8s anyway.
Re:Percona Everest: open-source automated database provision... by zsoltkacsandi on Sunday September 01, 2024 @05:40AM (#41415527)
Well, the problem is a little bit more complicated than just having replicas.

You cannot build operational procedures based on “hope”.

High replication lag occurs for many many reasons (and they are not a rare event, or something that you can prevent). As well as network partitions.

Replication and binary logs can get corrupted, there can be deadlocks, duplicated row errors, etc.

The thing is that database administration is a broad and complicated topic, a small mistake or the lack of understanding how these systems work can easily lead to huge data losses.

Re:Percona Everest: open-source automated database provision... by sgarland on Sunday September 01, 2024 @07:51AM (#41416152)
Do you enjoy being paged for something out of your control? I don’t.
Re:Percona Everest: open-source automated database provision... by achanda358 on Sunday September 01, 2024 @05:22PM (#41420508)
I don't get a page for something that is not under my control, that is an organisational problem if you get that. But how is it relevant here?

In my example, I will get a page for large replication lag. But not for an unplanned failover. That will be an alert, but not a page.