Issue #1524
closedStory #1150: As a user, I can lazily fetch repositories
Refactor the pulp_streamer so that it can pool connections
Description
Currently the streamer makes use of Nectar's ``download_one`` method, so we are not utilizing urllib3's connection pool. Under load (even from five concurrent nectar threads during the lazy download task) HTTP 503 Service Unavailable are occasionally received. The current work-around is to just dispatch another task to try again later, but it would be better if we pooled the connections.
Updated by bmbouter almost 9 years ago
We were forced to use download_one because it was the only single threaded option that Nectar provided. We cannot use a thread pool with twisted unless the twisted reactor is in control of the thread pool. Given that, is there still an improvement we can make here?
Updated by jcline@redhat.com almost 9 years ago
I think it's definitely worth evaluating carefully. Without it, we will not perform well under moderate to heavy load, as I believe many clients will receive a healthy number of HTTP 503s.
Updated by mhrivnak almost 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to jcline@redhat.com
- Priority changed from Normal to High
- Severity changed from 2. Medium to 3. High
- Platform Release set to 2.8.0
- Triaged changed from No to Yes
Updated by jcline@redhat.com almost 9 years ago
- Status changed from ASSIGNED to POST
Added by Jeremy Cline almost 9 years ago
Added by Jeremy Cline almost 9 years ago
Revision 6f917920 | View on GitHub
The streamer now pools connections.
closes #1524
Added by Jeremy Cline almost 9 years ago
Revision ae45a691 | View on GitHub
Create a proxy worker that pools TCP connections.
Updated by jcline@redhat.com almost 9 years ago
Updated by jcline@redhat.com almost 9 years ago
Updated by jcline@redhat.com almost 9 years ago
- Status changed from POST to MODIFIED
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
The streamer now pools connections.
closes #1524