openwhisk-apigateway icon indicating copy to clipboard operation
openwhisk-apigateway copied to clipboard

Allow for large upstream response headers

Open mdeuser opened this issue 5 years ago • 1 comments

Today, response headers >3KB result in a 502 response. Is issue is a request to bump the nginx configuration to allow for header sizes of up to 8KB.

mdeuser avatar Jul 26 '19 16:07 mdeuser

Changing buffer sizes should be carefully considered, since it changes how much memory needs to be allocated for every request.

I'm a little wary of bumping this globally, since we'd be effectively doubling the amount of memory used in the current configuration.

On the other hand, perhaps 4k is a bit low for a decent number of production use cases and 8k would be more appropriate.

In any case, the configuration change would look like this:

proxy_buffer_size 8k;

mhamann avatar Jul 29 '19 18:07 mhamann