There's more than one way to do things | |
PerlMonks |
Load Balancingby onegative (Scribe) |
on Nov 16, 2007 at 14:21 UTC ( [id://651211]=perlquestion: print w/replies, xml ) | Need Help?? |
onegative has asked for the wisdom of the Perl Monks concerning the following question:
Good day Monks,
I am trying to add some load balancing functionality to a script by having a list of 4 hosts that are called either randomly or in a no repeat fashion so that every time the script is called it does not use the same host from the previous call. The script is not a running daemon thus I can't keep a record of the last known host called...
Is there a way to use random() or something else to select a different host without having an external lookup table to know which host was called previously...its not necessary that the same host not be called and therefore a random host would work but I am not sure how to use this function with a complete (FQDN) string... Any suggestions would be greatly appreciated... Thanks in advance, Danny
Back to
Seekers of Perl Wisdom
|
|