Commit 350775f
committed
Implement Citus support in pg_auto_failover.
Squashed commit of the following:
commit bd5cf30
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Wed Oct 5 17:07:45 2022 +0200
Reflow docs word wrapping to trigger a new CI build...
commit 56cf731
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Wed Oct 5 17:05:08 2022 +0200
Update docs/citus.rst
Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
commit f1ff615
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Wed Oct 5 11:33:58 2022 +0200
Tests: install faster metadata_sync_interval for Citus coordinators.
commit 37571fe
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Tue Oct 4 14:43:10 2022 +0200
Another round of Citus test fixes.
- Fix the tests to be consistent about using the "citus" dbname
- Fix the timeout when calling walt_until_metadata_sync in some tests
commit 4eec076
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Tue Oct 4 14:06:24 2022 +0200
Update Citus tests for Citus 11.1.
In Citus 11.1 we need to make sure the nodes metadata is in sync before some
cluster wide operations such as DROP TABLE. This is best done by calling a
citus test only function: wait_until_metadata_sync.
The function needs to first be created/exposed at the SQL level.
commit 948b820
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 19:23:37 2022 +0200
Improve workflow for linting / non-linting tests.
commit 833cea9
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 19:10:01 2022 +0200
Skip building the docker image for TEST=linting.
commit c6c4687
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 19:05:06 2022 +0200
Separate building the docker image and running tests in CI steps.
commit d1c4dc5
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 18:42:58 2022 +0200
Increate tests timeout.
commit 6dabc56
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 17:40:00 2022 +0200
Fix missed Python import line.
commit dd066b2
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 17:26:20 2022 +0200
Fix the github action worklow file (remove LINTING env).
commit 23735a8
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 17:26:04 2022 +0200
Fix Citus tests to use the "citus" database.
commit c2f0426
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 17:10:17 2022 +0200
Update Citus version matrix and compatibility with PGVERSIONs.
Also we need to drop support for Postgres 10, for which I failed to find a
version of Citus that would be compatible. Fortunately, it's the time when
we also add support for Postgres 15, Postgres 10 is soon to be unsupported
anyway.
commit 07b5195
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 16:38:26 2022 +0200
Fix rebase with master.
commit d86a407
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 13:34:17 2022 +0200
Another try at fixing the Citus PGVERSION for citusdata/tools.
commit 45f8842
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 13:33:08 2022 +0200
Docs improvements for Citus coverage.
commit ea76b43
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 13:18:35 2022 +0200
Try and fix CITUSPGVERSION for install_citus script.
commit 8c6122a
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 13:13:32 2022 +0200
Attempt to use install_citus from citusdata/tools.
commit d09cb86
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Oct 3 13:10:01 2022 +0200
Update Python imports for Citus test files.
commit e197496
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Fri Sep 30 12:11:22 2022 +0200
Fix monitor installcheck expected file, and automated naming.
commit 9e5ffdc
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 29 19:00:34 2022 +0200
Review how to install the Postgres Citus package in CI.
commit 50eafec
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Sep 26 13:40:24 2022 +0200
Refactor CLI environment variable support code.
commit 5226fe6
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Sep 26 13:29:02 2022 +0200
Rework Citus Cluster Tutorial using docker-compose.
commit 10ca9bd
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Fri Sep 23 17:56:55 2022 +0200
First pass review of the quickstart-cluster Citus HA tutorial.
commit 3a89aaf
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Fri Sep 23 13:33:25 2022 +0200
Improve default node names for a Citus cluster.
commit 3efb773
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 22 18:36:32 2022 +0200
Fix computing Citus nodes group/seq and names.
When given W workers, we create N Nodes per worker, plus N coordinators.
commit d58fa14
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 18:10:28 2022 +0200
Given Citus workers, allow for greater NODE_ARRAY_MAX_COUNT.
commit ef7cf82
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 18:10:11 2022 +0200
Fix make compose again for standalone Postgres nodes.
commit b29c274
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 17:32:37 2022 +0200
Add better support for Citus in the dev env (Dockerfile, make compose).
commit e6d4609
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 17:23:16 2022 +0200
Add support for --pg-hba-lan for create coordinator and worker.
commit ebcf0ce
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 17:22:49 2022 +0200
Fix docs, Citus is now included in the Open Source version.
commit 7258f73
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 15:25:11 2022 +0200
When using Citus, the default dbname is now "citus".
commit 90826c7
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 15:20:18 2022 +0200
Add support for quorum and priority to make compose.
commit a8d138c
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 15:19:57 2022 +0200
Fix the FSM with missing transition that got lost in the merge.
commit c83f213
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Thu Sep 15 12:43:50 2022 +0200
Attempt to fix github workflow.
commit a71dd3d
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Aug 16 15:50:28 2021 +0200
Another round of improvements for the diagrams.
commit cb835d4
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Fri Aug 13 18:14:26 2021 +0200
Improve all diagrams.
Keep the concept of the first diagram with the kind of a circle with four
nodes (application, primary, secondary, monitor) and build on-top of the
same idea for the others diagrams.
Every diagram builds by adding some level of complexity on-top of the
previous one. By keeping a central theme it makes it obvious and much easier
to re-use the understanding from the previous diagram in the next.
commit 8775ae1
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Tue Aug 16 18:41:04 2022 +0200
Add an architecture diagram covering Citus formations.
commit 34352a6
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Tue Aug 16 18:40:50 2022 +0200
Allow CI testing of the Citus support.
commit 088bc64
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Tue Aug 10 13:38:37 2021 +0200
Implement make CITUS=1 cluster.
commit 272f1eb
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Aug 9 18:20:12 2021 +0200
Implement Citus support for pg_auto_failover.
commit 50cb713
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Tue Aug 16 18:33:06 2022 +0200
Implement Citus support for pg_auto_failover.
commit dfb044e
Author: Dimitri Fontaine <dimitri@citusdata.com>
Date: Mon Aug 9 16:29:30 2021 +0200
Add a PgInstanceKind guard in the Keeper FSM.
This guard allows to choose a transition function specialized in a given
node kind.1 parent 27d5d9f commit 350775f
68 files changed
Lines changed: 9712 additions & 1505 deletions
File tree
- .github/workflows
- docs
- citus
- ref
- tikz
- src
- bin/pg_autoctl
- monitor
- expected
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| 31 | + | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
61 | 70 | | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
56 | | - | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
76 | 96 | | |
77 | 97 | | |
78 | | - | |
| 98 | + | |
79 | 99 | | |
80 | 100 | | |
81 | 101 | | |
| |||
109 | 129 | | |
110 | 130 | | |
111 | 131 | | |
112 | | - | |
| 132 | + | |
113 | 133 | | |
114 | 134 | | |
115 | 135 | | |
| |||
127 | 147 | | |
128 | 148 | | |
129 | 149 | | |
130 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
131 | 153 | | |
132 | 154 | | |
133 | 155 | | |
134 | 156 | | |
135 | | - | |
| 157 | + | |
136 | 158 | | |
137 | 159 | | |
138 | 160 | | |
| |||
145 | 167 | | |
146 | 168 | | |
147 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
148 | 173 | | |
149 | 174 | | |
150 | 175 | | |
| |||
0 commit comments