Page 1 of 1

Dual Streams

Posted: April 10th, 2009, 10:47 pm
by dcp
Just wondering.. would it be possible for sabnzbd to have a dual stream option? e.g. I have 20 connections that i can split up for two simultaneous downloads. This is because, at times, certain articles do not use the full bandwidth because of their age and rather than wasting time on with one streamset, why can't we have option for two? 10 connections for nzb-1 and 10 for nzb-2.

sabnzbd would simply download the first two on the queue if we set the allocation options.

Download stream A
No. of connections:
Server:
User ID:
PW:

Download stream B
No. of connections:
Server:
User ID:
PW:

If the leave the option as zero (null), it would simply use stream A.  I think this would be useful for certain articles that are small, e.g. resources can use the smaller stream whilst larger items like ISOs can use more connections. Maybe a secondary queue would be good too..

Just an idea..

Re: Dual Streams

Posted: April 17th, 2009, 6:32 am
by shypike
Too complicated.
You have to keep in mind that projects like this are volunteer operations.
Unless a team member takes an interest in large features like this, they won't happen.

Re: Dual Streams

Posted: April 17th, 2009, 8:25 am
by DeXeS
Since it doesn't get implemented, maybe a tip is to run 2 instances of sabnzbd+ the same time

Re: Dual Streams

Posted: April 17th, 2009, 12:38 pm
by dcp
shypike wrote: Too complicated.
You have to keep in mind that projects like this are volunteer operations.
Unless a team member takes an interest in large features like this, they won't happen.


;D Sorry  :P Just an idea  :D

I wish i had the skill sets like you guys  ;D I would try to do it.

Is it not as simple as allowing two separate instances of sabnzbd to run? Forgive my limited knowledge in this field  :-[

Re: Dual Streams

Posted: April 17th, 2009, 12:40 pm
by dcp
DeXeS wrote: Since it doesn't get implemented, maybe a tip is to run 2 instances of sabnzbd+ the same time
Not sure if sabnzbd will allow that. Another option we were thinking of was to run simultaneous user accounts on the same machine but not sure if 1) sabnzbd will allow this 2) our usenet server will allow simultaneous account log ins.

Re: Dual Streams

Posted: April 17th, 2009, 1:38 pm
by shypike
You can run two SAB's at the same time, as long as you give them separate:
- INI files
- "incomplete" folder
- cache, logs, nzbbackup, admin
- watched folders
- Web ports

The problem is that you need to divide the allowed maximum connections per server over the two.
So suppose Giganews gives you 20 connections max, you must split that between instances, like 5/15 or 10/10.

Re: Dual Streams

Posted: April 17th, 2009, 3:33 pm
by dcp
ok.. so how do you configure sabnzbd to create a different .sabnzbd and .ini file? Is there a template which i can alter?

Re: Dual Streams

Posted: April 17th, 2009, 3:46 pm
by dcp
I've been looking into the folders of the sabnzbd files specifically the .py files but cant seem to figure it out.

Essentially, what i think i should be doing is to find the folder creation part that creates the .sabnzbd folder in the /User/ directory and change it so it creates a /.sabnzbd2/ on the modified second app. At this moment, i have duplicated sabnzbd and renamed it sabnzd2 and changed the server port to another port.

The second app runs but shares the same space as the first i.e. reading the same .ini and sharing the same space.

Re: Dual Streams

Posted: April 17th, 2009, 3:47 pm
by DeXeS
dcp wrote: ok.. so how do you configure sabnzbd to create a different .sabnzbd and .ini file? Is there a template which i can alter?
in XP, start sabnzbd+ once (you already did that) and close it. Copy the sabnzbd+ folder to another location. Go to "%userprofile%\Local Settings\Application Data\sabnzbd" and copy everything from that folder to the copied sabnzbd+ folder. Open sabnzbd.ini (the file got copied two) and edit the
- "incomplete" folder
- cache, logs, nzbbackup, admin
- watched folders
- Web ports
you can also just change the port only in the ini and then start it and change the rest from the webgui.

should be working something like that

check http://sabnzbd.wikidot.com/faq#toc13 for other system's sabnzbd+ profile settings

Re: Dual Streams

Posted: April 17th, 2009, 4:59 pm
by dcp
Hmm.. not quite the same but i figured it out.

This is for MacOS

Create a  duplicate file and rename to sabznbd2.app
Then do the following:
Basically, you need to create a .sabnzbd2 folder in the terminal
Once that is done, create a /cache and /log
Copy the old sabnzbd.ini into the .sabnzbd2 folder and edit the server settings:
change the cache, download, backup folders to the desired folder
change the server connections to what's required (remember to change the old to balance out the connectiosn)

Once all this is done, you need to run the following in terminal:

/Applications//Contents/MacOS/SABnzbd --server x.x.x.x:8080 -f /Users//.sabnzbd/sabnzbd.ini    {this runs the first app on port 8080}

open another terminal window:

/Applications//Contents/MacOS/SABnzbd --server x.x.x.x:8081 -f /Users//.sabnzbd2/sabnzbd.ini    {this runs the second app on port 8081}

Leave both terminal windows open. If u kill it, the apps die.

If you quit these or restart your computer, sabnzbd automatically reset to last port used and default .ini in the first folder. Somehow these ports are automatically labelled by sabnzbd as its port so when u restart, it uses them. Doesnt seem to be bound to the app itself. Fook, spent all night looking at this. 5:55am here!

Nite all!

Re: Dual Streams

Posted: April 18th, 2009, 5:01 am
by shypike
Please read the Wiki.
http://sabnzbd.wikidot.com/command-line-parameters

The -f parameter is key.
If you specify an INI file, all relative folders in Config->Folders will be relative to the location of the INI file. If you do not specify an INI file, SABnzbd will first check if the file sabnzbd.ini is in the program directory and after that in the "standard" location.
dcp's example is incorrect, you should not mix INI files.

Re: Dual Streams

Posted: April 18th, 2009, 10:50 am
by dcp
shypike wrote: Please read the Wiki.
http://sabnzbd.wikidot.com/command-line-parameters

The -f parameter is key.
If you specify an INI file, all relative folders in Config->Folders will be relative to the location of the INI file. If you do not specify an INI file, SABnzbd will first check if the file sabnzbd.ini is in the program directory and after that in the "standard" location.
dcp's example is incorrect, you should not mix INI files.

Mix INI files?? Where do I mix INI files? sabnzbd creates its own in the .sabnzbd2 folder.

Re: Dual Streams

Posted: April 19th, 2009, 5:03 am
by shypike
dcp wrote: Mix INI files?? Where do I mix INI files? sabnzbd creates its own in the .sabnzbd2 folder.
I failed to spot the "2" in your second path.