A/B Import#1
Merged
Merged
Conversation
``` q:qb pansen/colima-incus feat/andi/a_b_import 244ms$ make pg.status pg.ip pg.snapshots scripts/pg-dev-local status active slot: b (active = pg-dev-b, staging = pg-dev-a) +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-bouncer | RUNNING | 192.168.100.2 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fe3f:2049 (eth0) | CONTAINER | 0 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-dev-a | RUNNING | 192.168.100.53 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fede:a68c (eth0) | CONTAINER | 2 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-dev-b | RUNNING | 192.168.100.27 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fe5f:4b9b (eth0) | CONTAINER | 1 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ active 192.168.100.2:5432 → pg-dev-b (192.168.100.27) staging 192.168.100.2:5433 → pg-dev-a (192.168.100.53) scripts/pg-dev-local snapshots ─── active (pg-dev-b) ─── +---------+-----------------------+------------+----------+ | NAME | TAKEN AT | EXPIRES AT | STATEFUL | +---------+-----------------------+------------+----------+ | initial | 2026/06/01 16:02 CEST | | NO | +---------+-----------------------+------------+----------+ ─── staging (pg-dev-a) ─── +---------------------------------+-----------------------+------------+----------+ | NAME | TAKEN AT | EXPIRES AT | STATEFUL | +---------------------------------+-----------------------+------------+----------+ | initial | 2026/06/01 16:01 CEST | | NO | +---------------------------------+-----------------------+------------+----------+ | 2026-06-01T17-20-21_dump_import | 2026/06/01 17:20 CEST | | NO | +---------------------------------+-----------------------+------------+----------+ q:qb pansen/colima-incus feat/andi/a_b_import 774ms$ make pg.promote scripts/pg-dev-local promote ==> Promoting: active b → a ==> Promoted. Active: pg-dev-a Staging: pg-dev-b active slot: a (active = pg-dev-a, staging = pg-dev-b) +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-bouncer | RUNNING | 192.168.100.2 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fe3f:2049 (eth0) | CONTAINER | 0 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-dev-a | RUNNING | 192.168.100.53 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fede:a68c (eth0) | CONTAINER | 2 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-dev-b | RUNNING | 192.168.100.27 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fe5f:4b9b (eth0) | CONTAINER | 1 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ q:qb pansen/colima-incus feat/andi/a_b_import 612ms$ make pg.status pg.ip pg.snapshots scripts/pg-dev-local status active slot: a (active = pg-dev-a, staging = pg-dev-b) +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-bouncer | RUNNING | 192.168.100.2 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fe3f:2049 (eth0) | CONTAINER | 0 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-dev-a | RUNNING | 192.168.100.53 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fede:a68c (eth0) | CONTAINER | 2 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ | pg-dev-b | RUNNING | 192.168.100.27 (eth0) | fd42:5a94:fea:bc22:1266:6aff:fe5f:4b9b (eth0) | CONTAINER | 1 | +------------+---------+-----------------------+-----------------------------------------------+-----------+-----------+ active 192.168.100.2:5432 → pg-dev-a (192.168.100.53) staging 192.168.100.2:5433 → pg-dev-b (192.168.100.27) scripts/pg-dev-local snapshots ─── active (pg-dev-a) ─── +---------------------------------+-----------------------+------------+----------+ | NAME | TAKEN AT | EXPIRES AT | STATEFUL | +---------------------------------+-----------------------+------------+----------+ | initial | 2026/06/01 16:01 CEST | | NO | +---------------------------------+-----------------------+------------+----------+ | 2026-06-01T17-20-21_dump_import | 2026/06/01 17:20 CEST | | NO | +---------------------------------+-----------------------+------------+----------+ ─── staging (pg-dev-b) ─── +---------+-----------------------+------------+----------+ | NAME | TAKEN AT | EXPIRES AT | STATEFUL | +---------+-----------------------+------------+----------+ | initial | 2026/06/01 16:02 CEST | | NO | +---------+-----------------------+------------+----------+ ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide a way to import to a staging instance, via different port
5433, while the active instance on port5432remains available.Once the expensive import on staging is done, one can
make pg.promoteand staging flips to active and vice versa.