🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90476

Re: INN 2.7.1 death spiral under high load?

#90476
From: Julien ÉLIE
Date: Tue, 04 Jul 2023 20:31
68 lines
4220 bytes
Hi all,

This thread is pretty interesting.  A few improvements to do in our documentation,
besides a fix for the maximum number of file descriptors to use.


> I'll improve the documentation of icdsynccount with some of your 
> explanations.

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
            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.  (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.)



> There's also an undocumented use of icdsynccount for buffindexed: the 
> head of the buffer is flushed every 10*icdsynccount+1 articles.
> I can mention it in the documentation.

I'll add a dedicated buffindexedheadsync parameter for that.



>> Make sure that you've disabled sync for all of your news logs.  I think
>> that's already covered in INSTALL but a lot of people forget about it.
> 
> I'll add a note too, following one of your next articles in this thread.

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).

-- 
Julien ÉLIE

« – Obélix, mon garçon, quand tu viens chez moi, j'aimerais que tu
     laisses ton menhir à la porte !
   – Mais chef, le menhir se porte aussi bien à l'intérieur qu'à
     l'extérieur !
   – Sauf quand la porte est trop petite pour le faire entrer
     imbécile !!! » (Astérix)
Technical Details
Message-ID: <u81vjh$2qbkh$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
References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7oljn$1chb$1@nnrp.usenet.blueworldhosting.com> <u7ollu$1jmj$1@nnrp.usenet.blueworldhosting.com> <u7phln$2is6p$1@news.trigofacile.com> <u7q8ac$1icq$1@nnrp.usenet.blueworldhosting.com> <87h6qnb6jl.fsf@hope.eyrie.org> <u7usho$2nolg$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <u81vjh$2qbkh$1@news.trigofacile.com>
Subject: Re: INN 2.7.1 death spiral under high load?
Date: Tue, 4 Jul 2023 22:31:45 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7oljn$1chb$1@nnrp.usenet.blueworldhosting.com> <u7ollu$1jmj$1@nnrp.usenet.blueworldhosting.com> <u7phln$2is6p$1@news.trigofacile.com> <u7q8ac$1icq$1@nnrp.usenet.blueworldhosting.com> <87h6qnb6jl.fsf@hope.eyrie.org> <u7usho$2nolg$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: Tue, 4 Jul 2023 20:31:45 -0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
 Gecko/20100101 Thunderbird/102.12.0
Cancel-Lock: sha1:ki2EuhULZDxKYVjpaWll4tsZqTo= sha256:Ve1np1jEx5x6bhDwAQLz/TZVuneS0uA/+MLAso+VPkM=
In-Reply-To: <u7usho$2nolg$1@news.trigofacile.com>