Hello,

  Since I have not been able to tackle the excessive CPU usage of spamd on a
single machine (see the thread "spamd still burning CPU in 3.0.1"), I am
hoping that the people who said I am simply maxing out spamd's capabilities
are right:  I am moving to a multiple box solution.  I will be putting a
machine online that will likely do little else than run spamd.  I may or may
not continue to run a couple spamd children on the original machine, just to
help out.  I have two questions:

  1) Is it a waste of a whole machine to just run spamd?  I suppose I will be
watching its resource usage, but am wondering if it will be available to be
used as a MySQL server and/or something like NFS.

  2) I am clueless about how to serve spamd in more than one place.  How do I
tell spamc that I have more than one spamd listening for requests in more
than one place?  Also, one spamd will be running a lot more children and will
thus take more requests -- do I somehow (how???) need to load balance or will
it happen "automatically" by simply seeing that one of my machines' spamd
currently has no available children?  Uhhhh, I am lost here.  Anyone know of
any good reading I can do?  Links?  Tips?  How-to's?

Reading man spamc, I see:

-d host   In TCP/IP mode, connect to spamd server on given host (default:
          localhost).

          If host resolves to multiple addresses, then spamc will fail-over
to
          the other addresses, if the first one cannot be connected to.

So do I just do this:

/usr/bin/spamc  -u  <username>  -d  127.0.0.1  123.45.6.789

Again, is load balancing going to be an issue with this configuration? 
Remember, one of these addresses will be underpowered compared to the other.

Ah, then this:  

-H  For TCP/IP sockets, randomize the IP addresses returned from a DNS
    name lookup (when more than one IP is returned). This provides for a
    kind of hostname-base load balancing.

I am not sure how to use this one, but it looks a little more like what I
want.  Can anyone offer pointers on how to implement this?


TIA!



                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 

Reply via email to