All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Cattelan <cattelan@thebarn.com>
To: xfs@oss.sgi.com
Cc: stan@hardwarefreak.com
Subject: Re: [PATCH] disable tags in post-receive hook
Date: Thu, 12 Apr 2012 11:15:40 -0500	[thread overview]
Message-ID: <4F86FFAC.6030904@thebarn.com> (raw)
In-Reply-To: <4F86971A.1030507@hardwarefreak.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 3036 bytes --]

On 4/12/12 3:49 AM, Stan Hoeppner wrote:
> On 4/11/2012 11:26 AM, Ben Myers wrote:
>> Hey Folks,
>>
>>     Yesterday I pushed tags to the oss.sgi.com xfs git repository and forgot to
>>     disable the post-receive hook which generates email to the list at commit
>>     time.  You probably saw the resulting mailbomb.  I'm sorry about that.  In
>>     order to make sure it doesn't happen again next time, I have applied the
>>     following patch to our post-receive hook:
> 
> I curse you for the error Ben and praise you for this correction.
> Mailman unsubbed me sometime yesterday according to a subject line.
> There was no body, no reason give.  But, I know the cause.
> 
> I was limiting concurrent SMTP connections to 1 to fight runaway bots.
> Was working great until this bombing run.  The OSS list server runs
> Sendmail, which is dumb and opens a new connection for every message
> delivery.  This behavior can potentially bring an MX to its knees due to
> smtpd process starvation.
Hmm yes and no.
There was some config issues with with queues on oss that hopefully I
have significantly improved. Sendmail does do connection caching and
will deliver as much mail as possible on the same connection as
possible. The problem was that the queue runnners was set to 400 runners
which was essentially was causing oss to grind itself into the ground
and causing enough delays that most connection caches where probably
timing out.

Also the queue sorting has been changed from the default "priority" sort
which basically will be a time sort in this case to "host" sort which
will try to optimize envelope address delivery. For a mail list server
this should be a significant win since it should be able to better take
advantage of the connection cache. (especially when "tag" bombs happen).

The queue run time has been changed from the default of 30m to 1m which
should cut the mail list delays down significantly.

Changed the drive queue scheduler from cfq to deadline

I've been watching the headers since the change and the turn around
times for mail leaving the originating host to landing in my mail server
is about 1 - 2 min. Occasionally there is a delay on sgi's barracuda box
but that is whole other box of worms.

Please send me any observations  + or - so I know if the tuning is
headed in the right direction.

-Russell

> 
> Postfix on the other hand will open one connection and keep sending
> until all mail queued for the destination MX has been sent, or until
> there is more than a 2 second delay between deliveries.
> 
> I understand Brent Bice of SGI is building an 'evidence file' to justify
> a rebuild of OSS to use Postfix and the latest Mailman.  Maybe you could
> lend your support or blessing.
Heh another can of worms :-)

> 
> The current OSS list server has other problems as well, including large
> delays between receiving posts and sending them back out.  I'm assuming
> I'm not the only one to notice this.
> 
> Thanks.
> 


[-- Attachment #1.1.2: cattelan.vcf --]
[-- Type: text/x-vcard, Size: 290 bytes --]

begin:vcard
fn:Russell Cattelan
n:Cattelan;Russell
org:Digital Elves Inc
adr:;;2824 Lakeview Ave;Roseville;MN;55113;usa
email;internet:cattelan@digitalelves.com
tel;work:612 293 6009
tel;cell:612 805 3144
x-mozilla-html:FALSE
url:http://digitalelves.com
version:2.1
end:vcard


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2012-04-12 16:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 16:26 [PATCH] disable tags in post-receive hook Ben Myers
2012-04-11 20:22 ` Christoph Hellwig
2012-04-11 22:00   ` Ben Myers
2012-04-12  8:49 ` Stan Hoeppner
2012-04-12 16:15   ` Russell Cattelan [this message]
2012-04-13  2:45     ` Stan Hoeppner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F86FFAC.6030904@thebarn.com \
    --to=cattelan@thebarn.com \
    --cc=stan@hardwarefreak.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.