Load Balancing + File Locking

Denis Beauchemin Denis.Beauchemin at USHERBROOKE.CA
Thu Sep 30 21:55:58 IST 2004


<x-flowed>
Boulytchev, Vasiliy wrote:

>Ladies and Gents,
>        The loads on the mail server require us to start moving Mailscanner
>with Spam and Virus filtering to other machines.  Questions:
>        1.)     How does MS do the locking on files in the submitted
>directory (after cgp2ms)?  If NFS3 is used to mount that shared folder on
>say 3 servers designated to only scanning mail, how do we avoid run-ons?
>        2.)     Idea: if the local procs keep track of locking, then we can
>toss all that into mysql for example? :)))  Just thinking of ways to add
>scalability.
>
>  
>

Vasiliy,

We have 2 MS servers for incoming mail and they don't share any spool 
directory.  They are separate servers and the load balancing is done 
through the MX records.  Our 2 servers were not identical (one was about 
twice as fast as the other) and we had the following:
# host -t mx usherbrooke.ca
usherbrooke.ca mail is handled by 10 smtpe1.usherbrooke.ca.
usherbrooke.ca mail is handled by 10 smtpe2.usherbrooke.ca.
usherbrooke.ca mail is handled by 10 smtpe3.usherbrooke.ca.

Here smtpe1 and smtpe3 are the same machine (the fastest one) with 
different IP.  It received close to 2/3 of all mail.

I just replaced the slowest one (smtpe2) by a machine identical to the 
fastest one (smtpe1) so I asked our DNS guys to drop the smtpe3 name.

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x2252 F: 819.821.8045

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

</x-flowed>



More information about the MailScanner mailing list