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
15.34k stars 448 forks source link

Revive procedure for moving tenants manually between safekeepers #4783

Open arssher opened 1 year ago

arssher commented 1 year ago

Two use cases:

  1. Moving all tenants residing on one safekeeper to another.
  2. Move single tenant.

"Manually" means this is safe only as long as either 1) source safekeeper is reliably offline 2) or computes using it are reliably offline forever.

Needed steps:

problame commented 7 months ago

This week: get #6340 done by writing code & tests (tests are most of the work)

problame commented 6 months ago

This week:

arssher commented 4 months ago

Opened PR with the script: https://github.com/neondatabase/cloud/pull/15227 will test it more, finish docs and move them to the engineering book

arssher commented 1 week ago

planning to close this when https://github.com/neondatabase/cloud/pull/20671 is merged