Commit d69c762
refactor(consul-postgres-ha): consolidate to single polished template
The directory was an engineering log — phase0/, stage1/, stage2/,
stage3a/, stage3b/, stage4/, stage4-experiments/ — useful while
building, useless to a user landing here cold who just wants to
deploy HA Postgres on dstack-TEE.
Promote stage4/ contents up one level to consul-postgres-ha/ as the
canonical, opinionated shape. Rename phase0/icetest → signaling/.
Move stage3b/{webdemo,sidecar} up. Drop the predecessor stage*/ +
phase0/ + stage4-experiments/ + deploy/ (historical results) +
STAGE4_PLAN.md. Git history preserves everything.
Final layout:
consul-postgres-ha/
├── README.md / ARCHITECTURE.md / FAILOVER.md / PUBLISHING.md / ROBUSTNESS.md
├── cluster-example/ one cluster.tf
├── compose/ coordinator.yaml + worker.yaml templates
├── coordinator/ external-coordinator docker-compose
├── mesh-conn/ QUIC-over-pion/ICE overlay
├── bootstrap-secrets/ TEE-derives per-CVM secrets
├── patroni/ Patroni + Postgres
├── webdemo/ sidecar/ example workload + Envoy bootstrapper
├── signaling/ HTTP /publish + /poll broker for ICE rendezvous
└── quic-on-ice/ standalone smoke test for the QUIC-over-ICE transport
Updates beyond the moves:
- README.md rewritten as a deploy-first story; old stage-4-internal
README's "Known limitation" + punch-list (yamux + worker-pair
instability) is obsolete since the QUIC swap and isn't preserved.
- ARCHITECTURE.md: 4-CVM topology (ctrl+w1/w2/w3) → 6-CVM (3+3),
yamux deep-dive section replaced with a tight QUIC summary that
matches the actual code.
- ROBUSTNESS.md: yamux → QUIC mentions, "single Consul server SPOF"
section updated to reflect the 3-server quorum that's been live
since `17f4642`, "real registry" recommended-fix moved to "already
shipped" since GHCR + Sigstore is now the publish path.
- All Go module paths bumped: github.com/Dstack-TEE/dstack-examples
/consul-postgres-ha/<name> (no stage4/ or phase0/ infix).
- CI workflow path filters + matrix `context:` paths updated.
- .gitignore rewritten to match the new layout.
- Builds + tests pass on all 5 Go modules under the new paths.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c8c6067 commit d69c762
69 files changed
Lines changed: 356 additions & 4426 deletions
File tree
- .github/workflows
- consul-postgres-ha
- bootstrap-secrets
- cluster-example
- compose
- deploy
- mesh-conn
- patroni
- phase0
- quic-on-ice
- sidecar
- signaling
- stage1
- mesh-conn
- stage2
- stage3a
- webdemo
- stage3b
- webdemo
- stage4-experiments
- disk-persistence
- tf-shakedown
- stage4
- webdemo
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments