Thread View: news.software.nntp
4 messages
4 total messages
Started by Homer Wilson Smith
Thu, 22 Aug 2002 03:03
Multiple innfeeds running
Author: Homer Wilson Smith
Date: Thu, 22 Aug 2002 03:03
Date: Thu, 22 Aug 2002 03:03
36 lines
1955 bytes
1955 bytes
Linux 2.0.38, innd 1.72, innfeed 0.10.1.6
newsfeeds file appeneded below
I notice that
ctlinnd reload newsfeeds ""
causes a second process of innfeed to start. Shortly after, ps
shows two innfeeds running. Usually but not always the earlier one
dies off after a short while, maybe 20 seconds or so. But sometimes
it doesn't and then they both lock up and news stops going out.
So far this is NOT happening during the expire run.
The locking up is new behavior, this server has been running for
YEARS without flaw.
1.) Is a reload of newsfeeds done automatically periodically?
2.) Are there other ctlinnd commands or reasons why startinnfeed
would be started again while one was already running?
3.) Is the first one supposed to die off?
Thanks Homer
ME:*::
innfeed!:!*:Tc,Wnm*:/usr/local/news/startinnfeed
controlchan:!*,control,control.*,!control.cancel:Tc,Wnsm:/usr/local/news/bin/controlchan
#
cornell/newsstand.cit.cornell.edu\
:!*,ithaca.*,cornell.*/!local\
:Tm,<250000:innfeed!
rest of feeds snipped.
Re: Multiple innfeeds running
Author: Russ Allbery
Date: Thu, 22 Aug 2002 03:15
Date: Thu, 22 Aug 2002 03:15
52 lines
3064 bytes
3064 bytes
Homer Wilson Smith <homer@adore.lightlink.com> writes:
> Linux 2.0.38, innd 1.72, innfeed 0.10.1.6
> newsfeeds file appeneded below
> I notice that
> ctlinnd reload newsfeeds ""
> causes a second process of innfeed to start. Shortly after, ps
> shows two innfeeds running. Usually but not always the earlier one
> dies off after a short while, maybe 20 seconds or so. But sometimes
> it doesn't and then they both lock up and news stops going out.
> So far this is NOT happening during the expire run.
> The locking up is new behavior, this server has been running for
> YEARS without flaw.
It may be new for you, but I've encountered this periodically for as long
as I've been running innfeed. Although it doesn't actually lock up (at
least for me); it just starts dumping stuff into innfeed.dropped* files.
When you reload newsfeeds, INN closes the pipe to the existing innfeed
processes and then starts new ones. The old ones finish up what they're
doing and then exit. Sometimes the locking doesn't work properly, the new
innfeed processes can't acquire a lock, and they start writing lines to
dropped files.
When that happens, you have to restart all the innfeed processes so that
they flush their dropped files and then run procbatch -m on the dropped
files and then delete them.
It's annoying, but it's not yet annoyed me enough to try to figure out
what's going wrong with locking.
> 1.) Is a reload of newsfeeds done automatically periodically?
No, but newsfeeds is reloaded whenever a newsgroup is created or removed.
> 3.) Is the first one supposed to die off?
Yes. And it will, eventually; I've never seen it not eventually die. But
if it's feeding a particularly slow host, it tries to finish its queue,
which I've seen take up to an hour.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Multiple innfeeds running
Author: Mark Hittinger
Date: Thu, 22 Aug 2002 03:27
Date: Thu, 22 Aug 2002 03:27
41 lines
3160 bytes
3160 bytes
homer@adore.lightlink.com (Homer Wilson Smith) writes: > The locking up is new behavior, this server has been running for >YEARS without flaw. > 2.) Are there other ctlinnd commands or reasons why startinnfeed >would be started again while one was already running? > 3.) Is the first one supposed to die off? A ctlinnd newgroup command is the most likely culprit. The older ones are supposed to die off but if you are peering with a slow feed they tend to hang around waiting to handshake with the other side. cltinnd rmgroup and changegroup will also do this. If you have a lot of newgrouping to do (and it doesn't involve moderated groups) you can pause your server, do several newgroups, and then continue the server. This will give you one old innfeed instead of one for each newgroup. Unfortunately you might miss some articles while your server is paused if the other side(s) won't retry deferred articles. Other cruftyness that can bite you while doing a series of newgrouping is that the innfeeds will open up a lot of channels to your peers and exceed the maximum simultaneous feed limit for your site to your peers that have limits in place. Your peers that do not have limits in place can run out of resources on their end due to your newgrouping. For example if you've allowed 8 feeds to site X and do 10 newgroups that could potentially use up to 80 incoming feed descriptors on site X. On the other hand I've seen certain articles that caused innfeed to crash so that inn started another. Check your logs. There have been reports recently of certain nasty characters in message ID's corrupting history etc. Large backlog rewriting also causes innfeeds to hang around. Later Mark Hittinger bugs@pu.net
Re: Multiple innfeeds running
Author: Homer Wilson Smith
Date: Fri, 23 Aug 2002 15:51
Date: Fri, 23 Aug 2002 15:51
22 lines
1699 bytes
1699 bytes
Lucid answer Russ. Presently I am monitoring ps aux every minute
and if it sees two innfeeds it kills both, and that clears the way for
a new one to start.
Seems to work.
>as I've been running innfeed. Although it doesn't actually lock up (at
>least for me); it just starts dumping stuff into innfeed.dropped* files.
For me it starts dumping into innfeed! and bitches in errlog that
it can't get the lock file, already in use.
>> 1.) Is a reload of newsfeeds done automatically periodically?
>No, but newsfeeds is reloaded whenever a newsgroup is created or removed.
That would explain the random times that it happens.
I could correlate that with times on new group messages.
Thanks Russ, Homer
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads