Article View: news.software.nntp
Article #90499Re: Using innfeed to send a batch instead of innxmit?
From: Julien ÉLIE
Date: Sun, 09 Jul 2023 07:45
Date: Sun, 09 Jul 2023 07:45
95 lines
5548 bytes
5548 bytes
Fixing my previous message:
>> I do have a question though, I see some entries are being made to
>> /usr/local/news/spool/innfeed/batch.output. Innfeed's manpage makes a
>> short
>> reference to this file in that it is where entries go that could not be
>> processed for some reason, but it does not explain what innfeed does
>> with this
>> .output file. Does it ever get reprocessed automatically?
>
> Yes, they are reprocessed automatically. This is parameterized with the
> backlog* keys in innfeed.conf.
> Many thanks for this question! I agree the innfeed(8) manual page should
> say they are processed. We are under the impression they are not, with
> the current wording. I'll add a sentence about that.
>
> FYI, every backlog-rotate-period seconds, something like that happens:
>
> Â if [ ! -f PEER.input ]; then
> Â Â Â if [ -f PEER ]; then
> Â Â Â Â Â mv PEER PEER.input
> Â Â Â elif [ -f PEER.output ]; then
> Â Â Â Â Â mv PEER.output PEER
> Â Â Â fi
> Â fi
The second move should have been read:
mv PEER.output PEER.input
I've proof-read what innfeed does and updated the documentation.
Is it now clear enough or should something still be clarified?
[innfeed]
The configuration file is described in innfeed.conf(5). The -c option
can be used to specify a different file, and -b to specify a different
backlog directory. The backlog-* keys in the configuration file
parameterize the behaviour of backlogging. For each peer (say, "foo"),
innfeed manages up to 4 files in the backlog directory:
• A foo.lock file, which prevents other instances of innfeed from
interfering with this one.
• A foo.input file which has old article information innfeed is reading
for re-processing.
• A foo.output file where innfeed is writing information on articles
that could not be processed (normally due to a slow or blocked peer).
Every backlog-rotate-period seconds, innfeed checks whether it is not
empty, and, if no foo file exists and foo.input is empty, will then
rename foo.output to foo.input and start reading from it.
• A foo file that is never created by innfeed, but if innfeed notices
it when checking every backlog-newfile-period seconds, it will rename
it to foo.input at the next opportunity (every backlog-rotate-period
seconds if foo.input is empty) and will start reading from it. This
lets you create a batch file and put it in a place where innfeed will
find it.
[innfeed.conf]
backlog-highwater
This key requires a positive integer value and defaults to 5. It
specifies how many articles should be kept on the backlog file
queue before starting to write new entries to disk.
backlog-ckpt-period
This key requires a positive integer value and defaults to 30. It
specifies how many seconds elapse between checkpoints and rewrites
of the input backlog file. Too small a number will mean frequent
disk accesses; too large a number will mean after a crash, innfeed
will re-offer more already-processed articles than necessary.
backlog-newfile-period
This key requires a positive integer value and defaults to 600. It
specifies how many seconds elapse before each check for externally
generated backlog files that are to be picked up and processed.
backlog-rotate-period
This key requires a positive integer value and defaults to 60. It
specifies how many seconds elapse before innfeed moves an
externally generated backlog file to the input backlog file (if
backlog-newfile-period seconds have elapsed) or in the absence of
such a file, moves the output backlog file to the input backlog
file. No moves occur if the input backlog file is not empty.
--
Julien ÉLIE
« Vous savez, les idées, elles sont dans l'air. Il suffit que quelqu'un
vous en parle de trop près, pour que vous les attrapiez ! » (Raymond
Devos)
Technical Details
Message-ID:
<u8doi6$33npt$2@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<u3n96o$1uvi$1@nnrp.usenet.blueworldhosting.com> <u40ume$23la$1@nnrp.usenet.blueworldhosting.com> <u41h7t$2lgm$1@nnrp.usenet.blueworldhosting.com> <u434tr$sl82$1@news.trigofacile.com> <u45r3c$2t82$1@nnrp.usenet.blueworldhosting.com> <u45vql$ultk$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <u8doi6$33npt$2@news.trigofacile.com> Subject: Re: Using innfeed to send a batch instead of innxmit? Date: Sun, 9 Jul 2023 09:45:10 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <u3n96o$1uvi$1@nnrp.usenet.blueworldhosting.com> <u40ume$23la$1@nnrp.usenet.blueworldhosting.com> <u41h7t$2lgm$1@nnrp.usenet.blueworldhosting.com> <u434tr$sl82$1@news.trigofacile.com> <u45r3c$2t82$1@nnrp.usenet.blueworldhosting.com> <u45vql$ultk$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: Groupes francophones par TrigoFACILE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 9 Jul 2023 07:45:10 -0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cancel-Lock: sha1:V/x80ijDkUmDXDKsnHVjyAlQiLg= sha256:WfTMBFpkjlXh93G1vZYa2z4vmQrpciAsL8TD+Q24MTY= In-Reply-To: <u45vql$ultk$1@news.trigofacile.com>