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

Per-server quotas #352

Closed
rcdailey opened this Issue Mar 20, 2017 · 8 comments

Comments

Projects
None yet
2 participants
@rcdailey

rcdailey commented Mar 20, 2017

I use nzbget with a primary (monthly) paid unlimited server + several block accounts. The block accounts serve as only backups for missing articles. I set them lower down in priority. I have so many of these, that it gets difficult to browse to each website to check on my quota.

Note that all of my block accounts have a quota with no time limit. For example, you can purchase 500GB and use that up over the course of 1 month or 1 year, it doesn't matter.

What would be ideal is to specify a "starting quota" to each server (optional), representing the remaining bytes available on that block account. As actual articles are downloaded on said server, it would subtract the amount of bytes from the quota. Slowly it will approach 0 bytes remaining, and maybe nzbget could allow a per-server threshhold, which will trigger that server to be effectively disabled until I can get around to purchasing more quota for it.

Think of this as tracking the mileage on your car until your next oil change.

Would this be a reasonable feature to add? I have seen similar implementations for quota, specifically #99, but this is a global quota, not per-server.

@hugbug

This comment has been minimized.

Show comment
Hide comment
@hugbug

hugbug Mar 20, 2017

Member

What happens currently when the block is exhausted? Do servers return specific error messages allowing to distinguish the issue from other errors? Please provide message examples if you have any.

If it's possible to distinguish such errors it would be possibly better to react on them instead of trying to disable servers upfront. The usage data calculation in NZBGet and on provider servers may differ slightly. We don't want to disable servers which still may have remaining amount. In other case it may happen that the servers reach the 0 mark before NZBGet does; then we need again NZBGet to understand error messages.

Member

hugbug commented Mar 20, 2017

What happens currently when the block is exhausted? Do servers return specific error messages allowing to distinguish the issue from other errors? Please provide message examples if you have any.

If it's possible to distinguish such errors it would be possibly better to react on them instead of trying to disable servers upfront. The usage data calculation in NZBGet and on provider servers may differ slightly. We don't want to disable servers which still may have remaining amount. In other case it may happen that the servers reach the 0 mark before NZBGet does; then we need again NZBGet to understand error messages.

@rcdailey

This comment has been minimized.

Show comment
Hide comment
@rcdailey

rcdailey Mar 22, 2017

rcdailey commented Mar 22, 2017

hugbug added a commit that referenced this issue Apr 7, 2017

#352: showing volume stats from settings page
New button “Volume Statistics” in section “News Servers” of settings
page. Shows the same volume data as in global statistics dialog.

hugbug added a commit that referenced this issue Apr 7, 2017

#352: option "ServerX.Notes"
for user comments on news servers.

hugbug added a commit that referenced this issue Apr 12, 2017

#352: parameters for api-method "servervolumes"
 as a performance optimization measure to reduce amount of transferred
data.
@hugbug

This comment has been minimized.

Show comment
Hide comment
@hugbug

hugbug Apr 12, 2017

Member

I can offer a solution as an extension script ServerAlert.py - server volume alert.

Also made a few small improvements to NZBGet, which make the script easier to use and optimise performance.

Member

hugbug commented Apr 12, 2017

I can offer a solution as an extension script ServerAlert.py - server volume alert.

Also made a few small improvements to NZBGet, which make the script easier to use and optimise performance.

@hugbug

This comment has been minimized.

Show comment
Hide comment
@hugbug

hugbug Apr 24, 2017

Member

@rcdailey, have you tried the script?

Member

hugbug commented Apr 24, 2017

@rcdailey, have you tried the script?

@rcdailey

This comment has been minimized.

Show comment
Hide comment
@rcdailey

rcdailey Apr 24, 2017

rcdailey commented Apr 24, 2017

@rcdailey

This comment has been minimized.

Show comment
Hide comment
@rcdailey

rcdailey May 12, 2017

Hey @hugbug, sorry it's taken me so long to get back with you :-(

I have installed the script but I do not see the "Volume Statistics" option under any of my servers. The extension settings page does appear in the options tab, though, so I know that NZBget can detect that the script is installed.

I am using NZBget 18.1

rcdailey commented May 12, 2017

Hey @hugbug, sorry it's taken me so long to get back with you :-(

I have installed the script but I do not see the "Volume Statistics" option under any of my servers. The extension settings page does appear in the options tab, though, so I know that NZBget can detect that the script is installed.

I am using NZBget 18.1

@hugbug

This comment has been minimized.

Show comment
Hide comment
@hugbug

hugbug May 12, 2017

Member

You missed that line in script description:

The script requires at least nzbget v19.0-r1940.

Member

hugbug commented May 12, 2017

You missed that line in script description:

The script requires at least nzbget v19.0-r1940.

@rcdailey

This comment has been minimized.

Show comment
Hide comment
@rcdailey

rcdailey May 12, 2017

rcdailey commented May 12, 2017

@hugbug hugbug closed this May 31, 2017

hugbug added a commit that referenced this issue Oct 9, 2017

#352: showing volume stats from settings page
New button “Volume Statistics” in section “News Servers” of settings
page. Shows the same volume data as in global statistics dialog.

hugbug added a commit that referenced this issue Oct 9, 2017

#352: option "ServerX.Notes"
for user comments on news servers.

hugbug added a commit that referenced this issue Oct 9, 2017

#352: parameters for api-method "servervolumes"
 as a performance optimization measure to reduce amount of transferred
data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment