Quota overrides schedule settings
Posted: November 30th, 2021, 9:04 pm
I was running close to my internet limit and just accidentally pushed myself over, partially due to my misconfiguration, and partially because SABnzbd behaved differently than expected. I'm running 3.4.0 on a QNAP NAS.
Although the QNAP is set to local time, it's a linux server and runs off UTC. I have my schedule set to pause at 1100 (daylight saving)/1200 (normal) UTC to equate to 0700 US Eastern Time and resume at 0300/0400 to equal 2300 US Eastern Time.
The first issue was in my configuration. I have the quota set to recycle on day 1, which I mistakenly assumed was using local calendar day even though I know the scheduler uses UTC. That means the quota can reset as early as 1900L when it's still the last day of the month to my ISP. Apparently I've had this set wrong for years and only just noticed it.
The other issue that surprised me was that pausing for quota overrides the schedule settings. I was awake early today and added some files at about 0900 UTC. At 0924 UTC, it reached the quota and paused downloads. I expected it to stay paused when reaching the daily 1200 UTC pause command and remain paused until the daily 0400 resume command. Instead, at 0000 UTC, SAB reset the quota and immediately resumed downloading 4 hours early.
Fortunately it's only a $10 mistake this time, but I'm trying to avoid overages in the future. To be sure the quota doesn't recycle before midnight local, I've changed it to day 2. That should prevent it from starting up before the ISP rolls over to the next month. I'm also reducing my overall quota because it seems allocating 1/3 of our allowable usage to SAB isn't allowing enough data for everything else we use.
I wouldn't call the quota superseding the schedule a bug; it's just a design parameter I didn't realize until today.
Although the QNAP is set to local time, it's a linux server and runs off UTC. I have my schedule set to pause at 1100 (daylight saving)/1200 (normal) UTC to equate to 0700 US Eastern Time and resume at 0300/0400 to equal 2300 US Eastern Time.
The first issue was in my configuration. I have the quota set to recycle on day 1, which I mistakenly assumed was using local calendar day even though I know the scheduler uses UTC. That means the quota can reset as early as 1900L when it's still the last day of the month to my ISP. Apparently I've had this set wrong for years and only just noticed it.
The other issue that surprised me was that pausing for quota overrides the schedule settings. I was awake early today and added some files at about 0900 UTC. At 0924 UTC, it reached the quota and paused downloads. I expected it to stay paused when reaching the daily 1200 UTC pause command and remain paused until the daily 0400 resume command. Instead, at 0000 UTC, SAB reset the quota and immediately resumed downloading 4 hours early.
Fortunately it's only a $10 mistake this time, but I'm trying to avoid overages in the future. To be sure the quota doesn't recycle before midnight local, I've changed it to day 2. That should prevent it from starting up before the ISP rolls over to the next month. I'm also reducing my overall quota because it seems allocating 1/3 of our allowable usage to SAB isn't allowing enough data for everything else we use.
I wouldn't call the quota superseding the schedule a bug; it's just a design parameter I didn't realize until today.