Thread View: news.software.nntp
2 messages
2 total messages
Started by kremžská HOŘČICE
Wed, 04 Sep 1996 00:00
Question regarding channel feeds
Author: kremžská HOŘČICE
Date: Wed, 04 Sep 1996 00:00
Date: Wed, 04 Sep 1996 00:00
61 lines
3925 bytes
3925 bytes
I am experimenting with the Cyrus IMAP server (from CMU) on the news
spool. The traditional way to do this has been to write batch files with
the overview data, which are then processed at regular intervals by a
program. However, being impatient, I've tried feeding this information
directly to the processing program, as one does with overchan. The result
would be that the IMAP database reflects the news spool in real time, and
an IMAP newsreader is notified of incoming news articles almost immediately.
The man page for the newsfeeds file describes the channel feeds, and
it appears that what I am doing should work (and for the most part, it
seems to, updating the IMAP database in real time). I see notices in the
news.notice file that I wonder about, both for OVERVIEW! and the channel
feeds I've set up for Cyrus.
I see periodic messages, for both channel feeds, such as...
Sep 4 05:15:05 3H: innd: OVERVIEW!:19:proc:27182 cant write
Sep 4 05:15:05 3H: last message repeated 4 times
Sep 4 05:15:05 3H: innd: OVERVIEW!:19:proc:27182 sleeping
and then,
Sep 4 05:20:05 4H: innd: OVERVIEW!:19:proc:27182 wakeup
If I understand right, at these times, innd is either buffering this
data, or spooling it. (In the case of the IMAP data, unlike that used by
overchan, it appears to be safe to process the article data out of order,
since it is not merely appended as happens with overchan.) If it's being
apooled -- or if somehow innd cannot start the process, the file which is
written can be processed at regular intervals in the conventional manner.
I also see occasional messages of
Sep 3 18:23:20 3H: innd: DEBUG ERROR SITEspool trashed:20 OVERVIEW!:7
According to the FAQ, this appears to be harmless. (Probably the
reason I see problems with the overview data as well as the data I am
trying to write to the IMAP server is that they are both on the same
partition, and it is clear that they need to be separate. This would most
likely clear up most if not all of these notices, as would further
cleanup of the IMAP database which I know I need to do.)
So, if I may ask, are these messages truly harmless, and no loss of
data is resulting? And anything that isn't working will be written to the
out.going spool file? (I should also test for this file before I run the
program to process it, since that program flushes the channel feed, which
would not be needed otherwise, and could even make things worse since the
man page implies that at time of flush, the buffered data is written to
this file rather than being passed to the next process to be spawned,
necessitating yet another flush to clear that spooled data, and so on.)
Thanks for confirming or clarifying this, or offering any advice on
setting the B and S flags to write the out.going spool file as
infrequently as possible -- if I understand, the default is that innd will
internally buffer as much data as needed while the process is busy
grinding away. My feeling is also that an incoming feed from innfeed will
be gentler on these processes than regular bursts of batches from innxmit.
Barry Bouwsma <barryb@tuke.sk>
hacking the improbable for Radio Praha
Re: Question regarding channel feeds
Author: Per Hedeland
Date: Fri, 06 Sep 1996 00:00
Date: Fri, 06 Sep 1996 00:00
34 lines
2191 bytes
2191 bytes
In article <Pine.SGI.3.95.960904092318.1910K-100000@cimrman.radio.cz> =?ISO-8859-2?Q?krem=BEsk=E1_HO=D8=C8ICE?= <core@Radio.CZ> writes: > So, if I may ask, are these messages truly harmless, and no loss of >data is resulting? And anything that isn't working will be written to the >out.going spool file? More or less... However I get the impression that you believe that flushing the feed will get innd to read the file back in and send it to the channel program - this is not the case, what's been written to the file stays there until you do something intelligent with it outside of innd. Also: - as innd writes to the channel pipe until it's full (can't do anything else of course), when it decides to spool to the file you will just about always get a partial line in the pipe with the remainder in the file - chances are that neither part can be processed correctly, i.e. in effect data will be lost - if the channel program, for whatever reason, exits without having seen EOF on the pipe, the data in the pipe is (of course) lost. Channel feeds seems like a nice concept, but having them work *really* reliably is apparently very difficult - at the very least the channel program must drain the pipe immediately when there is input available, and never crash of course - and then you still have the (hopefully rare:-) problem of what happens at a system crash. Of course when there is redundancy (e.g. overview or multiple feeds) some amount of unreliability can be acceptable... --Per Hedeland per@erix.ericsson.se
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