🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #43340

Re: Diablo problems and questions

#43340
From: Nickolai Zeldovich
Date: Fri, 14 Jan 2000 00:00
83 lines
4093 bytes
In article <BBsf4.4521$v31.417082@ptah.visi.com>, Mike Horwath wrote:
>Here is what I want:
>	visi.*,mn.* groups to never expire

It is not possible to keep groups around forever using a Diablo spool,
that I've found. The best you can do is to set a really high maxspool
value in diablo.config and set the percentage expiration value to 100
for these groups, scaling everything else down appropriately.

>	alt.* < 32K in size to be about 10-14 days
>	alt.* > 32K in size to be about 5 days
>	big 8 to be about 25-30 days
>	everything else to be 10-14 days

The semi-algorithm I could suggest to deal with the Diablo reader
expire process is roughly:

  It's probably the case that alt.* articles 32K and over will be
  the majority of your disk space. Take the total disk space you
  have in your spool, divide it by about the traffic you expect
  per day, and that'll be approx. the number of days you can keep
  the alt-over-32K articles. Assign some percentage to it, say 10.

  Now you can go from there, and if you want, say, comp.* articles
  to have expiration times twice as long, use twice the percentage
  from above. So on for all the other categories which you want to
  expire differently.

  Now you can scale all the values up linearly so that one of them
  hits 100% (something should always be 100).

Hopefully that was sort-of clear and not too detailed.

Note that it may be to your advantage to not have different expire
times based on size. This causes a much larger article number span
and thus higher disk space usage in the "overview".

>                                        Since you can't edit the
>	overview files in place because other processes have it open,
>	the only way to actually resize the overviews is to stop the
>	server, run dexpireover, start the server, repeat every couple
>	hours for a couple days.

You may want to take a look at diablo-1.27 which includes code which
periodically flushes the overview open file cache. This tries to make
sure that you don't have the same group failing to resize over and
over. It will eventually stabilize at some reasonable values..

In my case, running dexpireover -a -o takes somewhere between 5 and
8 minutes on the entire spool, so I run it every 4 hours.

>	I have 2 machines synced together by having a third diablo
>	server running master and issuing the numbers.  The thing is,
>	the 2 servers get out of sync with each other because of the
>	problem listed above.

This sounds like a bug if it's really happening; the problem with
overview not being resized shouldn't cause this. Did you run dreaderd
with the -x option to indicate the name of the Xref master?

>Anyone recode the authentication model for Diablo yet?

Not me, at least, although I might be interested in helping making
it happen..

>	readerdns 24

This seems a bit extreme to me; I have 5 resolver forks and most of
the times I look at dreaderd.status, 0 are in use. Then again, maybe
in your case DNS resolution for an average client takes longer (as
you mention later, your servers allow anyone to read from them.)

>Anyone have a reason to change that around some?  Maybe more 'forks'
>and less 'threads'?

FWIW, I use 25 reader forks and 40 threads, and it works fine. It's
not entirely clear to me at the moment what the optimal values are
and what affects them, though.


-- Nickolai Zeldovich.

Technical Details
Message-ID: <slrn87t451.d3.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: <BBsf4.4521$v31.417082@ptah.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn87t451.d3.kolya@SEVEN-UP.MIT.EDU>
Subject: Re: Diablo problems and questions
Date: Fri, 14 Jan 2000 00:00:00 +0000
From: kolya@mit.edu (Nickolai Zeldovich)
References: <BBsf4.4521$v31.417082@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: 572398076
X-Trace: dreaderd 947818657 22473 18.239.0.70
Organization: Massachvsetts Institvte of Technology
User-Agent: slrn/0.9.5.7 (UNIX)
Newsgroups: news.software.nntp