Thread View: news.software.nntp
18 messages
18 total messages
Started by Geoffrey Michael WILSON
Wed, 10 Feb 1999 00:00
Using a separate machine for readers
Author: Geoffrey Michael WILSON
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
24 lines
1674 bytes
1674 bytes
I'm looking to use a separate box for the readers using INN-2.1 (am still
putting off upgrade ;) and was wondering which way to go. My current
understanding is that I have two options. One is to set up a similar machine
to my news server and set it up as a slave box (?) which I believe would be a
similar box in hardware to my main newserver and would basically have one
feed, ie. my main news server.
The other option would be to setup a second machine to run nnrpd and set
nnrpd to run in daemon mode. In order to do acomplish this, I'd have to share
my spool between the machines using NFS or some such other sharing protocol.
Have people been trying this with INN-2.1?
Is it effective to share buffers (am using cnfs), is it even possible?
Any thoughts would be greatly appreciated, especially as to which option
would reduce the load on my main box the most.
Thanks,
Geoff Wilson <gmwils@ecr.mu.oz.au>
--
a paranoid is just someone with all of the facts at his disposal
- william seaward burroughs 1914-1997
Geoff M. Wilson <gmwils@ecr.mu.oz.au> http://www.cs.mu.oz.au/~gmwils
Re: Using a separate machine for readers
Author: Mark Hittinger
Date: Tue, 09 Feb 1999 00:00
Date: Tue, 09 Feb 1999 00:00
32 lines
1853 bytes
1853 bytes
gmwils@cs.mu.oz.au (Geoffrey Michael WILSON) writes: > The other option would be to setup a second machine to run nnrpd and set >nnrpd to run in daemon mode. In order to do acomplish this, I'd have to share >my spool between the machines using NFS or some such other sharing protocol. > Have people been trying this with INN-2.1? We use something similar here, we have several boxes that are arranged in pairs, one box that has directly attached spool and one box that nfs mounts the spool of the previous box through a backend network. We spawn nnrpd out of inetd on those nfs mounting boxes. Prior to INN 2.0 this works OK. Under 2.0 and above the unified overview performance is affected by a far higher number of actual I/O's. The file system cache is defeated by the design of unified overview. On servers with a directly attached disk spool you do see some performance degradation but on servers with an NFS mounted spool you can see very clearly the performance problem. We only tested this with cnfs, we didn't try it with traditional spool. Be sure you understand the performance issue before committing too heavily to the NFS mount trick. Regards, Mark Hittinger Netcom/DallasOps bugs@freebsd.netcom.com
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
25 lines
2026 bytes
2026 bytes
In article <79qvdc$so1@dfw-ixnews7.ix.netcom.com>, bugs@freebsd.netcom.com
(Mark Hittinger) wrote:
> Under 2.0 and above the unified overview performance is affected by a far
> higher number of actual I/O's. The file system cache is defeated by the
> design of unified overview. On servers with a directly attached disk spool
> you do see some performance degradation but on servers with an NFS mounted
> spool you can see very clearly the performance problem.
>
> We only tested this with cnfs, we didn't try it with traditional spool.
I'd be very curious to see how this works with traditional spool,
since we're doing that here and it seems okay. I'd especially like to
know how it works where the server is running FreeBSD 3.0 and uses a
softupdates filesystem for the spool, which is then mounted read-only
(noatime) to the news reader boxes. My intuition tells me that this
should *fly*, but I may be wrong.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Andrew Gierth
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
12 lines
1406 bytes
1406 bytes
>>>>> "Brad" == Brad Knowles <brad@shub-internet.org> writes: Brad> We keep only articles in the history which match the Perl regexp: Brad> /(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/ Did you really want to ignore everything with an Expires: header? -- Andrew.
Re: Using a separate machine for readers
Author: bill davidsen
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
41 lines
2751 bytes
2751 bytes
In article <brad-1002991259050001@brad.techos.skynet.be>, Brad Knowles <brad@shub-internet.org> wrote: | In article <79qni9$a7j$1@mulga.cs.mu.OZ.AU>, gmwils@cs.mu.oz.au (Geoffrey | Michael WILSON) wrote: | | > The other option would be to setup a second machine to run nnrpd and set | > nnrpd to run in daemon mode. In order to do acomplish this, I'd have to share | > my spool between the machines using NFS or some such other sharing protocol. | > Have people been trying this with INN-2.1? | > Any thoughts would be greatly appreciated, especially as to which option | > would reduce the load on my main box the most. | | I would go for splitting off the news reader traffic onto separate | boxes. Make sure that your "makehistory" on the reader boxes is slaved to | the makehistory on the news spool server. | | We have a little script called "lighthistory" (which I think I need to | contrib to the INN development pool) that takes the articles on the news | spool server and pulls out just those that make sense to have on a news | reader, and we then use this file as input (via NFS) to the makehistory | run on the news reader boxes. I miss this completely... I've done this trick, and nver ran anything but nnrpd on the reader boxes. When the main box expires the reader boxes see the updated history. I don't quite see why you would run anything else on the reader boxes, and I export my info read-only to be very sure no one is playing in my sandbox. What is the purpose of your lighthistory, and what articles do you keep on the reader machine? Are you doing some kind of caching, or ??? And are you running conventional or CNFS? -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason. --Ted Symons(?)
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
19 lines
1668 bytes
1668 bytes
In article <87ww1qvul9.fsf@erlenstar.demon.co.uk>, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:
> Did you really want to ignore everything with an Expires: header?
I believe so. These are reader only machines, who are NFS mounting
(read-only) the spool from another server. Therefore, the readers
shouldn't need to worry about articles with those headers, as they should
be handled by the news spool server.
Right?
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
39 lines
2646 bytes
2646 bytes
In article <79qni9$a7j$1@mulga.cs.mu.OZ.AU>, gmwils@cs.mu.oz.au (Geoffrey
Michael WILSON) wrote:
> The other option would be to setup a second machine to run nnrpd and set
> nnrpd to run in daemon mode. In order to do acomplish this, I'd have to share
> my spool between the machines using NFS or some such other sharing protocol.
> Have people been trying this with INN-2.1?
We're doing this today with INN 2.1. We're supporting ~100k users (up
to 5k simultaneously online) with one news spool server exported via NFS
to two news reader servers. However, we don't take a full feed (only
~4GB/day, versus 24-30GB/day), so that might change your picture a little.
> Is it effective to share buffers (am using cnfs), is it even possible?
I'm still seeing too many complaints about CNFS even under INN 2.2-REL
for me to consider switching to it any time soon. Maybe in INN 2.3-REL or
perhaps 2.4-REL.
> Any thoughts would be greatly appreciated, especially as to which option
> would reduce the load on my main box the most.
I would go for splitting off the news reader traffic onto separate
boxes. Make sure that your "makehistory" on the reader boxes is slaved to
the makehistory on the news spool server.
We have a little script called "lighthistory" (which I think I need to
contrib to the INN development pool) that takes the articles on the news
spool server and pulls out just those that make sense to have on a news
reader, and we then use this file as input (via NFS) to the makehistory
run on the news reader boxes.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
23 lines
1785 bytes
1785 bytes
In article <79s5ri$5jq8$1@newssvr03-int.news.prodigy.com>,
davidsen@tmr.com (bill davidsen) wrote:
> What is the purpose of your lighthistory, and what articles do you keep
> on the reader machine? Are you doing some kind of caching, or ??? And
> are you running conventional or CNFS?
We keep only articles in the history which match the Perl regexp:
/(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/
This usually cuts our history file down to about one-half it's normal
size, and since these are the only kinds of articles a reader machine will
care about, this means that the history database on those machines is now
smaller.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
15 lines
1563 bytes
1563 bytes
In article <36c8e8b6.12226175@news.clubi.ie>, alex@clubi.ie (Alex French) wrote:
> OK, save me the trouble of deciphering that... :-)
As I understand it, that regexp means that only articles that are
actually still in the spool are kept, and the rest (which are still being
remembered, but aren't actually in the spool) are ignored.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Mark Hittinger
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
18 lines
1397 bytes
1397 bytes
brad@shub-internet.org (Brad Knowles) writes: > I believe so. These are reader only machines, who are NFS mounting >(read-only) the spool from another server. Therefore, the readers >shouldn't need to worry about articles with those headers, as they should >be handled by the news spool server. In either case its a terrific idea Brad, I can make good use of it here with some minor tweaking. Thanks for telling us about it. Every time I think I've heard the last great INN hack ...... Regards, Mark Hittinger Netcom/DallasOps bugs@freebsd.netcom.com
Re: Using a separate machine for readers
Author: Alex French
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
10 lines
1217 bytes
1217 bytes
On Wed, 10 Feb 1999 17:39:08 +0100, brad@shub-internet.org (Brad Knowles) was rumoured to have said: > We keep only articles in the history which match the Perl regexp: > > /(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/ OK, save me the trouble of deciphering that... :-)
Re: Using a separate machine for readers
Author: Jeremy
Date: Thu, 11 Feb 1999 00:00
Date: Thu, 11 Feb 1999 00:00
20 lines
1477 bytes
1477 bytes
Brad Knowles <brad@shub-internet.org> wrote: >> Did you really want to ignore everything with an Expires: header? > > I believe so. These are reader only machines, who are NFS mounting > (read-only) the spool from another server. Therefore, the readers > shouldn't need to worry about articles with those headers, as they should > be handled by the news spool server. > > Right? I believe what he's saying is that articles with Expires headers are not ending up in your readers' history files at all, because their history entries don't match your regexp. -- Jeremy | jeremy@exit109.com "Do you think a princess, and a guy like me..." --Han Solo
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Thu, 11 Feb 1999 00:00
Date: Thu, 11 Feb 1999 00:00
57 lines
2753 bytes
2753 bytes
In article <79t2se$bmg@dfw-ixnews7.ix.netcom.com>, bugs@freebsd.netcom.com
(Mark Hittinger) wrote:
> In either case its a terrific idea Brad, I can make good use of it here
> with some minor tweaking. Thanks for telling us about it.
>
> Every time I think I've heard the last great INN hack ......
This is extremely crude, but here's what we've now got for
light-history.pl (from what I can tell, it lops off about 1/3 the number
of bytes and 1/2 the number of lines in the master history file, making
the new one 2422115 lines long, versus 4337514):
#!/usr/local/bin/perl
open(IN,"</usr/local/news/db/history") or die "Cannot read history";
open(OUT,">/usr/local/news/db/readers-history.n") or die "Cannot write
light history";
while(<IN>) {
if (/(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
elsif (/(^<\S+>)\s+(\d+~\d+~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
}
print "Throttling\n";
system('ctlinnd throttle "Making light history"');
print "Flushing\n";
system('ctlinnd flush historyd!');
print "Flushing\n";
system('ctlinnd flush historyd!');
while(<IN>) {
if (/(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
}
print "Un-throttling\n";
system('ctlinnd go "Making light history"');
close(OUT);
close(IN);
system('mv /usr/local/news/db/readers-history.n
/usr/local/news/db/readers-history');
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Thu, 11 Feb 1999 00:00
Date: Thu, 11 Feb 1999 00:00
24 lines
2012 bytes
2012 bytes
In article <79t2se$bmg@dfw-ixnews7.ix.netcom.com>, bugs@freebsd.netcom.com
(Mark Hittinger) wrote:
> In either case its a terrific idea Brad, I can make good use of it here
> with some minor tweaking. Thanks for telling us about it.
>
> Every time I think I've heard the last great INN hack ......
Well, as Adnrew pointed out, this wouldn't allow readers to pull up
(by message-id) any article with an Expires header in it (e.g., all those
nice FAQs). The Perl regexp needs a bit of tweaking, but I think you get
the idea.
Once I've got a new version that allows for articles with the Expires
header, I'll post the code here (and perhaps contribute it to the INN
codebase).
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Thu, 11 Feb 1999 00:00
Date: Thu, 11 Feb 1999 00:00
77 lines
3762 bytes
3762 bytes
In article <brad-1102991128380001@brad.techos.skynet.be>,
brad@shub-internet.org (Brad Knowles) wrote:
> This is extremely crude, but here's what we've now got for
> light-history.pl (from what I can tell, it lops off about 1/3 the number
> of bytes and 1/2 the number of lines in the master history file, making
> the new one 2422115 lines long, versus 4337514):
Actually, that was a bit premature. I just realized that I didn't fix
the second processing loop.
Let's try this instead (of course, you then need to follow this up
with a process on the reader boxes that take this new readers-history file
and use it as input to the makehistory command that is run locally):
#!/usr/local/bin/perl
#
# light-history -- take the master history file, toss out the stuff that
# readers don't need, keep the rest
# Typically reduces # of lines to 55% and # of bytes to 65%
open(IN,"</usr/local/news/db/history") or die "Cannot read history";
open(OUT,">/usr/local/news/db/readers-history.n") or die "Cannot write
light history";
# Let's process as many old articles as we can, before pausing the server
# and flushing the most recent articles
while(<IN>) {
# Let's process as many old articles as we can (seeking to EOF), before
# pausing the server and flushing the most recent articles
while(<IN>) {
# Keep normal articles
if (/(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
# Keep those with Expires headers, too
elsif (/(^<\S+>)\s+(\d+~\d+~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
}
print "Throttling\n";
system('ctlinnd throttle "Making light history"');
print "Flushing\n";
system('ctlinnd flush historyd!');
print "Flushing\n";
system('ctlinnd flush historyd!');
# Process the articles most recently added
while(<IN>) {
# Keep normal articles
if (/(^<\S+>)\s+(\d+~-~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
# Keep those with Expires headers, too
elsif (/(^<\S+>)\s+(\d+~\d+~\d+)\s+(\S+)/) {
print OUT "$1\t$2\t$3\n";
}
}
print "Un-throttling\n";
system('ctlinnd go "Making light history"');
close(OUT);
close(IN);
system('mv /usr/local/news/db/readers-history.n
/usr/local/news/db/readers-history');
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: bill davidsen
Date: Fri, 12 Feb 1999 00:00
Date: Fri, 12 Feb 1999 00:00
23 lines
1817 bytes
1817 bytes
In article <brad-1002992328020001@brad.techos.skynet.be>, Brad Knowles <brad@shub-internet.org> wrote: | In article <87ww1qvul9.fsf@erlenstar.demon.co.uk>, Andrew Gierth | <andrew@erlenstar.demon.co.uk> wrote: | | > Did you really want to ignore everything with an Expires: header? | | I believe so. These are reader only machines, who are NFS mounting | (read-only) the spool from another server. Therefore, the readers | shouldn't need to worry about articles with those headers, as they should | be handled by the news spool server. ??? Your readers can't get at any of the FAQ's, they almost always have an Expires: header. Or you can run plain expire with remember set to 1 (or less) and drop anything not actually in spool. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason. --Ted Symons(?)
Re: Using a separate machine for readers
Author: Brad Knowles
Date: Fri, 12 Feb 1999 00:00
Date: Fri, 12 Feb 1999 00:00
18 lines
1752 bytes
1752 bytes
In article <79s5ri$5jq8$1@newssvr03-int.news.prodigy.com>,
davidsen@tmr.com (bill davidsen) wrote:
> I miss this completely... I've done this trick, and nver ran anything
> but nnrpd on the reader boxes.
There is one other reason you might do this, and which previously
slipped my mind -- if the news spool server and news reader boxes are of
different architectures, so that you can't share the history.db files
between them.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: Using a separate machine for readers
Author: bill davidsen
Date: Fri, 12 Feb 1999 00:00
Date: Fri, 12 Feb 1999 00:00
25 lines
1900 bytes
1900 bytes
In article <brad-1202990121390001@194.78.31.227>, Brad Knowles <brad@shub-internet.org> wrote: | In article <79s5ri$5jq8$1@newssvr03-int.news.prodigy.com>, | davidsen@tmr.com (bill davidsen) wrote: | | > I miss this completely... I've done this trick, and nver ran anything | > but nnrpd on the reader boxes. | | There is one other reason you might do this, and which previously | slipped my mind -- if the news spool server and news reader boxes are of | different architectures, so that you can't share the history.db files | between them. I will go back a check this when I get back from vacation (if helping someone move the third time in seven years is a vacation), I'm relatively sure I have slaved Linux boxes off RS/6000 machines, but that may have been my superhacked 1.5.1.xx using traditional storage. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason. --Ted Symons(?)
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