Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bandwidth limit support #103

Open
jborg opened this issue Aug 6, 2014 · 5 comments
Open

Add bandwidth limit support #103

jborg opened this issue Aug 6, 2014 · 5 comments

Comments

@jborg
Copy link
Owner

jborg commented Aug 6, 2014

Useful to prevent Attic from saturating an upstream link or hogging too much cpu

Similar to rsync --bwlimit and scp -l

Original discussion: http://librelist.com/browser//attic/2014/8/4/is-there-a-bandwidth-limit-setting/

@liori
Copy link

liori commented Oct 6, 2014

On many POSIX systems you can use trickle (http://monkey.org/~marius/pages/?page=trickle) for that without having attic implementing it explicitly.

@skarekrow
Copy link

As it was discussed in the ML, trickle shapes sockets and attic uses a pipe through ssh. Thus it doesn't work with Attic.

@jdchristensen
Copy link
Contributor

I just tested trickle on Ubuntu 14.04, and it works fine with a pipe through ssh. I created a shell script test-trickle.sh containing:

#!/bin/sh
cat 10MB | ssh gorilla "cat > /tmp/10MB"

and then ran

trickle -u 10 ./test-trickle.sh

It was very slow, as expected.

Nevertheless, this would be a nice feature to have built-in.

@skarekrow
Copy link

I have tried it using attic itself, and it did not shape the traffic at
all. I possibly used it wrong, but it's been a while so I can't even
remember what I did. YMMV I suppose, it's cool that it works with a
pipe, but for whatever reason it did not with attic making a pipe.
On 10/6/2014 1:51 PM, Dan Christensen wrote:

I just tested trickle on Ubuntu 14.04, and it works fine with a pipe
through ssh. I created a shell script test-trickle.sh containing:

#!/bin/sh
cat 10MB | ssh gorilla "cat > /tmp/10MB"

and then ran

trickle -u 10 ./test-trickle.sh

It was very slow, as expected.

Nevertheless, this would be a nice feature to have built-in.


Reply to this email directly or view it on GitHub
#103 (comment).

@rpodgorny
Copy link

confirming trickle does not work with attic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants