Description of problem: Provisioning over the proxy is too slow. It takes more then two hours in local network. Version-Release number of selected component (if applicable): proxy 540 How reproducible: always. tried 2 different machine Steps to Reproduce: 1. sat540+rhn proxy 540 2. connect client over the proxy 3. yum groupinstall "KDE Software Development" # it works quite well, I can install 250 Mb in few minutes #its not necessary to do this step .. ^ 4. over the rhn proxy: provision client with created kickstart or create virtual guest Actual results: its too slow, starting install process takes more then hour Expected results: base installations of rhel55 in local network is around 10 minutes Additional info:
I was trying psklenar setup and the it was slow even if broker received TCP_HIT or TCP_MEM from squid. Some benchmarking show that it take 7 sec between squid get HEAD request and actual response. checking /server-status claimed that the response was procesed within 1 sec (100ms - 900ms), so I think it is either rhn-proxy-redirect problem (because it is between rhn_parent and squid) or problem in peter local setup.
I did the same with another sat540 and another rhn proxy and it was very slow too. So its not a setup issue.
it is caused by https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=578854, we need to distinguish between HEAD where HEADER_CONTENT_LENGTH is not set by purpose and malformed server which do not send CONTENT_LENGTH on regular request.
I will add snippet from proxy_broker.log: 2010/10/20 15:10:36 +02:00 2996 127.0.0.1: proxy/rhnShared._forwardHTTPBody('Response body size: ', -1) 2010/10/20 15:10:49 +02:00 3001 10.34.33.193: proxy/apacheHandler.cleanupHandler Basically if we try to read body of response from HEAD request, we get lag of 13-15 seconds for every such request. So we lost during kickstart 2 (first rpm header, then whole package) * number of packages * 15 sec, which is too much (aprox one or two hours)
fixed in spacewalk.git commit 59d7a21b52a3ff52f7d5ff97044b06402dfebf9a
cherrypicked to satellite.git as commit 0a387eafec7d5438ccdcf3d46cee07c4e758bd81
Verified. Provisioning over proxy with RHEL5-U5 took 11 minutes, with RHEL6Client 12 minutes. Both, Satellite and Proxy were running on RHEL5-U5 and were located on same network segment.
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332 RHEA-2010:0803 - RHN Tools enhancement update https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333 RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334 RHEA-2010:0800 - RHN Satellite Server 5.4.0 https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335 Docs are available: http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html Regards, Clifford