Bug 60145 - Add initial burst to rate limiting
Summary: Add initial burst to rate limiting
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ratelimit (show other bugs)
Version: 2.5-HEAD
Hardware: All Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-17 21:02 UTC by Andy Valencia
Modified: 2016-11-23 12:15 UTC (History)
1 user (show)



Attachments
Patch to provide rate-initial-burst to rate limit module (5.64 KB, text/plain)
2016-09-17 21:02 UTC, Andy Valencia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Valencia 2016-09-17 21:02:18 UTC
Created attachment 34261 [details]
Patch to provide rate-initial-burst to rate limit module

We deliver media where the licensing requires we can provide streaming, but not
downloads.  As a part of complying, we use rate limiting so that even if the
user scrapes an underlying mp3 URL, they will still take an hour to download
an hour's worth of content.

One complaint is slow start times for streams to iOS devices.  Measurements
suggest that there is a fixed, 1/2 megabyte initial fetch before any playing
occurs for the user.  Attached is a second parameter for the rate limit
module, rate-initial-burst, which specifies a number K bytes which will
be provided at full speed before throttling back to the configured rate.
With this set to 512, we have had multiple months of satisfactory operation.
Comment 1 Jim Jagielski 2016-11-22 20:33:30 UTC
Thanks! Will review and fold into trunk if OK
Comment 2 Jim Jagielski 2016-11-23 12:15:12 UTC
Committed revision 1770951.