Merge ~pappacena/launchpad:mirror-prober-parallelism-control into launchpad:master
Proposed by
Thiago F. Pappacena
Status: | Merged |
---|---|
Approved by: | Thiago F. Pappacena |
Approved revision: | 7def96a144fc2cc88b7e62deab41472e86ac8156 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~pappacena/launchpad:mirror-prober-parallelism-control |
Merge into: | launchpad:master |
Diff against target: |
274 lines (+63/-38) 3 files modified
cronscripts/distributionmirror-prober.py (+20/-2) lib/lp/registry/scripts/distributionmirror_prober.py (+30/-23) lib/lp/registry/tests/test_distributionmirror_prober.py (+13/-13) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+380777@code.launchpad.net |
Commit message
Adding options to distribution mirror prober to allow us to easily control maximum number of requests in parallel that should be issued.
Description of the change
This change is basically removing the 2 hardcoded constants that control amount of parallel requests (in general and per host) and creating 2 parameters at the script.
The major change was having the RequestManager to create the locks on __init__ instead of a global one, and sharing the same RequestManager on probe_archive_
To post a comment you must log in.
Pushed the requested change. I'll top-approve the MP now.