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
14.26k stars 407 forks source link

Call UpdateDonorShmem more frequently #7527

Open save-buffer opened 4 months ago

save-buffer commented 4 months ago

In https://github.com/neondatabase/neon/pull/6872 we switched to holding Donor in shmem. Currently we only update it when a safekeeper goes into Active state. But ideally we'd call it more frequently.

jcsp commented 4 months ago

marking tech_debt because we believe that the impact of this issue should be at worst to cause slightly more retries than usual.