fastesturl doesn't reflect real bandwidth

Bug #1392816 reported by Jerry Zhao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compass
Fix Committed
Undecided
Jerry Zhao
Nominated for Trunk by Jerry Zhao

Bug Description

Originally, fastesturl function use curl to download the root path of http server, but the response time doesn't reflect the real download speed of the file.

Propose using the download time for the first chunk of 20000 bytes of the file to determine the fastest server.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compass-core (dev/experimental)

Fix proposed to branch: dev/experimental
Review: https://review.openstack.org/134611

Jerry Zhao (zhaoxinyu)
Changed in compass:
assignee: nobody → Jerry Zhao (zhaoxinyu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compass-core (dev/experimental)

Reviewed: https://review.openstack.org/134611
Committed: https://git.openstack.org/cgit/stackforge/compass-core/commit/?id=74b5b57e03d66dade5034c8d0082c2ab9bb50c32
Submitter: Jenkins
Branch: dev/experimental

commit 74b5b57e03d66dade5034c8d0082c2ab9bb50c32
Author: zhaoxinyu <email address hidden>
Date: Fri Nov 14 09:53:29 2014 -0800

    Use download speed to decide which url is faster

    just getting the root path of a http server to measure the response
    time does not necessarily reflect the real download speed of a source.
    reponse can be 302 http redirect which may be really fast but download
    bandwidth is determined by the route to the real source http server.
    Therefore, use download time for the first chunk of 20000 bytes to
    determine which is faster.

    Closes-bug: #1392816
    Change-Id: I3019dce3cf92dd75c58a21987c653cbcb502264b

Changed in compass:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.