Limiting total downloads between certain times

Want something added? Ask for it here.
Post Reply
Vertigo1
Newbie
Newbie
Posts: 21
Joined: April 5th, 2009, 11:19 am

Limiting total downloads between certain times

Post by Vertigo1 »

I am lucky enough to have 20mb cable here in the UK and, whilst there is no total daily or monthly download limit, their traffic management imposes a download limit of 6GB between 10am and 3pm and 3GB between 4pm and 9pm.  If I hit these limits then my speed drops to 5mb for five hours.

I have thus configured sabnzbd to pause all downloading during these periods.  Whilst this works well, what would be really useful is a way of telling it to limit the total amount downloaded between certain times, so I could tell it that it can download a few GB during the limited periods but should then stop until the period ends.

Just a thought :)
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: Limiting total downloads between certain times

Post by markus101 »

You could have SAB impose a speed limit during those times, based on speed/hours.

IE between 4pm and 9pm (5 hours) if you had the maximum download set to 174 (Actual 174.76266666666666666666666666667) you would download just shy of 3GB.

5 hours = 18,000 Seconds
3GB = 3,145,728 KB

3145728/18000 = 174.76266666666666666666666666667 rounded down to 174 (or less if you plan on doing surfing at that time).

10am to 3pm you would just double the download rate as you get 2x the amount of bandwidth during that time frame. It's not the prettiest solution, but still beats pausing it and having no downloads during those times.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
MageMinds
Release Testers
Release Testers
Posts: 73
Joined: August 14th, 2008, 6:37 am

Re: Limiting total downloads between certain times

Post by MageMinds »

+1 for the Vertigo1's solution ... And SABnzbd is already able to handle that solution.

But that could cause frustration, if you want to download something like right now, you would have to wait because your download speed is chooked even if you don't plan to download anything else that day... Personally I would not mind, since I really never need that stuff right now when I download from sabnzbd.

MageMinds
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Limiting total downloads between certain times

Post by shypike »

Don't count on this specific issue being implemented directly into SAbnzbd.
However, we are working on a plugin system that would enable you to
add functionality.
Maybe in the form of an extended API that would be used by a user script in
launched by the scheduler.
MageMinds
Release Testers
Release Testers
Posts: 73
Joined: August 14th, 2008, 6:37 am

Re: Limiting total downloads between certain times

Post by MageMinds »

Does the API can control the speed?

If yes you could have a 3-party software can monitor the bandwidth and then stop or choke sabnzbd using the API.

Don't ask me which 3-party software though ... But if you know a good programmer he could probably do that for you, but hooking to the kernel network process can be difficult, I'm a programmer and I never did that, never had to, I would have to make a lot a research to be able to do it without causing problems with the OS, unless I can find a Open Source Windows software already able to do it, so I can modify it to my needs.

MageMinds
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Limiting total downloads between certain times

Post by shypike »

http://sabnzbd.wikidot.com/automation-support

It contains a speed entry.
The API will be expanded in 0.5.0
Post Reply