neondatabase / neon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
https://neon.tech
Apache License 2.0
13.65k stars 385 forks source link

pageserver: circuit breakers #6738

Open jcsp opened 5 months ago

jcsp commented 5 months ago

Examples of recent issues in other services that show up as storage issues:

While we of course fix these issues at the source, we can still make the pageserver more resilient.

Implementation:

jcsp commented 5 months ago

Starting point PR that needs generalizing somewhat: https://github.com/neondatabase/neon/pull/6734

The main gate for landing something like this is to have the tenant config mechanism to skip the checks, so that if we need to permit a misbehaving tenant to keep ingesting in order to get it to a fixed state, we can.