how to setup load balancing. aka load pics from another server.
i can't find where to put the path.
And by the way, my hosting does not show me directory listing,
does it mather?.
ok, it's in the config.
But at the server where i want my pics loaded i don't have perl.
:(
No perl installed on server = no go. :(
You can code a replacement in another language, if you know how; loader.pl is very simple. Otherwise you'll need to install perl.
Maybe one day there will also be ftp support, but given how rarely the load balancer is needed, time would be better invested on more pressing issues.
nevermind, the 1st problem is that it does not suppor Pert
but the info.php shows me
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003
does it mather ????
> does it mather ????
No.
Would I be correct in assuming the documentation spoken of for Load Balancing in config.pl is non-existent at this point in time?
Pretty much. That's all dmpk2k's code, and hopefully he can fill us in some details.
>>7
I hope so too :3
Although, I'm running out of time (monthly bandwidth cap), so I'll probably have to figure something out myself!
Oh well, I look forward to this in the future, whenever it may be done. I'm sure dmpk2k has things to do.
It's a bit ugly.
Let's say you have three machines: A, B, C. A is the board itself, and B and C are machines you want to load-balance with.
Put a copy of loader.pl (in extras/) on B and C, and change the PASSWORD in both files. Make sure that the directories are writable by the scripts.
Move sender.pl out of extras/ into board A's main directory (the same place as wakaba.pl).
Edit config.pl on machine A. Set ENABLE_LOAD to 1, and change LOAD_HOSTS to reflect your setup. So assume for a moment that the loader on B is at http://www.someboard.com/a/loader.pl with a password of "john", and C is at http://www.yetanotherboard.org/loader.pl with a password of "doe". Then LOAD_HOSTS will look like this:
use constant LOAD_HOSTS => (['http://www.someboard.com/a/loader.pl', 'john', 10], ['http://www.yetanotherboard.org/loader.pl', 'doe', 10]);
You can ignore the two numbers in the above line, so long as they're equal. They're meant to adjust ratios where later requests are sent too, but at the moment I think it's bugged.
The last thing you need to do is move redir-convert.pl out of extras/ into the same directory as wakaba.pl, and then run redir-convert.pl from a browser.
Now refresh wakaba's cache, and you should be good to go.