-
Notifications
You must be signed in to change notification settings - Fork 12
Queue Manager
chros73 edited this page Jul 26, 2016
·
8 revisions
The core concept of the setup is completely based on moving data AND meta files all around the place:
- there's a
.downloadingdirectory withcategories(sub-directories) with whichrtorrentwill start downloading new torrents (these are the watch directories in .rtorrent-config.rc) - when a download is finished
rtorrentmoves theirdatafromincompletedirectory ANDmetafiles (from one of the sub-directories of.downloadingdirectory) into their final place (meaning one of the sub-directories of.completeddirectory). The.downloadingdirectories get empty all the time in this way. - the
.queuedirectory withcategories(sub-directories) containmetafiles that should be moved into one of the sub-directories of.downloadingdir to be able to start them byrtorrentwhen there's free slot in thedownloading queue - there are 3 predefined
categories/directoryforrotating(deleting data) torrents:-
rotating(meansspecialgroup) andunsafecategories -
.delqueuedirectory: it should contain onlysymlinksto deletable meta files
-
- there's also an unsafe_data custom variable defined in
rtorrentthat makes torrents deletable (value2means that the torrent is in delete-queue, meaning.delqueuedirectory)
There's only 1 small queueTorrent.sh queue manager script with rotating (deleting data) capability and category support, that realize all the above mentioned tasks.
It contains 2 functionality:
-
downloading queue managerthat will queue torrents if there's free slot and free disk space for them -
disk free space managerthat will delete data to make free space for the newcomers (this function is called from thedownloading queue manager)
It runs from cron in every 5 minutes.