Page 3 of 4
Re: set priority of Backup Server
Posted: January 14th, 2014, 5:44 am
by shypike
Fmstrat wrote:However, I thought I was following your directions for how I should contribute, since I was originally working on the master branch:
If you based in on "develop" then you did the right thing.
It's only me who is behind with the work of merging patches from "0.7.x" to "develop".
It requires a few evenings of concentrated work, those evening are hard to find
Re: set priority of Backup Server
Posted: March 6th, 2014, 4:17 am
by wimpie1
Shypike,
Any news on when this will be included in an official release?
Thanks!!!
Re: set priority of Backup Server
Posted: March 7th, 2014, 1:09 pm
by sab12397
shypike wrote:Fmstrat wrote:However, I thought I was following your directions for how I should contribute, since I was originally working on the master branch:
If you based in on "develop" then you did the right thing.
It's only me who is behind with the work of merging patches from "0.7.x" to "develop".
It requires a few evenings of concentrated work, those evening are hard to find
Like posted in the other thread I too am missing out of the new 0.7.x releases as I am using the develop branch as I thought this would be the latest code releases but this is going in the 0.7.x branch.
If the better priority code makes it at some point it is something there are at least a few people in this thread that can feedback and probably more that are just lurking.
Re: set priority of Backup Server
Posted: March 7th, 2014, 5:40 pm
by shypike
Currently "develop" is seriously behind 0.7.x
This has to do with the fact the the Unicode-ification makes the code bases divergent.
As soon as 0.7.17Final is out, I will start the merge actions.
It has become quite a challenge.
Re: set priority of Backup Server
Posted: March 8th, 2014, 4:44 am
by sab12397
shypike wrote:Currently "develop" is seriously behind 0.7.x
This has to do with the fact the the Unicode-ification makes the code bases divergent.
As soon as 0.7.17Final is out, I will start the merge actions.
It has become quite a challenge.
Sounds good. I will update and give it a try when you have time to merge.
Re: set priority of Backup Server
Posted: March 18th, 2014, 7:20 pm
by Fmstrat
shypike wrote:Currently "develop" is seriously behind 0.7.x
This has to do with the fact the the Unicode-ification makes the code bases divergent.
As soon as 0.7.17Final is out, I will start the merge actions.
It has become quite a challenge.
Hi Shypike,
I got a PM about wanting to pull from my GitHub version and realized that you've made changes to the master that have overwritten my server priority updates in my own fork(I'm assuming because of overlapping lines). Were you ever able to look at that pull for integration?
Thanks.
Re: set priority of Backup Server
Posted: March 18th, 2014, 7:25 pm
by Spritzup
I would be very curious to try this out and/or see this merged.
Thanks for all your hard work.
~Spritz
Re: set priority of Backup Server
Posted: March 20th, 2014, 4:40 am
by shypike
Fmstrat wrote:
I got a PM about wanting to pull from my GitHub version and realized that you've made changes to the master that have overwritten my server priority updates in my own fork(I'm assuming because of overlapping lines). Were you ever able to look at that pull for integration?
By the time I'm ready syncing "develop" with "0.7.x",
I will hand-merge your solution into "develop".
I'll get back to you then, so that you can easily create a new pull-request, so that your authorship is acknowledged.
Currently, I'm simply flooded with other things in the non-SABnzbd part of my life.
Re: set priority of Backup Server
Posted: May 30th, 2014, 1:58 pm
by sab12397
shypike wrote:By the time I'm ready syncing "develop" with "0.7.x",
I will hand-merge your solution into "develop".
I'll get back to you then, so that you can easily create a new pull-request, so that your authorship is acknowledged.
Currently, I'm simply flooded with other things in the non-SABnzbd part of my life.
Wondering if you have had any time to look at getting the new priority system merged and integrated?
When the develop branch has caught up with recent 0.7 enhancements please announce.
Thanks
Re: set priority of Backup Server
Posted: May 30th, 2014, 4:14 pm
by shypike
"developer" is now about at the same level as "0.7.x".
You can rebase and create a new pull request.
Sorry for all the delays.
Re: set priority of Backup Server
Posted: June 1st, 2014, 1:42 pm
by sab12397
shypike wrote:"developer" is now about at the same level as "0.7.x".
You can rebase and create a new pull request.
Sorry for all the delays.
shypike wrote:By the time I'm ready syncing "develop" with "0.7.x",
I will hand-merge your solution into "develop".
I'll get back to you then, so that you can easily create a new pull-request, so that your authorship is acknowledged.
Currently, I'm simply flooded with other things in the non-SABnzbd part of my life.
Fmstrat wrote:
Hi shypike,
I know this isn't the newest post on the topic, but since it's the first result on Google I figured I would respond here.
I spent the day today forking sabnzbd in github to
https://github.com/Fmstrat/sabnzbd and I think I've got an enhancement in place for this. It took me longer to figure out the current process than it did to update for priorities.
As it stands now, Primary servers still outrank Backup servers regardless of the number set in the priority setting. 0 priority means it will be used first, higher numbers later. On upgrade everything is set to 0, retaining current randomized backup order.
The code has a ton of debug logging calls in it now that I'll remove after I've tested this for a while before pushing up to the master (new to git, so still figuring that out).
Thanks,
B.
Thanks for the update I assume you mean the "develop" branch.
No idea where to start with this myself I was just enquiring if there was a chance of testing the priority code out?
I do not know if Fmstrat is still around to submit a pull request it would be a pity to not have this functionality.
Re: set priority of Backup Server
Posted: June 2nd, 2014, 2:21 pm
by shypike
sab12397 wrote:Thanks for the update I assume you mean the "develop" branch.
No idea where to start with this myself I was just enquiring if there was a chance of testing the priority code out?
I do not know if Fmstrat is still around to submit a pull request it would be a pity to not have this functionality.
Yes, the "develop" branch.
I'll have another look at fmstrat's contribution.
Re: set priority of Backup Server
Posted: June 3rd, 2014, 9:06 am
by Fmstrat
If you don't still have mine, I likely have a local copy of the change around here somewhere.
Re: set priority of Backup Server
Posted: June 3rd, 2014, 2:28 pm
by shypike
Fmstrat wrote: I likely have a local copy of the change around here somewhere.
That would be great.
Re: set priority of Backup Server
Posted: June 3rd, 2014, 2:58 pm
by Fmstrat
I don't have time at the moment to resync and re-make the changes, but if it helps, here is a diff from when I conducted the change. It was a pretty straight forward tweak overall:
- Added a numerical priority option into the config_server and setup wizard skins
- In get_article, where it looped through the servers, it originally only skipped a server if it was a backup and all primaries had not been tried. I simply made it say: "If we are in primaries, and there is a primary left with higher priority, skip. If we are in backups, and there is a backup left with a higher priority, skip." This required passing the "servers" array to get_article, too.
git.log:
http://pastebin.com/DVdLQxw6
P.S. I should note, this isn't the MOST efficient way to accomplish this. Due to the multi-threaded nature of processing I couldn't simply go in order without re-writing the code (which is the reason I know you didn't tackle this). However, this method didn't show any noticeable slow-downs in transfer speed for me, or in CPU cycles even on a lowly VM.
Thanks.