Thread View: news.software.nn
2 messages
2 total messages
Started by William Thompson
Wed, 03 Mar 1993 20:22
Expiring the database
Author: William Thompson
Date: Wed, 03 Mar 1993 20:22
Date: Wed, 03 Mar 1993 20:22
57 lines
2957 bytes
2957 bytes
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"
It does seem to me like the amount of space being taken up by nn's database
keeps growing over time.
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.
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.
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?
Bill Thompson
Re: Expiring the database
Author: Stew Ellis
Date: Sat, 13 Mar 1993 14:16
Date: Sat, 13 Mar 1993 14:16
81 lines
3952 bytes
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 /________/ / / / /
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads