Issue #2668 has been updated by Brice Figureau.

David Escala wrote:
> Our problem is Apache httpd. It has a 
> "LimitRequestLine":http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestline
>  which defaults to 8190. It means httpd will refuse any URI with more than 
> 8190 bytes.

Yes, I already seen that. Most of the proxy/web server have indeed a limit. I 
expect to see this issue resurrect from time to time.
Note: I don't think the HTTP RFC imposes a limit, so in this area Puppet 
behaves correctly.
 
> The average "GET /development/catalog/host.domain?facts=..." has 4000 bytes. 
> Although there is still room to grow, it is not difficult to reach the URI 
> limit if you distribute custom facts.
> 
> Is it possible to HTTP POST instead of GET? 

I don't think so, because we're GETting a catalog. To be RESTful, we should 
keep using GET. 

> (if you use storeconfigs you are changing server state anyway)

No. Storeconfigs doesn't change the state of the server. It just "caches" the 
configuration somewhere else.

What could be done is to maybe gzip the facts before using them as a request 
parameter.
----------------------------------------
Bug #2668: Too many facts: request-URI Too Large
http://projects.reductivelabs.com/issues/2668

Author: David Escala
Status: Accepted
Priority: Normal
Assigned to: 
Category: plumbing
Target version: 0.25.2
Affected version: 0.25.0
Keywords: 
Branch: 


Puppet client says

<pre>
err: Could not retrieve catalog from remote server: Error 414 on SERVER: 
Request-URI Too Large
</pre>

when facter URL is too large.

<pre>
# facter | wc
     75     295    5947
</pre>

Note we are using @http_proxy_h...@. I do not know if that matters.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to