Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error caused by increasing proxy_buffer_size (#363) #364

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

whereisaaron
Copy link
Contributor

This fixes the bug raised in #363, by increasing the size of the proxy_buffers (memory allocation) to match the size of the proxy buffer. This leaves the default values (with no ingress configmap setting) unchanged:

proxy_buffer_size     4k
proxy_buffers         4 4k

If 'proxy-buffer-size' is set then, with this patch, both the buffer size and the memory allocation size is increased:

proxy_buffer_size     "{{ $location.Proxy.BufferSize }}";
proxy_buffers         4 "{{ $location.Proxy.BufferSize }}";

I have been using this patch from some time with both 0.8.3 and 0.9.0-beta.2.

This fixes the bug raised in kubernetes#363, by increasing the size of the proxy_buffers (memory allocation) to match the size of the proxy buffer. This leaves the default values (with no ingress setting) unchanged:
```
proxy_buffer_size      4k
proxy_buffers            4 4k
```
If 'proxy-buffer-size' is set, then now both the buffer size and the memory allocation size is increased:
```
proxy_buffer_size     "{{ $location.Proxy.BufferSize }}";
proxy_buffers           4 "{{ $location.Proxy.BufferSize }}";
```
I have been using this patch with 0.8.3 and 0.9.0-beta.2.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 2, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@aledbf
Copy link
Member

aledbf commented Mar 2, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 2, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 45.349% when pulling 336f3cb on whereisaaron:patch-1 into f5f9f5e on kubernetes:master.

@aledbf
Copy link
Member

aledbf commented Mar 2, 2017

@whereisaaron thanks!

@aledbf aledbf merged commit 1822537 into kubernetes:master Mar 2, 2017
@mission-bytetech
Copy link

@whereisaaron Can you please let me know on how to apply this path to already running ingress controller?

@whereisaaron
Copy link
Contributor Author

Apply a 'path' @NBCRB ? Do you mean 'patch'? If so, to apply it to a running ingress you'd need to update or edit the nginx template in the running container and make a change that triggers a reload. If you are not using a ConfigMap for the nginx template then that patch will be lost on container restart. Better idea is to do a rolling update of Ingress Controller instances to the new version with this patch included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants