[Box Backup] Trac account request

Chris Wilson chris at qwirx.com
Wed Jan 12 00:20:55 GMT 2011


Hi Achim,

On Tue, 11 Jan 2011, Achim wrote:

> Did you manage to move this further along? A per-client limitation of 
> the upload bandwidth like in rsync would be really helpful to avoid a 
> cluster of local bb clients from hogging the available DSL uplink.
>
> Modifying the DSL modem parameters for QoS seems a lot less practical 
> (i.e. likely) than updating that "bandwidth" parameter in a box backup 
> conf file.

I've implemented a rate limiting option in trunk. Simply set MaxUploadRate 
= 8000 (bytes per second) or similar on the client (in bbackupd.conf) to 
use it. Please have a look and see if it meets your needs.

It's not as sophisticated as what Stewart was suggesting, distributing 
reads over a second. It does try to ensure at least one packet per second. 
I'm not sure how much spikes at one-second granularity matter.

I think the method I've used is very CPU efficient but it does reduce 
bandwidth efficiency a little, by uploading smaller chunks of data to the 
server, and probably in smaller packets (<1500 bytes) at very low rates 
(<1500 bytes per second). It's also not 100% accurate because it doesn't 
take the OpenSSL encryption overhead into account, or any bandwidth use 
except streaming file and patch uploads.

It could probably be adapted to be more intelligent if necessary.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <chris+sig at qwirx.com> Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |



More information about the Boxbackup mailing list