how to setup load balancing. aka load pics from another server (11)

1 Name: Anonymous : 2006-01-11 12:25 ID:+UIMxCam [Del]

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?.

2 Name: me : 2006-01-11 12:30 ID:+UIMxCam [Del]

ok, it's in the config.
But at the server where i want my pics loaded i don't have perl.
:(

3 Name: dmpk2k!hinhT6kz2E : 2006-01-11 15:51 ID:Heaven [Del]

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.

4 Name: me : 2006-01-16 07:42 ID:Lww7MiVL [Del]

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 ????

5 Name: Anonymous : 2006-01-16 09:32 ID:k96KGn8j [Del]

> does it mather ????

No.

6 Name: Anonymous : 2006-08-30 20:04 ID:NIe43E8i [Del]

Would I be correct in assuming the documentation spoken of for Load Balancing in config.pl is non-existent at this point in time?

7 Name: !WAHa.06x36 : 2006-08-31 09:39 ID:Q4UBDVqy [Del]

Pretty much. That's all dmpk2k's code, and hopefully he can fill us in some details.

8 Name: Anonymous : 2006-08-31 09:49 ID:NIe43E8i [Del]

>>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.

9 Name: dmpk2k!hinhT6kz2E : 2006-08-31 17:45 ID:Heaven [Del]

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.

10 Name: Anonymous : 2007-03-12 10:25 ID:Heaven [Del]

>>9
That's very helpful. Thank you.

11 Name: Anonymous : 2007-03-12 10:25 ID:Heaven [Del]

>>9
That's very helpful. Thank you.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: