Bug 641371 - provisioning over RHN proxy is too slow
Summary: provisioning over RHN proxy is too slow
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Pavel Novotny
URL:
Whiteboard: Fixed in the 5.4.0 Release - GA'd 201...
Depends On:
Blocks: sat540-blockers sat540-proxy
TreeView+ depends on / blocked
 
Reported: 2010-10-08 14:41 UTC by Petr Sklenar
Modified: 2010-11-12 14:40 UTC (History)
3 users (show)

Fixed In Version: spacewalk-proxy-1.2.2-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-28 15:02:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-10-08 14:41:22 UTC
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:

Comment 1 Miroslav Suchý 2010-10-08 15:09:11 UTC
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.

Comment 2 Petr Sklenar 2010-10-14 07:08:28 UTC
I did the same with another sat540 and another rhn proxy and it was very slow too. So its not a setup issue.

Comment 4 Miroslav Suchý 2010-10-21 08:23:58 UTC
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.

Comment 5 Miroslav Suchý 2010-10-21 08:30:00 UTC
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)

Comment 6 Miroslav Suchý 2010-10-21 10:03:05 UTC
fixed in spacewalk.git commit 59d7a21b52a3ff52f7d5ff97044b06402dfebf9a

Comment 8 Miroslav Suchý 2010-10-21 13:54:51 UTC
cherrypicked to satellite.git as commit 0a387eafec7d5438ccdcf3d46cee07c4e758bd81

Comment 11 Pavel Novotny 2010-10-26 12:01:47 UTC
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.

Comment 13 Clifford Perry 2010-10-28 15:02:00 UTC
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


Note You need to log in before you can comment on or make changes to this bug.