mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 14:02:55 +00:00
## Problem This PR is part of larger computes support activity: https://www.notion.so/neondatabase/Larger-computes-114f189e00478080ba01e8651ab7da90 Epic: https://github.com/neondatabase/cloud/issues/19010 In case of planned node restart, we are going to 1. create new read-only replica 2. capture LFC state at primary 3. use this state to prewarm replica 4. stop old primary 5. promote replica to primary Steps 1-3 are currently implemented and support from compute side. This PR provides compute level implementation of replica promotion. Support replica promotion ## Summary of changes Right now replica promotion is done in three steps: 1. Set safekeepers list (now it is empty for replica) 2. Call `pg_promote()` top promote replica 3. Update endpoint setting to that it ids not more treated as replica. May be all this three steps should be done by some function in compute_ctl. But right now this logic is only implement5ed in test. Postgres submodules PRs: https://github.com/neondatabase/postgres/pull/648 https://github.com/neondatabase/postgres/pull/649 https://github.com/neondatabase/postgres/pull/650 https://github.com/neondatabase/postgres/pull/651 --------- Co-authored-by: Matthias van de Meent <matthias@neon.tech> Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
19 lines
305 B
JSON
19 lines
305 B
JSON
{
|
|
"v17": [
|
|
"17.5",
|
|
"db424d42d748f8ad91ac00e28db2c7f2efa42f7f"
|
|
],
|
|
"v16": [
|
|
"16.9",
|
|
"7a4c0eacaeb9b97416542fa19103061c166460b1"
|
|
],
|
|
"v15": [
|
|
"15.13",
|
|
"8c3249f36c7df6ac0efb8ee9f1baf4aa1b83e5c9"
|
|
],
|
|
"v14": [
|
|
"14.18",
|
|
"6770bc251301ef40c66f7ecb731741dc435b5051"
|
|
]
|
|
}
|