How does perlbal decide which server to send a client to?

1 view
Skip to first unread message

Travis Reeder

unread,
Aug 27, 2008, 3:38:50 PM8/27/08
to perlbal
I can't seem to find any docs on this, so just wondering the algorithm
behind the load balancing. It says this on the site:

Intelligent load balancing based on what backend connections are free
for a new request. No unreliable "weighting" numbers required.

In particular, I'm wondering if it sends the same client to the same
server so you can use sessions?

Travis

Mark Smith

unread,
Aug 27, 2008, 8:20:13 PM8/27/08
to per...@googlegroups.com
> In particular, I'm wondering if it sends the same client to the same
> server so you can use sessions?

Sticky sessions are not supported by Perlbal. Clients will go to the
first available backend - whichever it is.

Perlbal's load balancing works based on who is in a "known available"
state. This has been covered on the mailing list before, search for
OPTIONS or load balancing or random, I believe, those terms should
give a good start. (In particular I know I wrote a post on the whole
process of sending an OPTIONS request, etc...)


--
Mark Smith / xb95
smi...@gmail.com

Andrew McClain

unread,
Aug 29, 2008, 5:00:58 PM8/29/08
to perlbal
I'm actually interested in this as well, since we have one server
which is consistently getting more load than the other.

However, since we've moved to google groups, there's no real results
when searching for those terms you mentioned, and http://lists.danga.com/pipermail/perlbal/
doesn't seem to have a search (unless I'm missing it).

Brett Hoerner

unread,
Aug 29, 2008, 5:06:41 PM8/29/08
to per...@googlegroups.com
On Fri, Aug 29, 2008 at 4:00 PM, Andrew McClain <awmc...@gmail.com> wrote:
> However, since we've moved to google groups, there's no real results
> http://lists.danga.com/pipermail/perlbal/
> doesn't seem to have a search (unless I'm missing it).

Use site:http://lists.danga.com/pipermail/perlbal/ on Google

http://www.google.com/search?hl=en&q=site%3Ahttp%3A%2F%2Flists.danga.com%2Fpipermail%2Fperlbal%2F+test&btnG=Google+Search&aq=f&oq=

Brett

Mark Smith

unread,
Aug 29, 2008, 5:09:47 PM8/29/08
to per...@googlegroups.com
> I'm actually interested in this as well, since we have one server
> which is consistently getting more load than the other.
>
> However, since we've moved to google groups, there's no real results
> when searching for those terms you mentioned, and http://lists.danga.com/pipermail/perlbal/
> doesn't seem to have a search (unless I'm missing it).

The thread I'm thinking of is (I think):

http://lists.danga.com/pipermail/perlbal/2008-June/000991.html

Read that through, and then if you have questions, toss 'em out and
one of us will do our best to answer. :)

Reply all
Reply to author
Forward
0 new messages