Project

General

Profile

Feature #12539

skip prefetch first chunk if range get falls to shadow objects

Added by Yuan Zhou about 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently the head object will be prefetched in each GET. This is unnecessary if the Range GET falls to shadow object and the GET request would be quite slow if we have a big head object.

Associated revisions

Revision 95745550 (diff)
Added by Yuan Zhou about 8 years ago

rgw: skip prefetch first chunk if range get falls to shadow objects

Currently the head object will be prefetched in each GET:
a) This is unnecessary if the Range GET falls to shadow objects.
b) The GET request would be quite slow if we have a big head object
This patch adds some check on the Range. If it's not in the head
object(>=rgw_max_chunk_size) then skip the prefetch.

Fixes: #12539
Signed-off-by: Yuan Zhou <>

History

#2 Updated by Abhishek Lekshmanan about 7 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF