🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Mike Lischke Fri, 13 Jan 2006 08:23
Switching CNFS from interleaved to sequential
#73061
Author: Mike Lischke
Date: Fri, 13 Jan 2006 08:23
11 lines
1808 bytes
Hi all,

Currently my INN runs with serveral CNFS buffer groups, each consisting of
3 buffers, which are accessed in interleaved manner. I now would like to
change that to sequential access. Is it advisable to change the setting and
just restart INN? Any trouble I will see then? I surely would like to keep
my current spool.

Mike
-- 
www.soft-gems.net
Re: Switching CNFS from interleaved to sequential
#73062
Author: Jeffrey M. Vinocur
Date: Fri, 13 Jan 2006 12:36
30 lines
2325 bytes
In article <xn0eh6i833m0ve002@news2.open-news-network.org>,
Mike Lischke <newsgroups@soft-gems.net> wrote:
>
>Currently my INN runs with serveral CNFS buffer groups, each consisting of
>3 buffers, which are accessed in interleaved manner. I now would like to
>change that to sequential access. Is it advisable to change the setting and
>just restart INN? Any trouble I will see then? I surely would like to keep
>my current spool.

I've never done this, but the best you can hope for if you just
change it is for the existing articles to last until they happen
to be overwritten -- but that won't happen in the best order.  If
you think about how the articles are currently distributed, you
can see how the this will have to happen (it would require a
complete reorganization of all the articles into chronological
order instead of interleved order, and INN doesn't know how to do
that).

Have you currently filled the cycbuffs?  Or just a portion of
them?

If you have additional space available, by far the easiest way to
accomplish your goal is to allocate new cycbuffs, start using
those until they're full, and then delete the old ones.  We can
talk about exactly how to do that if you're interested.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Switching CNFS from interleaved to sequential
#73065
Author: Mike Lischke
Date: Fri, 13 Jan 2006 16:02
23 lines
2396 bytes
Jeffrey M. Vinocur wrote

>Have you currently filled the cycbuffs?  Or just a portion of
>them?

All are used:
http://www.soft-gems.net/news-stats/news-notice.2006.01.12-03.00.03.html#cnf
sstat

>If you have additional space available, by far the easiest way to
>accomplish your goal is to allocate new cycbuffs, start using
>those until they're full, and then delete the old ones.  We can
>talk about exactly how to do that if you're interested.

Hmm, but the storage keyword would have to be attached to the meta buffer
line, right? So how would that preserve the old spool? I have lost my
entire spool last December, because it was stored as tradspool (and hit the
magic 10 million inodes limit), and now I've climbed up to 7 mill. articles
again. So you can image I would hate to lose that again.

Mike
-- 
www.soft-gems.net
Re: Switching CNFS from interleaved to sequential
#73071
Author: Jeffrey M. Vinocur
Date: Sat, 14 Jan 2006 01:05
67 lines
2990 bytes
In article <xn0eh6uc6jztnd000@news2.open-news-network.org>,
Mike Lischke <newsgroups@soft-gems.net> wrote:
>Jeffrey M. Vinocur wrote
>
>>If you have additional space available, by far the easiest way to
>>accomplish your goal is to allocate new cycbuffs, start using
>>those until they're full, and then delete the old ones.  We can
>>talk about exactly how to do that if you're interested.
>
>Hmm, but the storage keyword would have to be attached to the meta buffer
>line, right? So how would that preserve the old spool? I have lost my
>entire spool last December, because it was stored as tradspool (and hit the
>magic 10 million inodes limit), and now I've climbed up to 7 mill. articles
>again. So you can image I would hate to lose that again.

Okay, so right now you have something like this (simplifying to
jsut one hierarchy):

    cycbuff.conf:

        metacycbuff:ALT:ALT1,ALT2,ALT3


    storage.conf:

        method cnfs {
          newsgroups: alt.*
          class: 1
          options: ALT
        }


If you make some new cycbuffs and then change this to:

    cycbuff.conf (just the metacycbuff part):

        metacycbuff:ALT:ALT1,ALT2,ALT3

        metacycbuff:NEWALT:NEWALT1,NEWALT2,NEWALT3:SEQUENTIAL


    storage.conf:

        method cnfs {
          newsgroups: alt.*
          class: 2
          options: NEWALT
        }

        method cnfs {
          newsgroups: !*
          class: 1
          options: ALT
        }

making sure to leave the block with the original "class" number
referencing the existing buffers, and assigning a new storage
class for the block referencing the new buffers, then the old
articles will still be accessible, while new articles are written
only to the new buffers.

Does that make sense?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Switching CNFS from interleaved to sequential
#73073
Author: Mike Lischke
Date: Sat, 14 Jan 2006 13:19
19 lines
2104 bytes
Jeffrey M. Vinocur wrote

>        method cnfs {
>          newsgroups: !*
>          class: 1
>          options: ALT
>        }
>
[snip]
>Does that make sense?

Yes, thank you Jeffrey. I only wonder how INN knows that there are articles
in the old buffers if I specify !* for the newsgroups setting. And of
course the question remains, when can I throw away the old buffer. However
the normal cycle time should be a good indiciator.

Mike
-- 
www.soft-gems.net
Re: Switching CNFS from interleaved to sequential
#73074
Author: Jeffrey M. Vinocur
Date: Sat, 14 Jan 2006 13:59
29 lines
2320 bytes
In article <xn0eh84livets000@news2.open-news-network.org>,
Mike Lischke <newsgroups@soft-gems.net> wrote:
>
>Yes, thank you Jeffrey. I only wonder how INN knows that there are articles
>in the old buffers if I specify !* for the newsgroups setting.

INN keeps track of each article it receives in the history file,
and one of the key pieces of information is the storage class.
So when a client tries to read an article, INN looks it up in the
history file, then goes to whatever sort of storage is specified
by the block in storage.conf with the corresponding class: line.
The newsgroups: line of storage.conf does not come into play at
all.


>[...] when can I throw away the old buffer. However
>the normal cycle time should be a good indiciator.

Well, however long you want to keep them.  If you're planning on
keeping articles forever, then you can keep both old and new
buffers forever with storage.conf like I was describing.  If you
only want to have three weeks of articles on hand, then three
weeks after you switch you can go ahead and throw away the old
buffers.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Switching CNFS from interleaved to sequential
#73076
Author: Mike Lischke
Date: Sat, 14 Jan 2006 17:26
11 lines
2015 bytes
Jeffrey M. Vinocur wrote

>INN keeps track of each article it receives in the history file,
>and one of the key pieces of information is the storage class.

Thank you very much for giving so detailed info about how INN CNFS buffers
work. Much appreciated!

Mike
-- 
www.soft-gems.net
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