🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Michael Famin Thu, 05 Aug 1999 00:00
expire and CNFS - inn-2.2
#38985
Author: Michael Famin
Date: Thu, 05 Aug 1999 00:00
51 lines
2310 bytes
Hi,

I'm setting up a new nntpserver (Solaris x86 2.7, inn-2.2) and have some
problems with articles expiring.
I have storageapi on, and is using CNFS, and when news.daily runs at
03:00 AM it expires all my articles.
I have a storage of 36Gb, and I receive about 2-3 Gb per day, so there
should be enough space for at least 1-2 weeks.

I have one CNFS area (called BIGAREA) consisting of two 18Gb raw
cycbuffs, where I store all articles.

I had in expire.ctl the following line:
*:A:1:21:never
Then all articles disapeared every night.

I changed it to:
1:1:21:never
because I'm using the CNFS, and have class 1 defined in storage.conf:
method cnfs {
       newsgroups: *
       class: 1
       size: 0,0
       options: BIGAREA
}

The I'm seeing more articles in my reader, but I cannot read then since
I get "Bad article number, maybe the article has expired" from the
server.

Also, when I look at a newsgroup that I've newer read before, I can see
that there is maybe 143 unread articles of a total of 143, but when I
open the group, I get maybe 20 unread articles, of a total of 143, and I
can only see 20 articles.

What I really want is for my cyclic buffers to fill, and when an article
gets overwritten, then it should expire (unless it has an expiretime in
it's header, then I honor that instead).

Anyone have any ideas about how to achive this, or any pointer to where
I can get more info on this (The documentation does'nt tell you a lot
about expire when you using CNFS)???


Rgds,
Micke Famin
WM-data
mifam@wmdata.com


Re: expire and CNFS - inn-2.2
#38966
Author: Michael Famin
Date: Thu, 05 Aug 1999 00:00
82 lines
3806 bytes

Russ Allbery wrote:

> Michael Famin <mifam@wmdata.com> writes:
>
> > I'm setting up a new nntpserver (Solaris x86 2.7, inn-2.2) and have some
> > problems with articles expiring.  I have storageapi on, and is using
> > CNFS, and when news.daily runs at 03:00 AM it expires all my articles.
>
> Er, that's not good.  news.daily should never expire anything except
> overview if you're using CNFS; CNFS has self-expire ability.  What flags
> are you using to news.daily?
>

From my crontab:
0 3 * * * /opt/news/bin/news.daily expireover lowmark

>
> > I had in expire.ctl the following line:
> > *:A:1:21:never
> > Then all articles disapeared every night.
>
> expire.ctl should be ignored completely for CNFS storage classes (apart
> from the /remember/ line), or at least that's the way I understood it.
> I'm not completely sure how it works with overview, though.
>

This is from the manpage for expire.ctl:
If you have turned on the storage manager with the ``storageapi'' in inn.conf
(5)
option and you don't the use -c' option with expire, or if overview data for
the
article is not created, then you will need to use a slightly different format
for
specifying expiration times for storage classes:
classnum:keep:default:purge

This is what I tried, but I see now that expire does run with the -c flag, so
I guess
I should use the normal syntax, like: *:A:1:21:never

>
> > The I'm seeing more articles in my reader, but I cannot read then since
> > I get "Bad article number, maybe the article has expired" from the
> > server.
>
> This sounds like the actual article is getting expired, though, not just
> the overview entry.
>

The thing with the "Bad article number" could come from me trying running
expire manually...

The thing is, that on the previos box, that was running Linux with inn-2.1, I
had the same config, and that worked OK. A difference between 2.1 and 2.2 is
that you have a storage.conf instead of a storage.ctl, and you can specify
some expire parameters in that file now as well.

I can not say that I'm too familiar with how inn works (this is just the
second server I configure) especially how the active and the overview works,
but I think that I might have some problems there, since my reader reports
that I have more articles in a group than I actually can see. I guess that the
figure telling me how many articles I have comes from the active file, and the
article headers are from the overview? But how is the active file updated
then, should it not be updated from the overview? Or should not the overview
have all the articles that the active file tells me that are stored?

The problem might be that the overindex removes my old articles from the
overview?

I'm getting more and more confused now, and I think that I have to start to
reread the documentation on how everything fits together...

Rgds,
Micke Famin
WM-data
mifam@wmdata.com



Re: expire and CNFS - inn-2.2
#38986
Author: Russ Allbery
Date: Thu, 05 Aug 1999 00:00
29 lines
1626 bytes
Michael Famin <mifam@wmdata.com> writes:

> I'm setting up a new nntpserver (Solaris x86 2.7, inn-2.2) and have some
> problems with articles expiring.  I have storageapi on, and is using
> CNFS, and when news.daily runs at 03:00 AM it expires all my articles.

Er, that's not good.  news.daily should never expire anything except
overview if you're using CNFS; CNFS has self-expire ability.  What flags
are you using to news.daily?

> I had in expire.ctl the following line:
> *:A:1:21:never
> Then all articles disapeared every night.

expire.ctl should be ignored completely for CNFS storage classes (apart
from the /remember/ line), or at least that's the way I understood it.
I'm not completely sure how it works with overview, though.

> The I'm seeing more articles in my reader, but I cannot read then since
> I get "Bad article number, maybe the article has expired" from the
> server.

This sounds like the actual article is getting expired, though, not just
the overview entry.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: expire and CNFS - inn-2.2
#39383
Author: Russ Allbery
Date: Tue, 24 Aug 1999 00:00
73 lines
3921 bytes
Not sure if this ever was resolved; I still had it marked to come back to
at some point.

Michael Famin <mifam@wmdata.com> writes:
> Russ Allbery wrote:

>> expire.ctl should be ignored completely for CNFS storage classes (apart
>> from the /remember/ line), or at least that's the way I understood it.
>> I'm not completely sure how it works with overview, though.

> This is from the manpage for expire.ctl:
> If you have turned on the storage manager with the ``storageapi'' in
> inn.conf (5) option and you don't the use -c' option with expire, or if
> overview data for the article is not created, then you will need to use
> a slightly different format for specifying expiration times for storage
> classes: classnum:keep:default:purge

Yes, but that's primarily for timehash or timecaf storage formats (or
tradspool under the storage API).  CNFS has self-expire functionality,
which means that expire isn't supposed to touch it.  It should remove from
the overview files all entries for articles that have expired, but that's
separate from the actual article expiry part, I thought.

> This is what I tried, but I see now that expire does run with the -c
> flag, so I guess I should use the normal syntax, like: *:A:1:21:never

With CNFS, it shouldn't make any difference what format you use.  It just
shouldn't be looking at this at all.

> The thing is, that on the previos box, that was running Linux with
> inn-2.1, I had the same config, and that worked OK. A difference between
> 2.1 and 2.2 is that you have a storage.conf instead of a storage.ctl,
> and you can specify some expire parameters in that file now as well.

In storage.conf?  Those aren't for article expiration; those are to store
articles on the basis of the Expires: header, which is something that you
probably don't want to do.

> I can not say that I'm too familiar with how inn works (this is just the
> second server I configure) especially how the active and the overview
> works, but I think that I might have some problems there, since my
> reader reports that I have more articles in a group than I actually can
> see.

This is relatively normal for CNFS.  The problem is that the overview
files are only rebuilt nightly, whereas the articles are expiring
constantly as the buffer fills and overwrites earlier articles.  You may
be able to get rid of some of the effects of this, at the cost of reader
performance, by setting nnrpdcheckart to true in inn.conf, but I'm not
sure if that catches all of it.

> I guess that the figure telling me how many articles I have comes from
> the active file, and the article headers are from the overview?

Right.

> But how is the active file updated then, should it not be updated from
> the overview?

The active file is updated internally by INN.  I'm not familiar enough
with that code to know if lowmark is updated automatically for CNFS, but
my guess is that it isn't, and that too is only done nightly.

> Or should not the overview have all the articles that the active file
> tells me that are stored?

My guess is that the overview and the active file are in sync, but neither
are in sync with the actual contents of the cycbuffs.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: expire and CNFS - inn-2.2
#39418
Author: bill davidsen
Date: Wed, 25 Aug 1999 00:00
30 lines
2207 bytes
In article <ylg118py1m.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:

| Yes, but that's primarily for timehash or timecaf storage formats (or
| tradspool under the storage API).  CNFS has self-expire functionality,
| which means that expire isn't supposed to touch it.  It should remove from
| the overview files all entries for articles that have expired, but that's
| separate from the actual article expiry part, I thought.

There is room for improvement here. CNFS has solved part of the expire
problem, by limiting the storage used, but it has unsolved another part,
which is to make articles go away. In the rush to solve the most common
problem, running out of space, the desirability of not having extremely
old articles available to the reader has gone by the wayside. There are
reasons to limit the age or total number of user visible articles,
regardless of what is in the spool.

I hope to look at that when 2.3 is out and fairly stable, unless someone
beats me to it.

If you don't care about beating up your machine, you can fake it for a
few select groups with a trivial perl script.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: expire and CNFS - inn-2.2
#39424
Author: Russ Allbery
Date: Wed, 25 Aug 1999 00:00
26 lines
1826 bytes
bill davidsen <davidsen@tmr.com> writes:

> There is room for improvement here. CNFS has solved part of the expire
> problem, by limiting the storage used, but it has unsolved another part,
> which is to make articles go away. In the rush to solve the most common
> problem, running out of space, the desirability of not having extremely
> old articles available to the reader has gone by the wayside. There are
> reasons to limit the age or total number of user visible articles,
> regardless of what is in the spool.

> I hope to look at that when 2.3 is out and fairly stable, unless someone
> beats me to it.

It's on my list too, because I want it for transit.  Transit runs faster
with a smaller history file but with lots of disks for cycbuffs; problem
is that if I use lots of disks, I have lots of space, and it saves
articles for a long time.  I could use lots of small partitions and not
use the rest of the disk, but it's a convenient excuse to get me to go
work on the larger problem.  :)

If I can find any time, that is.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: expire and CNFS - inn-2.2
#39432
Author: paul
Date: Wed, 25 Aug 1999 00:00
119 lines
5152 bytes
In article <ylg118py1m.fsf@windlord.stanford.edu>,
  Russ Allbery <rra@stanford.edu> wrote:
> Not sure if this ever was resolved; I still had it marked to come back
to
> at some point.
>
> Michael Famin <mifam@wmdata.com> writes:
> > Russ Allbery wrote:
>
> >> expire.ctl should be ignored completely for CNFS storage classes
(apart
> >> from the /remember/ line), or at least that's the way I understood
it.
> >> I'm not completely sure how it works with overview, though.
>
> > This is from the manpage for expire.ctl:
> > If you have turned on the storage manager with the ``storageapi'' in
> > inn.conf (5) option and you don't the use -c' option with expire, or
if
> > overview data for the article is not created, then you will need to
use
> > a slightly different format for specifying expiration times for
storage
> > classes: classnum:keep:default:purge
>
> Yes, but that's primarily for timehash or timecaf storage formats (or
> tradspool under the storage API).  CNFS has self-expire functionality,
> which means that expire isn't supposed to touch it.  It should remove
from
> the overview files all entries for articles that have expired, but
that's
> separate from the actual article expiry part, I thought.
>
> > This is what I tried, but I see now that expire does run with the -c
> > flag, so I guess I should use the normal syntax, like:
*:A:1:21:never
>
> With CNFS, it shouldn't make any difference what format you use.  It
just
> shouldn't be looking at this at all.
>
> > The thing is, that on the previos box, that was running Linux with
> > inn-2.1, I had the same config, and that worked OK. A difference
between
> > 2.1 and 2.2 is that you have a storage.conf instead of a
storage.ctl,
> > and you can specify some expire parameters in that file now as well.
>
> In storage.conf?  Those aren't for article expiration; those are to
store
> articles on the basis of the Expires: header, which is something that
you
> probably don't want to do.
>
> > I can not say that I'm too familiar with how inn works (this is just
the
> > second server I configure) especially how the active and the
overview
> > works, but I think that I might have some problems there, since my
> > reader reports that I have more articles in a group than I actually
can
> > see.
>
> This is relatively normal for CNFS.  The problem is that the overview
> files are only rebuilt nightly, whereas the articles are expiring
> constantly as the buffer fills and overwrites earlier articles.  You
may
> be able to get rid of some of the effects of this, at the cost of
reader
> performance, by setting nnrpdcheckart to true in inn.conf, but I'm not
> sure if that catches all of it.
>
> > I guess that the figure telling me how many articles I have comes
from
> > the active file, and the article headers are from the overview?
>
> Right.
>
> > But how is the active file updated then, should it not be updated
from
> > the overview?
>
> The active file is updated internally by INN.  I'm not familiar enough
> with that code to know if lowmark is updated automatically for CNFS,
but
> my guess is that it isn't, and that too is only done nightly.
>
> > Or should not the overview have all the articles that the active
file
> > tells me that are stored?
>
> My guess is that the overview and the active file are in sync, but
neither
> are in sync with the actual contents of the cycbuffs.
>
> --
> Russ Allbery (rra@stanford.edu)
<URL:http://www.eyrie.org/~eagle/>
>

Me too i have that problem.
running news.daily expireover lowmark seems to work but not that great
My INN freeked out a couple days ago cuz i ran out of space on the
partition where overview was. It was badly out of sync and got too huge.
Had to reinstall it cuz it got  too messy.

Now my question is: is there a clean way to do it so the overview
and the content of the buffers are in sync?

How does expireover or expireindex know about what headers are to be
removed and what headers are to be kept since it dont seem to be looking
in expire.ctl
Does it know about the content of cycbuffers ?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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