Commit f100f67
committed
Fix build and speed it up.
Addresses current breakage by modifying perms on the
/etc/postgresql-common dir to allow adminapi to write to it.
Additionally, speeds up the build by applying a few fixes:
- using parallelism where applicable (make/maven parallelism)
- not building postgres docs
- using our own s3 bucket for postgis sources (origin is extremely
slow)
- using a 16 core machine instead of 8 cores: plv8 is the slowest task
right now and is mostly CPU constrained on v8 compilation
- links postgres binaries using a shell loop rather than
ansible (saves a minute)
- switch to use1 (closer to a lot of external resources used)
- enable ssh pipelining
Old timing info (incomplete as the build was broken, but based on GH
actions it completed it in ~1hr 40mins; 20mins of that was likely
post-ansible AMI copying etc):
2022-03-21T17:05:46Z: amazon-ebs: Monday 21 March 2022 17:05:46 +0000 (0:00:02.675) 1:15:00.775 **********
2022-03-21T17:05:46Z: amazon-ebs: ===============================================================================
2022-03-21T17:05:46Z: amazon-ebs: postgis - build SFCGAL ----------------------------------------------- 1101.32s
2022-03-21T17:05:46Z: amazon-ebs: plv8 - build ---------------------------------------------------------- 801.52s
2022-03-21T17:05:46Z: amazon-ebs: Postgres - build ------------------------------------------------------ 419.36s
2022-03-21T17:05:46Z: amazon-ebs: pgRouting - build ----------------------------------------------------- 364.44s
2022-03-21T17:05:46Z: amazon-ebs: pljava - build -------------------------------------------------------- 319.36s
2022-03-21T17:05:46Z: amazon-ebs: postgis - download latest release ------------------------------------- 219.28s
2022-03-21T17:05:46Z: amazon-ebs: System - apt update and apt upgrade ----------------------------------- 138.52s
2022-03-21T17:05:46Z: amazon-ebs: postgis - build ------------------------------------------------------- 126.25s
2022-03-21T17:05:46Z: amazon-ebs: pljava - download & install dependencies ------------------------------- 63.43s
2022-03-21T17:05:46Z: amazon-ebs: libsodium - build ------------------------------------------------------ 61.62s
2022-03-21T17:05:46Z: amazon-ebs: postgis - download & install dependencies ------------------------------ 61.46s
2022-03-21T17:05:46Z: amazon-ebs: Install other useful tools --------------------------------------------- 30.84s
2022-03-21T17:05:46Z: amazon-ebs: Download LLVM & Clang -------------------------------------------------- 26.68s
2022-03-21T17:05:46Z: amazon-ebs: Postgres dependencies -------------------------------------------------- 18.55s
2022-03-21T17:05:46Z: amazon-ebs: Postgres - configure --------------------------------------------------- 18.29s
2022-03-21T17:05:46Z: amazon-ebs: plv8 - download & install dependencies --------------------------------- 17.32s
2022-03-21T17:05:46Z: amazon-ebs: Download GCC 10 -------------------------------------------------------- 16.87s
2022-03-21T17:05:46Z: amazon-ebs: pgAudit - download & install dependencies ------------------------------ 16.45s
2022-03-21T17:05:46Z: amazon-ebs: install Vector for logging --------------------------------------------- 11.14s
2022-03-21T17:05:46Z: amazon-ebs: libsodium - configure -------------------------------------------------- 10.69s
New timing info:
2022-03-22T09:36:08Z: amazon-ebs: Tuesday 22 March 2022 09:36:08 +0000 (0:00:01.587) 0:36:11.036 *********
2022-03-22T09:36:08Z: amazon-ebs: ===============================================================================
2022-03-22T09:36:08Z: amazon-ebs: plv8 - build ---------------------------------------------------------- 513.34s
2022-03-22T09:36:08Z: amazon-ebs: Postgres - build ------------------------------------------------------ 355.08s
2022-03-22T09:36:08Z: amazon-ebs: wal-g - additional go dependencies ------------------------------------ 118.28s
2022-03-22T09:36:08Z: amazon-ebs: postgis - build SFCGAL ------------------------------------------------ 101.59s
2022-03-22T09:36:08Z: amazon-ebs: System - apt update and apt upgrade ------------------------------------ 87.44s
2022-03-22T09:36:08Z: amazon-ebs: postgis - download & install dependencies ------------------------------ 58.85s
2022-03-22T09:36:08Z: amazon-ebs: libsodium - build ------------------------------------------------------ 52.69s
2022-03-22T09:36:08Z: amazon-ebs: wal-g - build ---------------------------------------------------------- 41.63s
2022-03-22T09:36:08Z: amazon-ebs: pljava - download & install dependencies ------------------------------- 35.37s
2022-03-22T09:36:08Z: amazon-ebs: pgRouting - build ------------------------------------------------------ 25.96s
2022-03-22T09:36:08Z: amazon-ebs: Install other useful tools --------------------------------------------- 22.59s
2022-03-22T09:36:08Z: amazon-ebs: pljava - build --------------------------------------------------------- 21.98s
2022-03-22T09:36:08Z: amazon-ebs: Download LLVM & Clang -------------------------------------------------- 20.20s
2022-03-22T09:36:08Z: amazon-ebs: postgis - build -------------------------------------------------------- 19.40s
2022-03-22T09:36:08Z: amazon-ebs: Remove build dependencies ---------------------------------------------- 16.02s
2022-03-22T09:36:08Z: amazon-ebs: ensure services are stopped -------------------------------------------- 15.34s
2022-03-22T09:36:08Z: amazon-ebs: Postgres dependencies -------------------------------------------------- 14.54s
2022-03-22T09:36:08Z: amazon-ebs: Postgres - configure --------------------------------------------------- 14.18s
2022-03-22T09:36:08Z: amazon-ebs: PgBouncer - build ------------------------------------------------------ 13.92s
2022-03-22T09:36:08Z: amazon-ebs: ensure services are stopped and disabled for first boot ---------------- 12.86s1 parent 09869ab commit f100f67
File tree
12 files changed
+29
-28
lines changed- ansible
- tasks
- internal
- postgres-extensions
12 files changed
+29
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 160 | + | |
| 161 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments