Anand Buddhdev writes:

> However, at t+310, nothing happened. queuedelivering was still at 380,
> and courier was making attempts to deliver messages to host B, and
> getting deferrals. At t+610, the queue still hadn't re-filled. The queue
> was eventually refilled to queuehi (400) at t+1h, when courierd
restarted.
>
> Have I missed something? Or is there a bug in the code?

What happened, probably is that first twenty messages got deferred quickly
before the second batch got fully injected.  They got kicked out of the
queue before the next 380 messages came in, so the in-memory queue never
reached the high watermark.

When mail gets deferred, it is removed from the in-memory queue. The
timer
only starts ticking when the queue high watermark is reached.

This is what I don't understand then. Why would the first 20 messages be removed from the in-memory queue? And why did courier's log show queuedelivering=20?

When a delivery attempt is deferred, the message is rescheduled, and is removed from the in-memory queue. If the queue size is below the low-watermark value, the queue is immediately rescanned, and the message is, essentially, requeued for its next scheduled time. Otherwise, the queue is rescanned when completed delivery attempts reduce the queue to the low watermark level, at which time it will rescan and requeue only those messages with the earliest next scheduled delivery attempt.


If what you describe is what actually happened, then the original problems
still exists:
messages to host A initially get deferred, and then evicted from the queue,
and will not
re-enter the queue, because there is a constant stream of messages for host
B which
dominates the queue, but never hits the high watermark, and thus never
triggers the
queuefill timer.

You'll just have to tune the parameters in accordance to your mail traffic levels.




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to