🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Xavier Roche Tue, 26 Oct 2004 06:50
Handling a large spool with INN ?
#70179
Author: Xavier Roche
Date: Tue, 26 Oct 2004 06:50
17 lines
2034 bytes
Hi folks,

I am trying to tune an INN server so that it can deal with a large (ie 
few years of text groups) news spool.

The storage format choice is important - timecaf is probably a good 
choice (more control than cnfs, better granularity than tradspool and 
timehash), but how INN will store its Message-Id indexes and will it 
handle the load of millions of messages ? Another problem is the 
expiration handling, based on arrival time rather than message time if I 
am correct - hence if you fill a spool with an existing database (an old 
spool, using cat old | rnews), will this mess up the whole thing because 
you will end up with old messages having recent arrival time ?
Similarly, handling overview through ovdb seems a pretty good choice - 
but this format doesn't seems to have been thoroughly tested..

Any remarks or hints from INN experts would greatly be appreciated :)
Re: Handling a large spool with INN ?
#70187
Author: Jeffrey M. Vinocur
Date: Wed, 27 Oct 2004 08:55
72 lines
3778 bytes
In article <clks49$k1m$1@news.httrack.net>,
Xavier Roche  <xroche@free.fr.NOSPAM.invalid> wrote:
>
>I am trying to tune an INN server so that it can deal with a large (ie 
>few years of text groups) news spool.

Are you having problems, or are you just thinking preemptively?
It's not clear to me what you're calling a large spool and
whether that is actually large enough to matter.

FWIW, we maintain a local server that I consider quite small, and
I just counted the number of posts -- it's nearly a million in
total.  INN uses less than one percent of our machine's CPU time.

So some questions for you:  how many messages altogether, how
many messages per group in a large group, and (most importantly)
how many simultaneous users reading news?


>The storage format choice is important - timecaf is probably a good 
>choice (more control than cnfs, better granularity than tradspool and 
>timehash),

Well, tradspool pretty much has the ultimate granularity, and it
works well until you get in the 10,000 - 100,000 articles/group
range.  (Also keep in mind that you can mix a variety of storage
methods, so you can start easy and figure out what needs tweaking
later.)


>but how INN will store its Message-Id indexes 

The history database is reasonably efficient.  It can store about
20 million messages before exceeding 2 GB on an average system;
simply compile INN with largefile support if you require more
than this.


>and will it handle the load of millions of messages ?

The total number of messages is not as important for load as is
the number of new messages arriving per day, and the number of
readers.


>Another problem is the 
>expiration handling, based on arrival time rather than message time if I 
>am correct - hence if you fill a spool with an existing database (an old 
>spool, using cat old | rnews), will this mess up the whole thing because 
>you will end up with old messages having recent arrival time ?

The purpose of that method is so that each article will be
available to users for a reasonable length of time.  If you
prefer to expire based on posting date, there is an option for
that.

You might want to stop and think about what sort of article
expiration plan you want, though.  If you're going to expire
based on posting date, then why bring old articles over in the
first place?


>Similarly, handling overview through ovdb seems a pretty good choice - 
>but this format doesn't seems to have been thoroughly tested..

Most of the recent work is on tradindexed, I might start there
and only consider alternatives if you have trouble.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Handling a large spool with INN ?
#70189
Author: Xavier Roche
Date: Wed, 27 Oct 2004 09:18
36 lines
2820 bytes
Jeffrey M. Vinocur wrote:
> Are you having problems, or are you just thinking preemptively?

Preemptively, before potentially having problems :)

> It's not clear to me what you're calling a large spool and
> whether that is actually large enough to matter.

Well, large means several years of text in big8. Typically around 100 
millions of messages. The main concern is the performances of the 
database: will 100M be a problem for INN indexes ? (The number of users 
will not be high, but performances per user is still important)

> Well, tradspool pretty much has the ultimate granularity, and it
> works well until you get in the 10,000 - 100,000 articles/group
> range.

Yes, and it's much easier to handle for many reasons (and expiration is 
probably sharp). But having 100 millions of files will probably cause 
the INN cron.daily to take hours - at least I observed clear 
performances problems with a small (3 millions) spool (on a small 
machine, however)

> You might want to stop and think about what sort of article
> expiration plan you want, though.  If you're going to expire
> based on posting date, then why bring old articles over in the
> first place?

Well, "not so old articles" actually (the expiration would be something 
like 3 years, and articles are 1-yeatr old)

> Most of the recent work is on tradindexed, I might start there
> and only consider alternatives if you have trouble.

So you would recommend tradindexed, even for very large spools ?
Re: Handling a large spool with INN ?
#70199
Author: Bill Davidsen
Date: Thu, 28 Oct 2004 15:59
52 lines
3534 bytes
Xavier Roche wrote:
> Jeffrey M. Vinocur wrote:

>> It's not clear to me what you're calling a large spool and
>> whether that is actually large enough to matter.
> 
> 
> Well, large means several years of text in big8. Typically around 100 
> millions of messages. The main concern is the performances of the 
> database: will 100M be a problem for INN indexes ? (The number of users 
> will not be high, but performances per user is still important)

Not a problem.
> 
>> Well, tradspool pretty much has the ultimate granularity, and it
>> works well until you get in the 10,000 - 100,000 articles/group
>> range.
> 
> 
> Yes, and it's much easier to handle for many reasons (and expiration is 
> probably sharp). But having 100 millions of files will probably cause 
> the INN cron.daily to take hours - at least I observed clear 
> performances problems with a small (3 millions) spool (on a small 
> machine, however)

Add memory. The history manipulation just runs forever if you don't.
> 
>> You might want to stop and think about what sort of article
>> expiration plan you want, though.  If you're going to expire
>> based on posting date, then why bring old articles over in the
>> first place?
> 
> 
> Well, "not so old articles" actually (the expiration would be something 
> like 3 years, and articles are 1-yeatr old)
> 
>> Most of the recent work is on tradindexed, I might start there
>> and only consider alternatives if you have trouble.
> 
> 
> So you would recommend tradindexed, even for very large spools ?

Let's say I would not recommend anything else. I have had "learning 
experiences" with ovdb, and if you ask for help with it you have a very 
small pool of experience on which to draw.


-- 
bill davidsen (davidsen@darkstar.prodigy.com)
   SBC/Prodigy Yorktown Heights NY data center
   Project Leader, USENET news
   http://newsgroups.news.prodigy.com
Re: Handling a large spool with INN ?
#70227
Author: Jeffrey M. Vinocur
Date: Fri, 29 Oct 2004 15:39
41 lines
2559 bytes
In article <clnp4i$7hv$1@news.httrack.net>,
Xavier Roche  <xroche@free.fr.NOSPAM.invalid> wrote:
>
>Yes, and it's much easier to handle for many reasons (and expiration is 
>probably sharp). But having 100 millions of files will probably cause 
>the INN cron.daily to take hours - at least I observed clear 
>performances problems with a small (3 millions) spool (on a small 
>machine, however)

Keep in mind that INN doesn't have to touch every file every day.
What you really need is adequate memory to handle processing of
the history database.


>> You might want to stop and think about what sort of article
>> expiration plan you want, though.  If you're going to expire
>> based on posting date, then why bring old articles over in the
>> first place?
>
>Well, "not so old articles" actually (the expiration would be something 
>like 3 years, and articles are 1-yeatr old)

So then you want expiration based on arrival date, which is what
INN does by default.


>So you would recommend tradindexed, even for very large spools ?

Well, that depends.  For the kind of traffic you're describing,
absolutely.  You may need to modify that later for some
high-traffic groups (depending on how your filesystem handles
directories with many many files), but it's a fine place to
start.

For groups with high traffic and short expiration, I think CNFS
is an excellent choice.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Handling a large spool with INN ?
#70233
Author: Jackson
Date: Sat, 30 Oct 2004 04:08
52 lines
2850 bytes
Dear Jeffrey,

Is CNFS is suitable for high traffic and long expiration?

Jackson


On Fri, 29 Oct 2004 15:39:59 +0000 (UTC), jeff@litech.org (Jeffrey M.
Vinocur) wrote:

>In article <clnp4i$7hv$1@news.httrack.net>,
>Xavier Roche  <xroche@free.fr.NOSPAM.invalid> wrote:
>>
>>Yes, and it's much easier to handle for many reasons (and expiration is 
>>probably sharp). But having 100 millions of files will probably cause 
>>the INN cron.daily to take hours - at least I observed clear 
>>performances problems with a small (3 millions) spool (on a small 
>>machine, however)
>
>Keep in mind that INN doesn't have to touch every file every day.
>What you really need is adequate memory to handle processing of
>the history database.
>
>
>>> You might want to stop and think about what sort of article
>>> expiration plan you want, though.  If you're going to expire
>>> based on posting date, then why bring old articles over in the
>>> first place?
>>
>>Well, "not so old articles" actually (the expiration would be something 
>>like 3 years, and articles are 1-yeatr old)
>
>So then you want expiration based on arrival date, which is what
>INN does by default.
>
>
>>So you would recommend tradindexed, even for very large spools ?
>
>Well, that depends.  For the kind of traffic you're describing,
>absolutely.  You may need to modify that later for some
>high-traffic groups (depending on how your filesystem handles
>directories with many many files), but it's a fine place to
>start.
>
>For groups with high traffic and short expiration, I think CNFS
>is an excellent choice.

_________________________________________
Usenet Zone Free Binaries Usenet Server
More than 120,000 groups
Unlimited download
http://www.usenetzone.com to open account
Re: Handling a large spool with INN ?
#70235
Author: Klaas
Date: Sat, 30 Oct 2004 05:53
15 lines
1701 bytes
In article <ds46o0po3u56e89h5322rd7cja74sgsass@4ax.com>,
 Jackson <ho169@hotmail.com> wrote:

> Dear Jeffrey,
> 
> Is CNFS is suitable for high traffic and 

Yes.

> long expiration?

Expiration depends purely on the size of the buffer.  If you have the 
space, you can have retention as long as you wish.

-Mike
Re: Handling a large spool with INN ?
#70236
Author: Jeffrey M. Vinocur
Date: Sat, 30 Oct 2004 16:43
28 lines
2071 bytes
In article <spampit-C8302D.22535229102004@host170.octanews.net>,
Klaas  <spampit@klaas.ca> wrote:
>In article <ds46o0po3u56e89h5322rd7cja74sgsass@4ax.com>,
> Jackson <ho169@hotmail.com> wrote:
>
>> Dear Jeffrey,
>> 
>> Is CNFS is suitable for high traffic and 
>
>Yes.
>
>> long expiration?
>
>Expiration depends purely on the size of the buffer.  If you have the 
>space, you can have retention as long as you wish.

In particular, the thing you lose with CNFS is fine-grained
tuning of expiration.  You can classify articles into some broad
categories (by hierarchy, article size, moderated/unmoderated
group, that kind of thing), and put each category into an
appropriately sized CNFS buffer to get the retention about where
you want it...but it's not as straightforward to get expiration
behavior exactly how you want it.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Handling a large spool with INN ?
#70354
Author: Bill Davidsen
Date: Mon, 22 Nov 2004 17:36
60 lines
4020 bytes
Jeffrey M. Vinocur wrote:
> In article <clnp4i$7hv$1@news.httrack.net>,
> Xavier Roche  <xroche@free.fr.NOSPAM.invalid> wrote:
> 
>>Yes, and it's much easier to handle for many reasons (and expiration is 
>>probably sharp). But having 100 millions of files will probably cause 
>>the INN cron.daily to take hours - at least I observed clear 
>>performances problems with a small (3 millions) spool (on a small 
>>machine, however)
> 
> 
> Keep in mind that INN doesn't have to touch every file every day.
> What you really need is adequate memory to handle processing of
> the history database.
> 
> 
> 
>>>You might want to stop and think about what sort of article
>>>expiration plan you want, though.  If you're going to expire
>>>based on posting date, then why bring old articles over in the
>>>first place?
>>
>>Well, "not so old articles" actually (the expiration would be something 
>>like 3 years, and articles are 1-yeatr old)
> 
> 
> So then you want expiration based on arrival date, which is what
> INN does by default.
> 
> 
> 
>>So you would recommend tradindexed, even for very large spools ?
> 
> 
> Well, that depends.  For the kind of traffic you're describing,
> absolutely.  You may need to modify that later for some
> high-traffic groups (depending on how your filesystem handles
> directories with many many files), but it's a fine place to
> start.
> 
> For groups with high traffic and short expiration, I think CNFS
> is an excellent choice.

Why would you use anything else unless you needed to do some very 
detailed expire policy? I use CNFS for anything with expire when low on 
space, and I always know how much space I will use.

I did look at some expiry schemes inside CNFS, where articles to be kept 
would be "slid down" if they were to be kept, so expire could be spread 
over the entire day instead of being a load peak. It allowed articles to 
be kep with low overhead, but didn't address the issue of forcing expire 
of articles before the space was reclaimed. Since that's not common and 
can be done from the history file if needed I called it a successful 
solution in search of a problem.

-- 
bill davidsen (davidsen@darkstar.prodigy.com)
   SBC/Prodigy Yorktown Heights NY data center
   Project Leader, USENET news
   http://newsgroups.news.prodigy.com
Re: Handling a large spool with INN ?
#70358
Author: Jeffrey M. Vinocur
Date: Mon, 22 Nov 2004 17:50
18 lines
2007 bytes
In article <Ispod.28883$5b1.9770@newssvr17.news.prodigy.com>,
Bill Davidsen  <davidsen@deathstar.prodigy.com> wrote:
>
>I did look at some expiry schemes inside CNFS, where articles to be kept 
>would be "slid down" if they were to be kept, so expire could be spread 
>over the entire day instead of being a load peak. It allowed articles to 
>be kep with low overhead, but didn't address the issue of forcing expire 
>of articles before the space was reclaimed. Since that's not common and 
>can be done from the history file if needed I called it a successful 
>solution in search of a problem.

That sounds very intriguing.  If it's cleanly coded, you might
toss in a patch some day when you're not busy.


-- 
Jeffrey M. Vinocur
jeff@litech.org
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