Smith, Lisa <[EMAIL PROTECTED]> wrote:
>
> What I'd like to know is if anyone has come up with a script that can modify
> qmails concurrencyremote setting "on the fly" based on available bandwidth?
Not to my knowledge. I've seen people mention the possibility before, but
never seen a proposed solution.
> Basically what I am looking for (and we may write in-house if no one has
> something similar out there), is a script that would be able to detect the
> available bandwidth, and adjust qmail's concurrencyremote setting, so that
> we're not sending too much (or too little) traffic out that pipe.
Changing the remote concurrency is fairly simple; write your new value to
/var/qmail/control/concurrencyremote and restart qmail. It might take a
minute or two to stop if there are remote deliveries in progress. You could
theoretically do this in a shell script called from cron every ten minutes or
so. Measuring "available bandwidth" is, of course, the tricky part.
> The problem that we're running into is that our machines are either sending
> out too much at once (concurrency set 'too high'), causing failed
> connections, and bounces, else the machines are throttled back
> (concurrencyremote set 'too low') not taking advantage of the available
> bandwidth.
Why not just pick the highest value that still leaves you sufficient bandwidth
for other purposes? qmail may not use all the available bandwidth, but it
will keep moving the mail out throughout the slow times, and should even out.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------