Repository navigation
DFBUGS-11158: [release-4.22] fix nginx worker_processes OOM on high-CPU nodes - #841
Conversation
857f05d to
0695e15
Compare
| LAST_HASH=$(md5sum /etc/nginx/nginx.conf 2>/dev/null) | ||
| echo "Nginx is up. Monitoring config changes." | ||
|
|
||
| while true; do | ||
| CURRENT_HASH=$(md5sum /opt/app-root/etc/nginx.d/*.conf 2>/dev/null | sort | md5sum) | ||
| CURRENT_HASH=$(md5sum /etc/nginx/nginx.conf 2>/dev/null) |
There was a problem hiding this comment.
why these changes ???
There was a problem hiding this comment.
I included these changes in the latest commit
| - mountPath: /etc/nginx/nginx.conf | ||
| name: ocs-client-operator-console-nginx-conf | ||
| readOnly: true | ||
| subPath: nginx.conf |
There was a problem hiding this comment.
plz revert these back...
There was a problem hiding this comment.
I included these changes in the latest commit
| @@ -76,7 +76,8 @@ spec: | |||
| mountPath: /var/serving-cert | |||
| readOnly: true | |||
| - name: ocs-client-operator-console-nginx-conf | |||
| mountPath: /opt/app-root/etc/nginx.d | |||
| mountPath: /etc/nginx/nginx.conf | |||
| subPath: nginx.conf | |||
| readOnly: true | |||
| - name: ocs-client-operator-console-s3-endpoint-ca-certs | |||
There was a problem hiding this comment.
plz revert these changes...
There was a problem hiding this comment.
I included these changes in the latest commit
| done | ||
|
|
||
| LAST_HASH=$(md5sum /opt/app-root/etc/nginx.d/*.conf 2>/dev/null | sort | md5sum) | ||
| LAST_HASH=$(md5sum /etc/nginx/nginx.conf 2>/dev/null) |
There was a problem hiding this comment.
we are using * on purpose...
/etc/nginx/nginx.conf is wrong...
plz revert unrelated/unnecessary changes...
There was a problem hiding this comment.
I included these changes in the latest commit
| readOnly: true | ||
| - name: ocs-client-operator-console-nginx-conf | ||
| mountPath: /opt/app-root/etc/nginx.d | ||
| mountPath: /etc/nginx/nginx.conf |
There was a problem hiding this comment.
this is introducing regression for no reason... these changes aren't even related to the bug...
There was a problem hiding this comment.
I included these changes in the latest commit
|
/hold |
0695e15 to
d4e7a37
Compare
|
DFBUGS-11158: [release-4.22] fix nginx worker_processes OOM on high-CPU nodes |
|
/retitle DFBUGS-11158: [release-4.22] fix nginx worker_processes OOM on high-CPU nodes |
|
@NIKHITHAVADDEMPUDI: This pull request references Jira Issue DFBUGS-11158, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: nehaberry. Note that only red-hat-storage members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
| //go:embed nginx_root.tmpl | ||
| var nginxRootTmplText string | ||
|
|
||
| var nginxRootTmpl = template.Must(template.New("nginxRoot").Parse(nginxRootTmplText)) |
There was a problem hiding this comment.
why not inside "GetNginxRootConf" when really needed ??
There was a problem hiding this comment.
I included this change in the latest commit , removed the package-level template.Must parse. The root template is now parsed inside GetNginxRootConf() when the config is generated, same as GetNginxProxyConf.
Default nginx worker_processes to 8; allow override via CONSOLE_NGINX_WORKER_PROCESSES. Signed-off-by: VADDEMPUDI NIKHITHA <VADDEMPUDI.NIKHITHA1@ibm.com>
d4e7a37 to
8e1ebd6
Compare
|
TEST VIDEO: https://drive.google.com/file/d/1lOLZH-KvBo6uKWyMB12L2QfgBG0VMwPy/view?usp=drive_link |
|
@iamniting could you please review this PR, this needs to be merged in z-stream asap |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, leelavg, NIKHITHAVADDEMPUDI The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
97b0bfd
into
red-hat-storage:release-4.22
|
@NIKHITHAVADDEMPUDI: [Jira Issue DFBUGS-11158](https://redhat.atlassian.net/browse/DFBUGS-11158): All pull requests linked via external trackers have merged: [Jira Issue DFBUGS-11158](https://redhat.atlassian.net/browse/DFBUGS-11158) has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
https://redhat.atlassian.net/browse/DFBUGS-11158
Backport of #779 to release-4.22.
Problem: ocs-client-operator-console is OOMKilled on high-CPU nodes because nginx uses worker_processes auto and spawns roughly one worker per CPU.
Changes:
Difference from main (#779):