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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Load Balancing
by Limbic~Region (Chancellor) on Nov 16, 2007 at 15:09 UTC | |
by onegative (Scribe) on Nov 16, 2007 at 15:45 UTC | |
Re: Load Balancing
by scorpio17 (Canon) on Nov 16, 2007 at 14:38 UTC | |
Re: Load Balancing
by dwm042 (Priest) on Nov 16, 2007 at 15:29 UTC | |
by onegative (Scribe) on Nov 16, 2007 at 15:53 UTC | |
Re: Load Balancing
by andyford (Curate) on Nov 16, 2007 at 17:56 UTC | |
Re: Load Balancing
by oha (Friar) on Nov 16, 2007 at 16:28 UTC | |
Re: Load Balancing
by andreas1234567 (Vicar) on Nov 16, 2007 at 20:13 UTC |
Back to
Seekers of Perl Wisdom