🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41388

Re: dexpireover and locked files

#41388
From: Nickolai Zeldovich
Date: Tue, 09 Nov 1999 00:00
32 lines
2207 bytes
In article <VikV3.3334$rK2.226378@ptah.visi.com>, Mike Horwath wrote:
>I've been seeing the same thing, and don't have an idea yet.

What I did temporarily is to run dexpireover at the lowest-usage time
of the day (which is probably a good idea regardless), and modify the
dreaderd code to close all overview cache file handles every 30 secs.
Performance doesn't get affected much by this, and this seems like it
would work at least for some lower-load servers. It doesn't get around
the overview files being open by the feeder forks, but hopefully those
collisions will be semi-random and the overview file will eventually
get resized.

Another thing I noticed is that dhistory file trimming prevents the
reader from getting any articles. I think it would be useful to add
some sort of a 'read-only' mode where incoming feeds will be dropped
as they are now, but connections from the reader will stay active and
will be able to use dhistory to retrieve articles in read-only mode.
(Any article postings would get an error message, most likely, or the
reader could be configured to use another machine as a backup outgoing
host). When didump/diload finishes, the master process could kill all
reader connections, re-read the new history file, and un-pause. The
20 minutes to reload a 500MB dhistory just seems like a rather long
outage that could be avoided.

The above (read-only dhistory mode) is just an idea; I don't have it
implemented (yet). Anyone happen to have this already done in some way
or another?

-- Nickolai Zeldovich.


Technical Details
Message-ID: <slrn82fg4c.1ma.kolya@SEVEN-UP.MIT.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <slrn82bjqi.s4q.kolya@hodge-podge.mit.edu> <VikV3.3334$rK2.226378@ptah.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn82fg4c.1ma.kolya@SEVEN-UP.MIT.EDU>
Subject: Re: dexpireover and locked files
Date: Tue, 09 Nov 1999 00:00:00 +0000
From: kolya@MIT.EDU (Nickolai Zeldovich)
References: <slrn82bjqi.s4q.kolya@hodge-podge.mit.edu> <VikV3.3334$rK2.226378@ptah.visi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 546277604
Organization: Massachvsetts Institvte of Technology
Reply-To: kolya@MIT.EDU
Newsgroups: news.software.nntp