I agree with you, I forgot to mention that, sorry.  I didn't have enough
Mountain Dew yet.  :)

-----Original Message-----
From: Michael T. Babcock [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 10:44 AM
To: Austad, Jay; [EMAIL PROTECTED]
Subject: Re: updated load balancing qmail-qmqpc.c mods

Re-read my point: its unnecessary.  I didn't say it wouldn't work.  I said
the CPU use of doing it this way was unnecessary over a simpler round-robin
approach (After picking an initial random server).

Note: I think using an array of pointers to server addresses would allow you
to do your rotations a lot faster.  Think "point quicksort".

----- Original Message -----
From: "Austad, Jay" <[EMAIL PROTECTED]>

> Even if one server is getting hit multiple times in a row, I don't think
> will matter.  I put in 10 servers in my qmqpservers file and some well
> placed printf's in qmqpc and ran it 100,000 times several times through.
> Each server was getting picked about 10% of the time +/- 1% or so.  If
> sending millions of messages, this +/- 1% isn't going to make a
> difference.

Reply via email to