🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #3867

Re: Expiring the database

#3867
From: Stew Ellis
Date: Sat, 13 Mar 1993 14:16
81 lines
3952 bytes
thompson@serts (William Thompson) writes:

>I'm confused about what "expire" means in regard to nn.  I've been running nn
>on a Sun Sparcstation 1 (SunOS 4.1.2).  It uses an external nntp news server.
>I start up nnmaster with the commands

>	rm -f /usr/local/lib/nn/MPID
>	su news -c "/usr/local/lib/nn/nnmaster -l -r 60 -C"

I have the same setup.  I run nnmaster with just the -r switch.  -C sounds
particularly expensive.  I only ran it the first time I set up nn.

>It does seem to me like the amount of space being taken up by nn's database
>keeps growing over time.

My indexes grow by about 20M a week.

>I have trouble sometimes figuring out from the documentation what parts of nn
>are meant to be used when one is a server and one is just a client like I am.
>For instance, in the file doc/INSTALLATION it says the following about
>expiring articles:

>			STEP 7.2: SETUP EXPIRE ON THE DATABASE
>			--------------------------------------
>	
>	To run expire on the database, you simply have to execute the
>	following command (with sufficient privileges):
>	
>		BIN_DIRECTORY/nnadmin =EYW
>	
>	You should arrange for expire to be run on nn's database whenever you
>	have run expire on the news directories.
>	
>	Supposing you run the expire from your crontab, you may simply add the
>	above command to the crontab at an appropriate time when you are
>	certain that news' expire is completed.
>	
>	If you run nnmaster from cron rather than in daemon mode, you can use
>	the following command to run expire on the database.
>	
>		nnmaster -F -k ""
>	
>	This form allows you to run expire on selected groups rather than on
>	all groups as initiated by the above nnadmin command.  See the
>	nnmaster manual for further details.

But you are running in daemon mode.  I expire my database by typing the above
command at the shell prompt.

>Since it talks about doing nn's expiration after doing news's expiration, it
>sounds like this is something you do when the news articles are actually stored
>on the local machine, rather than getting them from a remote server as I do.

Since you are reading across an nntp link, you have no way of knowing when
the new articles are delivered.

>Also, the man page for nnmaster says the following about the -r switch:

>     -r [ min ]
>          Daemon mode.  The nnmaster will put itself in the back-
>          ground  (unless  -f is also specified), and will checks
>          for arrival of new articles and expired articles  every
>          min  minutes (and update the database accordingly).  If
>          min is omitted,  the  default  is  to  check  every  10
>          minutes.

>This makes it sound like nnmaster automatically expires articles, without
>running anything in crontab.  Which is it?

It is confusing.  I did not run expire for about 3 months when I first got
started.  I lost about 200M of disk space before I expired.  I now do it by
hand every 2-4 weeks.

>Bill Thompson


--
                                                          ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
Technical Details
Message-ID: <ellis.732032173@nova>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!caen!umeecs!nova!ellis
References: <thompson.731190164@serts>

Show Full Headers
Complete Article Headers
Message-ID: <ellis.732032173@nova>
Subject: Re: Expiring the database
Date: Sat, 13 Mar 1993 14:16:13 GMT
From: ellis@nova.gmi.edu (Stew Ellis)
References: <thompson.731190164@serts>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!caen!umeecs!nova!ellis
Newsgroups: news.software.nn
Sender: news@zip.eecs.umich.edu (Mr. News)
Organization: GMI Engineering&Management Institute, Flint, MI
Distribution: usa
Lines: 81