>It averages about 12s and it times out on occasions.

Yes, this could be happen on very high load systems.

If you process 1.2M mails a day with assp I assume that most of the 
connections are transfered via 'interrupt' from the MainThread to the 
SMTP-workers.

for example:

worker 1 processes currently 10 connections -> the MainThread interrupts 
the worker while this is just doing checks on connection 1 and transfers 
the new connection to the worker. The worker get's the new connection [ -> 
connect (11) ] without doing an -> accept, because we have to keep the 
interrupt routine as short as possible. The worker returns to the stuff of 
connection 1 and processes 1 to 10 - after that, he is doing the ->accept 
(11) and connects the peer connection to the MTA. In the next loop (cycle) 
the worker will read the greeting from the MTA - and in the next cycle he 
will send the greeting (220 ....) to the client. 

So, if it takes the worker 2 seconds to process all (10) connections one 
time (one loop) and the TCP send/receive time per connection is 1 second - 
it takes the client 12 seconds to see the greeting.
This time could be even longer, if extensive ClamAV checks, charset 
conversions, DKIM signature check / create or bombRe's are done or level 2 
(complete mail) Plugins are used.

To keep the process time per connection as short as possible, I recommend 
to setup assp on high load systems as follows:

- set any IP and HELO checks to early block
- set PB-valence values for the MXA,PTR and SPF checks short below the 
PB-limit
- set the PB to block
- try to use bombHeaderRe's to detect those spams as early as possible
- try to block instead of score if possible - never use monitoring or 
testmodes
- try to set MaxBytes as low as possible
- do not use DKIM,charset conversion or any Plugin - better setup a second 
assp box behind, that is doing this stuff



Thomas




Von:    Paul Schutte <[email protected]>
An:     GrayHat <[email protected]>, ASSP development mailing list 
<[email protected]>
Datum:  19.07.2010 18:32
Betreff:        Re: [Assp-test] Versions .13 and .15




On Mon, 2010-07-19 at 16:13 +0200, GrayHat wrote:
> Trevor, don't know about you but (Thomas knows) I've a quite busy
> box (and I mean *really* busy) so, what you call a "spam flurry" is a
> "standard" in my case and while ASSP was crashing under some 

You sound like the right guy to ask...

I also have a fairly busy (+/- 1.2M mails/day) server.

At times ASSP takes a long time to respond to connections.

It averages about 12s and it times out on occasions.

I have a perl script that do connect; helo,noop,quit and I measure how
long it takes to do this (once every minute).

The backend servers are fast enough (always 3ms response time ) and the
DNS is 0-1 ms response across 4 servers.

It is not using a lot of CPU. About 80% of 1 core. There are 8 cores
available. Might spike to 200% for very short bursts.

Are there any thing in particular that I should look at ?

Regards
Paul


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to