🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Georg Hitsch Sat, 12 Dec 1998 00:00
inn-2.1 not expiring with CNFS
#33758
Author: Georg Hitsch
Date: Sat, 12 Dec 1998 00:00
18 lines
1066 bytes
Does Expiring with inn-2.1 + CNFS work?

If yes, which options are this at news.daily, 
or which programs can do the expire?

Georg

 ----------------------------
 ---      Georg Hitsch    ---
 ---------------------------- 
 --- mail: georg@atnet.at ---
 --- nic:   gh231-ripe    ---
 ----------------------------



Re: inn-2.1 not expiring with CNFS
#33767
Author: Mark Mentovai
Date: Sun, 13 Dec 1998 00:00
52 lines
2999 bytes
Georg Hitsch wrote:
>> > Renumbering active file.
>> > Expire messages:
>> > expire begin Sun Dec 13 19:02:15 CET 1998: (-v1 -c -e
>> > -z/usr/local/news/log/expire.rm -u/usr/local/news/log/expire.index.rm)
>> >     Can't reserve server
>>       ^^^^^^^^^^^^^^^^^^^^
>> >     Article lines processed        0
>> 
>> What does 'ctlinnd mode' say?  Is your server still reserved?
>> Make sure that when it's time for expire to run your server isn't (reserved).
>
># /usr/local/news/bin/ctlinnd mode
>Server running
>Allowing remote connections
>Parameters c 14 i 200 (35) l 1000000 o 242 t 300 H 2 T 60 X 0 normal
>specified
>Not reserved
>Readers separate enabled
>Perl filtering enabled
># 
>
>Its reserved, while expiring I think .....

It would have to be.  Are you throttling or pausing the server manually at
any point in the expiration process?  (Check to see that MESSAGE is not
defined in news.daily.)  If you're having trouble isolating the source of
your reservation, put something to the effect of:
  ctlinnd mode >> ${EXPLOG}
in your news.daily script right before it appends the 'expire begin
`date`:' to the log.  You'll be able to get a better idea of what's doing
the reservation.

If you really really really must have the server throttled or paused all
the time (I'm not recommending this unless you absolutely know what you're
doing), then make CERTAIN that the server won't become unthrottled or
unpaused when the expiration runs and add "-n" to expire's argument list
(the EXPIREFLAGS variable in news.daily).  This flag makes expire ignore
inn's state (its most common use is probably situations in which INN is
not running) by not checking its mode or sending control commands to the
server.  There's a reason that expire needs to be able to do this - so if
the news server gets a go command from something at any point in the
process, things can go awry.

-Mox

--
Mark Mentovai
mark@moxienet.com
http://www.moxienet.com/

Re: inn-2.1 not expiring with CNFS
#33772
Author: Georg Hitsch
Date: Sun, 13 Dec 1998 00:00
26 lines
1493 bytes
> > Does Expiring with inn-2.1 + CNFS work?
> 
> You mean article expiration?  It's not needed with CNFS, which is why
> CNFS is so extremely cool: it just rolls over by itself, automatically
> expiring the oldest articles.
I ment expiring articles from history

I have some problems with this, because the machine gets slooower and
slooower ...

- my history gets bigger and bigger, but the articles are not in the spool
anymore...
 
Georg

 ----------------------------
 ---      Georg Hitsch    ---
 ---------------------------- 
 --- mail: georg@atnet.at ---
 --- nic:   gh231-ripe    ---
 ----------------------------



Re: inn-2.1 not expiring with CNFS
#33774
Author: Mark Mentovai
Date: Sun, 13 Dec 1998 00:00
38 lines
2007 bytes
Georg Hitsch wrote:
>>>Does Expiring with inn-2.1 + CNFS work?
>> 
>>You mean article expiration?  It's not needed with CNFS, which is why
>>CNFS is so extremely cool: it just rolls over by itself, automatically
>>expiring the oldest articles.
>
>I ment expiring articles from history
>
>I have some problems with this, because the machine gets slooower and
>slooower ...
>
>- my history gets bigger and bigger, but the articles are not in the spool
>anymore...

Georg-

Set the /remember/ line in expire.ctl appropriately.  This is the only
line in the expire.ctl file that the expire program cares about when
you're using the storage API - its format is simple enough, it's just
/remember/:#, where # is the number of days you want to keep history
entries around for.  So, for example:

/remember/:5

Read the appropriate man pages (expire.ctl and expire) as well as the
comments in the expire.ctl file itself for more information.  Once your
daily news expiration runs, you will probably see a drop in the size of
your history database, accompanied by an increase in server performance.

-Mox

--
Mark Mentovai
mark@moxienet.com
http://www.moxienet.com/

Re: inn-2.1 not expiring with CNFS
#33776
Author: Georg Hitsch
Date: Sun, 13 Dec 1998 00:00
57 lines
2585 bytes
> Georg Hitsch wrote:
> 
> > I ment expiring articles from history
> > I have some problems with this, because the machine gets slooower and
> > slooower ...
> 
> Tune down /remember/: in expire.ctl.  If you have a Diablo machine feeding
> your readers box (heavily recommended if you have more than a very limited
> number of peers), it doesn't have to be so high.
I have already set /remember/:1

In news.daily-Report is:

Renumbering active file.
Expire messages:
expire begin Sun Dec 13 19:02:15 CET 1998: (-v1 -c -e
-z/usr/local/news/log/expire.rm -u/usr/local/news/log/expire.index.rm)
    Can't reserve server
    Article lines processed        0
    Articles retained              0
    Entries expired                0
    Files unlinked                 0
    Old entries dropped            0
    Old entries retained           0
expire end Sun Dec 13 19:02:16 CET 1998
        all done Sun Dec 13 19:02:16 CET 1998
        expireindex start Sun Dec 13 19:02:17 CET 1998
        expireindex end Sun Dec 13 19:02:18 CET 1998
---------
 
> > - my history gets bigger and bigger, but the articles are not in the spool
> > anymore...
> 
> Did you configure expire.ctl to even remotely match your storage.conf and
> how long articles approximately remain on disk?
No storage.conf - its inn-2.1

My expire.ctl:
/remember/:1
*:A:1:1:1


I have on all two inn-2.1 boxes i have the same problem :(

Georg 

 ----------------------------
 ---      Georg Hitsch    ---
 ---------------------------- 
 --- mail: georg@atnet.at ---
 --- nic:   gh231-ripe    ---
 ----------------------------



Re: inn-2.1 not expiring with CNFS
#33796
Author: Georg Hitsch
Date: Mon, 14 Dec 1998 00:00
41 lines
2072 bytes
On 13 Dec 1998, Niels Bakker - Non PGP encrypted email deleted automatically. wrote:

> Georg Hitsch wrote:
> 
> > Renumbering active file.
> > Expire messages:
> > expire begin Sun Dec 13 19:02:15 CET 1998: (-v1 -c -e
> > -z/usr/local/news/log/expire.rm -u/usr/local/news/log/expire.index.rm)
> >     Can't reserve server
>       ^^^^^^^^^^^^^^^^^^^^
> >     Article lines processed        0
> 
> What does 'ctlinnd mode' say?  Is your server still reserved?
> Make sure that when it's time for expire to run your server isn't (reserved).

# /usr/local/news/bin/ctlinnd mode
Server running
Allowing remote connections
Parameters c 14 i 200 (35) l 1000000 o 242 t 300 H 2 T 60 X 0 normal
specified
Not reserved
Readers separate enabled
Perl filtering enabled
# 

Its reserved, while expiring I think .....

Georg


 ----------------------------
 ---      Georg Hitsch    ---
 ---------------------------- 
 --- mail: georg@atnet.at ---
 --- nic:   gh231-ripe    ---
 ----------------------------



Re: inn-2.1 not expiring with CNFS
#33810
Author: Thomas Schnider
Date: Tue, 15 Dec 1998 00:00
39 lines
1994 bytes
I have had a very similar problem with timehash. If you trace through the
new.daily output can you find something like the following?

Dec 10 14:00:55 newnews expire[1845]: OVER cant open new overview file: Too many
open files

If so, you need to rise the file descriptors of your system.

Thomas
---

>
> In news.daily-Report is:
>
> Renumbering active file.
> Expire messages:
> expire begin Sun Dec 13 19:02:15 CET 1998: (-v1 -c -e
> -z/usr/local/news/log/expire.rm -u/usr/local/news/log/expire.index.rm)
>     Can't reserve server
>     Article lines processed        0
>     Articles retained              0
>     Entries expired                0
>     Files unlinked                 0
>     Old entries dropped            0
>     Old entries retained           0
> expire end Sun Dec 13 19:02:16 CET 1998
>         all done Sun Dec 13 19:02:16 CET 1998
>         expireindex start Sun Dec 13 19:02:17 CET 1998
>         expireindex end Sun Dec 13 19:02:18 CET 1998
> ---------

--
________________________________
 Thomas Schnider
   e-mail: tschnider@bluewin.ch



Re: inn-2.1 not expiring with CNFS
#33890
Author: Mike Brudenell
Date: Thu, 17 Dec 1998 00:00
105 lines
5525 bytes
Greetings -

In article <Pine.LNX.4.03.9812131931090.15264-100000@planet.ge.org>, Georg
Hitsch <georg@atnet.at> wrote:

>In news.daily-Report is:
>
>Renumbering active file.
>Expire messages:
>expire begin Sun Dec 13 19:02:15 CET 1998: (-v1 -c -e
>-z/usr/local/news/log/expire.rm -u/usr/local/news/log/expire.index.rm)
>    Can't reserve server
>    Article lines processed        0
>    Articles retained              0
>    Entries expired                0
>    Files unlinked                 0
>    Old entries dropped            0
>    Old entries retained           0
>expire end Sun Dec 13 19:02:16 CET 1998
>        all done Sun Dec 13 19:02:16 CET 1998
>        expireindex start Sun Dec 13 19:02:17 CET 1998
>        expireindex end Sun Dec 13 19:02:18 CET 1998

I saw this when our expire process fell over because it couldn't open
enough files concurrently.  If it's this then there is a message in one of
your logfiles to that effect (news.notice, I think).

You can either increase the maximum number of files your system allows the
username you are running your server under by default, or by Being Cunning
in your config/config.data file.  This contains the following
comment/definition:

  ##  If greater than -1, then use [gs]etrlimit to set that many descriptors.
  ##  If -1, then no [gs]etrlimit calls are done.
  #### =()<NOFILE_LIMIT           @<NOFILE_LIMIT>@>()=
  NOFILE_LIMIT            200

I've set it to 200 myself: normally it is "-1" as distrbuted.  Now
recompile, and the inndstart program (normally run as root to start the
server after binding to its (privileged) port of 119) will now set the
maximum number of open files for the server to your value rather than just
using your system's default value.

Note that the server and expire seem to like quite a lot of files -- this
is especially true if you have followed the advice in one of the read-me
files about setting up overview.ctl to have 27 different overview files
for the unified overview (one for newsgroups starting with each letter of
the alphabet + one for the remaining oddities).  All these, plus your CNFS
buffers, etc quickly add up!

One thing to note is that if your expire process DID crash out because of
not being able to open enough files it has almost certainly left your
server "reserved" (ie, "Can't reserve server" line in the text you
quote).  This means that even if you fix the maximum number of open files
problem expire still won't run until you have cleared the outstanding
reservation.  If memory serves you can do this with:
    ctlinnd reserve ''

*****

As an aside (not, I think, applicable in this case admittedly but I
mention it because it had me worried/stumped for a couple of weeks) ...
other useful questions to ask yourself are:

*  How big is your spool space (CNFS buffers)?
*  How much news do you get coming in a day?
*  How long has your news server been up and running with CNFS?

The answers to the first two should let you estimate how long articles
would remain around on your system (assuming no expiry at all) before
being overwritten in the cycled CNFS buffer.

Now, has your server been running at least that long?

The reason to ponder this is that (as I understand/experience it) the
expiry process by default does NOT take note of the expire.ctl file for
articles stored with CNFS.  Instead it tries to maximise the lifetime of
the articles by waiting until the CNFS buffer has rolled over and
scribbled over the old articles before removing considering them to be
expired.

This means that you see worryingly few articles being expired in the daily
reports until your server has been running long enough for your buffers to
fill and roll over.

This behaviour is implied by the cryptic two sentences describing the "-N"
option to expire (see the man page for expire).  This says that the
default ("-N" not specified to expire via news.daily command line options)
is for expire to ignore control.ctl when processing articles stored in a
storage method which has "self expire functionality".

Buried elsewhere, in the storage.ctl page's description of the cnfs
storage method, it mentions that this method has self expire
functionality.

Festive Cheers,

Mike Brudenell
-- 
The Computing Service, University of York, Heslington, York Yo10 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *

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