Did I mention I've got all of my queues set to infinite retries? ;]
retry_econnrefused
retry_nolink
send_failure_action=retry
send_job_rw_timeout=3600
send_query_rw_timeout=0
send_try=0
Russell
On Tue, Apr 27, 2004 at 02:18:32PM -0700, Patrick Powell wrote:
> > From [EMAIL PROTECTED] Wed Apr 21 16:15:55 2004
> > Date: Wed, 21 Apr 2004 17:27:17 -0500
> > From: Russell Adams <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: LPRng: Runaway and DNS lookups
> >
> > I've got a print queue with an lp entry for a printer who's DNS name
> > was removed.
> >
> > Someone sent print to the queue, and of course LPRng can't resolve the
> > name to contact the printer. This works properly.
> >
> > As an unintended consequence, LPRng has brought our DNS server to its
> > knees with a tight loop of dns lookups that fail for the name that no
> > longer exists. We're talking hundreds of lookups a second, being sent
> > by a 2.4 ghz server to an old 400 mhz DNS box. It didn't stand a
> > chance. =]
>
>
> I am puzzled by this. On the current release I did:
>
> t1:
> :[EMAIL PROTECTED]
>
> lpr -Pt1 /tmp/hi
>
> and got:
>
> Printer: [EMAIL PROTECTED] 'Test Printer 1' (dest [EMAIL PROTECTED])
> Queue: 1 printable job
> Server: pid 2454 active
> Unspooler: pid 2455 active
> Rank Owner/ID Pr/Class Job Files Size Time
> active [EMAIL PROTECTED] A 452 /tmp/hi 3 13:44:30
> Printer 'nohost.private' - cannot open connection - bad or missing hostname
>
> If I change this to:
> t1:
> :lp=nohost.private%9100
>
> >
> > Obviously I'll correct my printcap, however I don't think the tight
> > loop to the DNS server was intended to work quite like that.
> >
> > I've tried updating my connect_interval to 5 seconds, but it did not
> > change the behavior.
> >
> > I'm running 3.8.26 on Redhat ES 2.1.
> >
> > Russell
> >
>
> In the next release I will add a bit more debugging for situations like this:
>
> h110: {290} % lpq -l
> Printer: [EMAIL PROTECTED] 'Test Printer 1'
> Queue: 1 printable job
> Server: pid 12124 active
> Unspooler: pid 12125 active
> Status: opening TCP/IP connection to nohost.private%9100 at 14:16:36.347
> Status: cannot open 'nohost.private%9100' - 'getconnection: cannot get address for
> 'nohost.private'', attempt 2, sleeping 20 at 14:16:36.349
> Rank Owner/ID Pr/Class Job Files Size Time
> active [EMAIL PROTECTED] A 122 /tmp/hi 3 14:16:26
> error [EMAIL PROTECTED] A 801 ERROR: too many errors
>
>
> Patrick
>
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
>
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body. For the impatient,
> to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
> with: | example:
> subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems, send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------