Commit 83689f3
Add flags for setting resource limits
While the PostgreSQL Operator attempted to put in safeguards around setting
memory limits with PostgreSQL instances, it appears that this may have
provided too many guard rails around how things are deployed out in the
wild. As such, this commit introduces many new flags to allow users to
set their own resource limits. These include:
- pgo create cluster --cpu-limit
- pgo create cluster --memory-limit
- pgo create cluster --pgbackrest-cpu-limit
- pgo create cluster --pgbackrest-memory-limit
- pgo create cluster --pgbouncer-cpu-limit
- pgo create cluster --pgbouncer-memory-limit
- pgo update cluster --cpu-limit
- pgo update cluster --memory-limit
- pgo update cluster --pgbackrest-cpu-limit
- pgo update cluster --pgbackrest-memory-limit
- pgo create pgbouncer --cpu-limit
- pgo create pgbouncer --memory-limit
- pgo update pgbouncer --cpu-limit
- pgo update pgbouncer --memory-limit
This commit also removes the set of "enable/disable" memory limit
flags, as they are effectively mooted by this.
Issue: [ch8331]
Issue: #15381 parent 0d1db07 commit 83689f3
File tree
26 files changed
+550
-446
lines changed- apiservermsgs
- apiserver
- clusterservice
- pgbouncerservice
- apis/crunchydata.com/v1
- conf/postgres-operator
- controller/pgcluster
- docs/content/pgo-client/reference
- installers/ansible/roles/pgo-operator/files/pgo-configs
- operator
- backrest
- cluster
- pgo/cmd
26 files changed
+550
-446
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 87 | + | |
94 | 88 | | |
95 | 89 | | |
96 | 90 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
100 | 94 | | |
101 | 95 | | |
102 | 96 | | |
| |||
178 | 172 | | |
179 | 173 | | |
180 | 174 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 175 | | |
185 | 176 | | |
186 | 177 | | |
| |||
191 | 182 | | |
192 | 183 | | |
193 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
194 | 188 | | |
195 | 189 | | |
196 | 190 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments