The Google HTTP Load Balancer URL length limit

google-cloud-platformgoogle-compute-engine

What is the length limit for URLs on the Google HTTP/HTTPS Cloud Load Balancer aka HTTP/HTTPS Forwarding Rule? I have had reports of HTTP/1.1 413 Request Entity Too Large error responses from the load balancer:

413. That’s an error. Your client issued a request that was too large. That’s all we know.

Is there a way to adjust the length limit?

Is there a way to tell (from load balancer metrics or logs) how many requests are rejected due to the length limit? There seems to be no results in StackDriver logs:

Stackdriver logs search shows no results

Related question: Amazon AWS ELB length limit

Best Answer

Google Fronted process all request made to any Google product/service. GFE is the first communication layer that controls all requests that get in and out the entire google network regardless of the product.

The maximum payload allowed including the header is around 16K, as such, total combined header length should be less than maximum limit. The requests which are bigger than 16K doesn't reach your application and are not logged in Stackdriver logging.