File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -124,19 +124,19 @@ func TestInstancePod(t *testing.T) {
124124
125125 assert .Assert (t , cmp .MarshalMatches (pod , `
126126containers:
127- - command:
128- - echo "for pid in $(pgrep -f \"/usr/pgsql-16/bin/postgres\"); do
129- current=$(cat /proc/$pid/oom_score_adj 2>/dev/null || echo \"\")
130- if [ \"$current\" != \"-900\" ]; then
131- echo \"adjusting oom score for pid $pid\"
132- echo -900 > /proc/$pid/oom_score_adj
133- fi
134- done
135-
136- sleep 30
137- done" > /oom-fixer.sh && chmod +x /oom-fixer.sh
138- - /oom-fixer.sh & /usr/bin/patroni
139- env:
127+ - command:
128+ - echo "for pid in $(pgrep -f \"/usr/pgsql-16/bin/postgres\"); do
129+ current=$(cat /proc/$pid/oom_score_adj 2>/dev/null || echo \"\")
130+ if [ \"$current\" != \"-900\" ]; then
131+ echo \"adjusting oom score for pid $pid\"
132+ echo -900 > /proc/$pid/oom_score_adj
133+ fi
134+ done
135+
136+ sleep 30
137+ done" > /oom-fixer.sh && chmod +x /oom-fixer.sh
138+ - /oom-fixer.sh & /usr/bin/patroni
139+ env:
140140 - name: PGDATA
141141 value: /pgdata/pg11
142142 - name: PGHOST
You can’t perform that action at this time.
0 commit comments