Article View: news.software.nntp
Article #47987Re: Control for maximum NNTP connection
From: Arthur S.L. Hsieh
Date: Sun, 20 Aug 2000 00:00
Date: Sun, 20 Aug 2000 00:00
46 lines
2890 bytes
2890 bytes
Anonymous Meoward <meower@free-N0RP.netSCUM.dk> writes: > On 2544 Sep 1993, Arthur S.L. Hsieh wrote: > > The output from `ctlinnd mode' is > > Parameters c 14 i 50 (0) l 1000000 o 51 t 300 H 2 T 60 X 0 normal > > > > The output always gives ... i 50 (0) ... and I've never seen any > > changes in value inside the bracket. That is always zero. > > So you have no incoming feeds. And if you did, you could get no > more than 50, after which anything following would be given a > `400 too many connections' rejection message Actually we've one incoming news feed. > > Although I've set the maxconnections to 50, I can see the number of > > nnrpd processes to be well over 100. I feel the paramater is > > completely ineffective. > > maxconnections has nothing to do with nnrpd. maxconnections only > has to do with your feedsites, and there it will work fine. > > What you need to do is to start nnrpd in a way that you can > only fork a limited number of them -- if 100 readers is enough > to topple your machine and you can't upgrade things to support > more and you're actually seeing 100+ readers and not some other > bug that results in a lot of leftover nnrpd processes, then > you might want to start nnrpd not from innd (where you saw the > error trying to exec), but from, say, tcpswerver, where the > number of nnrpd processes can be limited... > # /news/bin/tcpserver -R -c100 -g100 -u101 -x/news/bin/rules.cdb > your.hostname 119 /news/bin/nnrpd > (tweak -c -- the number of connections -- to keep things alive, > adjust the other parameters to match your particular setup) Unfortunately I can't use tcpserver to control the number of nnrpd processes as port 119 is also used by innd to accept incoming news feed. Since innd is responsible for accepting incoming connections at port 119, I feel maxconnections should count both incoming news feed and reader connections. However, it seems this is not the case. -- Arthur Hsieh
Technical Details
Message-ID:
<ufr97ke1oo.fsf@pc1.school.net.hk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<ufk8dmr0m3.fsf@pc1.school.net.hk> <Pine.BSF.4.21.0008141950390.21502-100000@vax.chrillesen.dk> <ufbsyqwtbz.fsf@pc1.school.net.hk> <Pine.BSF.4.21.0008182136340.11639-100000@vax.chrillesen.dk>Show Full Headers
Complete Article Headers
Message-ID: <ufr97ke1oo.fsf@pc1.school.net.hk> Subject: Re: Control for maximum NNTP connection Date: Sun, 20 Aug 2000 00:00:00 +0000 From: arh@school.net.hk (Arthur S.L. Hsieh) References: <ufk8dmr0m3.fsf@pc1.school.net.hk> <Pine.BSF.4.21.0008141950390.21502-100000@vax.chrillesen.dk> <ufbsyqwtbz.fsf@pc1.school.net.hk> <Pine.BSF.4.21.0008182136340.11639-100000@vax.chrillesen.dk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 660321739 X-Complaints-To: abuse@erg.cuhk.edu.hk X-Trace: eng-ser1.erg.cuhk.edu.hk 966762744 28343 202.45.183.31 (20 Aug 2000 09:12:24 GMT) Organization: Hong Kong School Net NNTP-Posting-Date: 20 Aug 2000 09:12:24 GMT Newsgroups: news.software.nntp