πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90482

Re: INN 2.7.1 death spiral under high load?

#90482
From: Russ Allbery
Date: Thu, 06 Jul 2023 05:16
58 lines
3415 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Here follows a suggestion, with a recommendation of running makehistory
> for recovery.  Any other caveat or recovery actions to recommend?

>        icdsynccount
>            How many article writes between updating the active and history
>            files.  The default value is 10.

>            This is a trade-off between faster speed and more data loss if innd
>            crashes (or the system crashes, or loses power, etc.).  The higher
>            this parameter is, the less frequent syncs are done.  It somehow
>            represents a checkpointing frequency: it would be the maximum

"It is essentially the frequency of checkpoints: the maximum number of
articles that may be orphaned in case of a crash..."

>            number of articles stored on disk that might be orphaned in case of
>            a crash as they wouldn't have been recorded in the history file.
>            There would also be failures to store articles with already
>            assigned article numbers, but not recorded in the active
>            file.

"The missing updates to the active file would cause other problems later,
such as duplicate article numbers and corresponding errors when storing
new articles."

>            (In order not to encounter such errors, you should then
>            rebuild the history file and the overview with
>            makehistory(8).  The active file will be automatically be
>            renumbered after that operation.)

"(If innd has crashed, you can fix these errors by rebuilding the history
file and overview with makehistory(8)...."

> Proposition for INSTALL and newslog(5):

>     If you're using syslogd, edit /etc/syslog.conf on your system and add
>     lines that look like the following:

>         news.crit           <pathlog in inn.conf>/news.crit
>         news.err            <pathlog in inn.conf>/news.err
>         news.notice         -<pathlog in inn.conf>/news.notice

>     The minus sign as the first character for the path to news.notice
>     instructs syslogd not to synchronize the log file to disk every time
>     there is a new log entry (it otherwise degrades performance).  Depending
>     on the syslog daemon you are using, log synchronization may already be
>     disabled by default (that is for instance the case for rsyslogd or
>     syslog-ng).

Yup, looks good.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87bkgp7h6u.fsf@hope.eyrie.org>
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
References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <87bkgp7h6u.fsf@hope.eyrie.org>
Subject: Re: INN 2.7.1 death spiral under high load?
Date: Wed, 05 Jul 2023 22:16:41 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.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: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: hope.eyrie.org;
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:QfyrEXmedyTNOPfvUwTRNY8tzco=