🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by David Ponzone Wed, 15 Jan 1997 00:00
News over NFS
#14074
Author: David Ponzone
Date: Wed, 15 Jan 1997 00:00
22 lines
1202 bytes
Hi.

We are planning to change our news topology to be able to add
more easily new NNRP hosts, to handle our increasing connections.

We plan to use our Auspex NFS toaster for the feeds, only the feeds,
and to mount the spool on clients (BSD/OS), running NNRPD only,
in read only mode.
Of course, 100BaseTX will be used.

I'd like advices and opinions on such an architecture, as I am sure
some of you tried this, or even actually use this.

TIA.
Regards.

-- David Ponzone - ISDnet - Network Administrator --
   Pager: 06 06 41 82 45    Cell: 06 60 61 21 63
   Email: david@isdnet.net

Re: News over NFS
#14224
Author: bill davidsen
Date: Mon, 20 Jan 1997 00:00
31 lines
1641 bytes
In article <32DD4F82.652A@isdnet.net>, David Ponzone  <david@isdnet.net> wrote:

| We are planning to change our news topology to be able to add
| more easily new NNRP hosts, to handle our increasing connections.
| 
| We plan to use our Auspex NFS toaster for the feeds, only the feeds,
| and to mount the spool on clients (BSD/OS), running NNRPD only,
| in read only mode.
| Of course, 100BaseTX will be used.
| 
| I'd like advices and opinions on such an architecture, as I am sure
| some of you tried this, or even actually use this.

On the slaves:
 1. NFS mount articles, NOV, history, active and newsgroups
 2. Don't run INN (!)
 3. Do start the nnrpd from innd, specifying that it's a slave
    so it does the posting on the master (INN master, may or may not
    be NFS master).
On the master:
 1. export all the stuff read-only
 2. accept posts from all slaves

Works for me.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: News over NFS
#14240
Author: Brandon Hume
Date: Mon, 20 Jan 1997 00:00
15 lines
1093 bytes
In news.software.nntp bill davidsen <davidsen@tmr.com> wrote:
:  2. Don't run INN (!)
:  3. Do start the nnrpd from innd, specifying that it's a slave
:     so it does the posting on the master (INN master, may or may not
:     be NFS master).

Couldn't you pop the nnrpds out of inetd just as easily?  Might save some 
RAM (as well as some dependance on innd being there).

-- 
Brandon Hume  -  hume@isisnet.com, hume@scapes.net
- Finger for Geek codes, PGP, /dev/zero, yadda yadda.

Re: News over NFS
#14359
Author: Nick Christenson
Date: Thu, 23 Jan 1997 00:00
22 lines
1329 bytes
In article <5c03av$eib$1@thor.atcon.com>,
Brandon Hume  <hume@ra.isisnet.com> wrote:
>In news.software.nntp bill davidsen <davidsen@tmr.com> wrote:
>:  2. Don't run INN (!)
>:  3. Do start the nnrpd from innd, specifying that it's a slave
>:     so it does the posting on the master (INN master, may or may not
>:     be NFS master).
>
>Couldn't you pop the nnrpds out of inetd just as easily?  Might save some 
>RAM (as well as some dependance on innd being there).

Yes.  This works just swell.  Make sure your inetd is patched (if 
necessary) to be able to spawn a lot of connections in a short amount
of time.

-- 
Nick Christenson
EarthLink Network, Inc.
npc@earthlink.net

Re: News over NFS
#14379
Author: Dan Foster
Date: Thu, 23 Jan 1997 00:00
29 lines
1913 bytes
In article <5c988r$99i@thailand.it.earthlink.net>,
Nick Christenson <npc@thailand.it.earthlink.net> wrote:
>>Couldn't you pop the nnrpds out of inetd just as easily?  Might save some 
>>RAM (as well as some dependance on innd being there).
>
>Yes.  This works just swell.  Make sure your inetd is patched (if 
>necessary) to be able to spawn a lot of connections in a short amount
>of time.

Wouldn't it, out of curiosity, have a lower cost to have a nnrpd that
binds to port 119 and forks as needed children to handle each NNRP
connect as opposed to having an huge select() loop like you do with
inetd? Or would that offer neglible advantage (little or none)?

Or, like most httpd's... pre-fork x numbers of daemons, which would
possibly make sense because you'd usually know roughly how many you were
running during an average period as well as during peak times.

I've seen what can happen when inetd gets overloaded, and it isn't
pretty. ;-) fork()/exec()'s are expensive, so if you can just arrange so
that most happens during relatively idle periods, that might help offset
whatever cost for bind()'ing and watching a select() loop for all those
nnrpd's...

-Dan Foster
Internet: dsf@frontiernet.net

Re: News over NFS
#14435
Author: Nick Christenson
Date: Sun, 26 Jan 1997 00:00
41 lines
2505 bytes
In article <5c9dnh$q4e@node6.frontiernet.net>,
Dan Foster <dsf@node6.frontiernet.net> wrote:
>In article <5c988r$99i@thailand.it.earthlink.net>,
>Nick Christenson <npc@thailand.it.earthlink.net> wrote:
>>>Couldn't you pop the nnrpds out of inetd just as easily?  Might save some 
>>>RAM (as well as some dependance on innd being there).
>>
>>Yes.  This works just swell.  Make sure your inetd is patched (if 
>>necessary) to be able to spawn a lot of connections in a short amount
>>of time.
>
>Wouldn't it, out of curiosity, have a lower cost to have a nnrpd that
>binds to port 119 and forks as needed children to handle each NNRP
>connect as opposed to having an huge select() loop like you do with
>inetd? Or would that offer neglible advantage (little or none)?

I think it would offer an advantage, but I'm not sure it's worth
the cost of maintaining a software package seperate from the standard
one.  Of course, if the ISC would like to put this option into the
stock nnrpd, it's likely that I'd use it.  This is all IMHO, of course.

>Or, like most httpd's... pre-fork x numbers of daemons, which would
>possibly make sense because you'd usually know roughly how many you were
>running during an average period as well as during peak times.

Either way, I think it would be an improvement, but not a huge one.
The nnrpd processes are far more persistant than httpds, so the 
overall cost of an expensive startup is lower.

>I've seen what can happen when inetd gets overloaded, and it isn't
>pretty. ;-) fork()/exec()'s are expensive, so if you can just arrange so
>that most happens during relatively idle periods, that might help offset
>whatever cost for bind()'ing and watching a select() loop for all those
>nnrpd's...
-- 
Nick Christenson
EarthLink Network, Inc.
npc@earthlink.net

Re: News over NFS
#14447
Author: bill davidsen
Date: Mon, 27 Jan 1997 00:00
43 lines
2566 bytes
In article <5c9dnh$q4e@node6.frontiernet.net>,
Dan Foster <dsf@node6.frontiernet.net> wrote:

| Wouldn't it, out of curiosity, have a lower cost to have a nnrpd that
| binds to port 119 and forks as needed children to handle each NNRP
| connect as opposed to having an huge select() loop like you do with
| inetd? Or would that offer neglible advantage (little or none)?

Offer a big advantage on most machines. You avoid all the overhead
of startup.

| Or, like most httpd's... pre-fork x numbers of daemons, which would
| possibly make sense because you'd usually know roughly how many you were
| running during an average period as well as during peak times.

What you *really* want is to have a single nnrpd which threads
rather than forks, and have innd and nnrpd share the active file by
something like the the shared active patch. You can pass the socket
rather than fork, and just start a thread when nnrpd gets it.

Historical note: my first attach on this was to memory map the
active file in innd and nnrpd, thrying to save both rereads and
memory. The good news is that it works perfectly on some machines.
The bad news is that it fails in a number of ways on other machines.

I'm currently looking at adding innd to the shared active patch,
which should eliminate ever rereading the file on a busy system.
I've had some problems which may be my code or may be the test
machines. Before I release it I want it to run on AIX, Linux and
SCO, and maybe Solaris.

That hasn't happened yet, and I just lost a drive on my development
system. I have backup (of course) but the system will be down for a
bit, I'm doing a waranty replace rather than just funding a new
drive, so I bet it takes two weeks.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch


Re: News over NFS
#14454
Author: bill davidsen
Date: Mon, 27 Jan 1997 00:00
24 lines
1542 bytes
In article <5c03av$eib$1@thor.atcon.com>,
Brandon Hume  <hume@ra.isisnet.com> wrote:
| In news.software.nntp bill davidsen <davidsen@tmr.com> wrote:
| :  2. Don't run INN (!)
| :  3. Do start the nnrpd from innd, specifying that it's a slave
| :     so it does the posting on the master (INN master, may or may not
| :     be NFS master).
| 
| Couldn't you pop the nnrpds out of inetd just as easily?  Might save some 
| RAM (as well as some dependance on innd being there).

That's what I meant by (2), the innd should be inetd in (3), don't
know if I brain farted and typed the wrong thing, or just fropped
the 't' and got a spell correct from ined to innd (suspect the
first).

In any case, that's just what I'm doing when I type it right.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: News over NFS
#14464
Author: bill davidsen
Date: Mon, 27 Jan 1997 00:00
39 lines
2530 bytes
In article <5chjo1$d3e@thailand.it.earthlink.net>,
Nick Christenson <npc@thailand.it.earthlink.net> wrote:
| In article <5c9dnh$q4e@node6.frontiernet.net>,
| Dan Foster <dsf@node6.frontiernet.net> wrote:

| >Wouldn't it, out of curiosity, have a lower cost to have a nnrpd that
| >binds to port 119 and forks as needed children to handle each NNRP
| >connect as opposed to having an huge select() loop like you do with
| >inetd? Or would that offer neglible advantage (little or none)?
| 
| I think it would offer an advantage, but I'm not sure it's worth
| the cost of maintaining a software package seperate from the standard
| one.  Of course, if the ISC would like to put this option into the
| stock nnrpd, it's likely that I'd use it.  This is all IMHO, of course.
| 
| >Or, like most httpd's... pre-fork x numbers of daemons, which would
| >possibly make sense because you'd usually know roughly how many you were
| >running during an average period as well as during peak times.
| 
| Either way, I think it would be an improvement, but not a huge one.
| The nnrpd processes are far more persistant than httpds, so the 
| overall cost of an expensive startup is lower.

This is a good point, but what you want (on machines which support
it) is threads. This saves init, and also most of the memory needed
per user. News is not CPU bound, and disk capacity can be added, but
many machines which would be low cost servers have only limited
memory capacity, say 512M or 1G.

Converting the existing nnrpd to threads is not anything like a
drop-in, it would be a significant effort to do at all, and more
than that to do right (ie. with docs and easy portability).
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: News over NFS
#14507
Author: Nick Christenson
Date: Tue, 28 Jan 1997 00:00
35 lines
1782 bytes
In article <5cj35k$30hs@usenet1y.prodigy.net>,
bill davidsen <davidsen@tmr.com> wrote:

>This is a good point, but what you want (on machines which support
>it) is threads. This saves init, and also most of the memory needed
>per user. 

I agree threads is better, but I'm not sure how much.  I'm also not
sure how much memory it actually would save, especially if you're
already doing things like shared-active.  I'd be interested in
seeing it angry.

>News is not CPU bound, 

Heh.  We have an architecture where, if we let it get loaded, news
gets CPU bound.  Never thought I'd see the day, though.

> and disk capacity can be added, but
>many machines which would be low cost servers have only limited
>memory capacity, say 512M or 1G.
>
>Converting the existing nnrpd to threads is not anything like a
>drop-in, it would be a significant effort to do at all, and more
>than that to do right (ie. with docs and easy portability).

Again, this is something I'd use if it were in the stock nnrpd,
certainly.

-- 
Nick Christenson
EarthLink Network, Inc.
npc@earthlink.net

Re: News over NFS
#14593
Author: Juan Carlos Castro
Date: Thu, 30 Jan 1997 00:00
22 lines
1505 bytes
> On the slaves:
>  1. NFS mount articles, NOV, history, active and newsgroups
>  2. Don't run INN (!)
>  3. Do start the nnrpd from innd, specifying that it's a slave
>     so it does the posting on the master (INN master, may or may not
>     be NFS master).
> On the master:
>  1. export all the stuff read-only
>  2. accept posts from all slaves
> 

Has anyone tried using Solaris' Cachefs on the mounted spool?  I
doubt that cachefs would be a win on the NOV, history, or active.

----
J. Carlos Castro (JCC31) -  Consulting for your Internet Needs
work --president@netcrusader.net--> http://www.netcrusader.net
http://www.jcas.com <-------------j@jcas.com------------- play


Re: News over NFS
#14684
Author: Stefan Monnier
Date: Mon, 03 Feb 1997 00:00
13 lines
1131 bytes
Juan Carlos Castro <jcastro@netcrusader.net> writes:
> Has anyone tried using Solaris' Cachefs on the mounted spool?  I
> doubt that cachefs would be a win on the NOV, history, or active.

You could use "demandconst" to make sure files are not automatically kept
consistent and have a "cfsadmin -u /var/spool/news" run on the clients every
now and then. This way, the NOV and such files stay cached on the client.


        Stefan

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