On Tue, Apr 11, 2000 at 08:50:43PM -0700, John White wrote:
> tcpserver lets you do this in a couple different ways.  First off, you
> can set up your tcpserver to load balance qmail instances by originating
> IP address.  This isn't that attractive unless you have specific stats
> in hand on originating IPs, and are willing to constantly monitor this.
> 
> The other method is to have multiple IPs on the box, have each tcpserver
> bind to a specific IP, have each tcpserver feed to a specific qmail
> instance, and RR smtp traffic to the IPs via some external mechanism.
> DNS is very good for the last step, but you might have to use hardware,
> as you don't seem to have that option.

The other way could be to run a custom front end that picks one out of a
set of qmail-smtpd's to execute.  Picking one at random each time should
in most cases be adequate, but you could also use the current time to
pick a new one to execute every second (or every sub-second, using
gettimeofday).  If you code this in C, it can happen very fast, and
doesn't take up extra IPs (which can be a rare commodity if you have to
use Internet-visible IPs).
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

Reply via email to