PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Redundancy - Space usage not updating

Open vid-bin opened this issue 1 year ago • 3 comments

Describe the current behavior

My space usage doesn't appear to be updating while the instance is downloading videos for redundancy. My concern is that this could cause the instance to download more then the space set/allocated for redundancy, causing potential issues, such as additional fees from the storage provider.

If all jobs are stopped and the instance is not downloading videos (and perhaps it's a hard restart) the space usage will update.

Screenshot 2024-02-21 at 4 01 50 PM

Steps to reproduce

  1. Manually queue videos for download on redundancy

Describe the expected behavior

Space is updated after every video is downloaded.

Additional information

  • PeerTube instance:
    • URL: vidbin.org
    • Version: 6.0.3
    • NodeJS version: 20.11.0
    • Ffmpeg version: git

vid-bin avatar Feb 22 '24 00:02 vid-bin

Actually, I'm not sure if manual videos count at all towards the space usage. That being said my concern is that this may translate over to the automated system as well.

vid-bin avatar Feb 22 '24 00:02 vid-bin

Actually, I'm not sure if manual videos count at all towards the space usage. That being said my concern is that this may translate over to the automated system as well.

I was correct, it doesn't update the space when using the automated redundancy options until you restart the instance.

vid-bin avatar Feb 22 '24 22:02 vid-bin

Hi,

Redundancy stats are cached on server side. I think we can add a custom route/bypass to disable cache for this specific page.

Chocobozzz avatar Feb 26 '24 13:02 Chocobozzz