-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
postgres: disable huge pages (PROJQUAY-2869)
As per https://bugzilla.redhat.com/show_bug.cgi?id=2032811 we can't deploy postgres in a cluster whose nodes have huge pages enabled. This PR disables huge pages support in postgres, this is a work around and can be removed in the future (as soon as the underlying issue is fixed in the kernel/kubelet).
- Loading branch information
1 parent
59910d2
commit c72d753
Showing
7 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
kustomize/components/clair/clair-postgres-conf-sample.configmap.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: clair-postgres-conf-sample | ||
data: | ||
postgresql.conf.sample: | | ||
huge_pages = off | ||
logging_collector = on | ||
log_filename = 'postgresql-%a.log' | ||
log_truncate_on_rotation = on | ||
log_rotation_age = 1d | ||
log_rotation_size = 0 |
This file contains 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
This file contains 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
This file contains 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
12 changes: 12 additions & 0 deletions
12
kustomize/components/postgres/postgres-conf-sample.configmap.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: postgres-conf-sample | ||
data: | ||
postgresql.conf.sample: | | ||
huge_pages = off | ||
logging_collector = on | ||
log_filename = 'postgresql-%a.log' | ||
log_truncate_on_rotation = on | ||
log_rotation_age = 1d | ||
log_rotation_size = 0 |
This file contains 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
This file contains 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