Article View: news.software.nntp
Article #2569Re: scaling your news server
From: ghudson
Date: Tue, 10 May 1994 17:17
Date: Tue, 10 May 1994 17:17
46 lines
3187 bytes
3187 bytes
David M. Meyer 503/346-1747 (meyer@frostbite-falls.uoregon.edu) wrote: : Hi, : We have been having an ongoing discussion here about how : best to scale up our news server (innd). The two problems : we are experiencing appear to be (i). too many processes : (not hard on a sparc 1+) and (ii). pegged disk (io bound). : The first problem seems to be easily solved by getting : some hardware that has better support for, among other : things, context switching. Another solution, which I'm working on for MIT, is to modify the software to use one process for each N connections (N ~= 10) rather than one process for each connection. The tradeoff here is that a multiplexing process can subject clients to noticeable delays, if other clients on the same process are running expensive queries. Even if you do a really good job of multiplexing your queries, Unix does not provide a mechanism for non-blocking file I/O, so you're still going to have trouble with delays if you multiplex too many connections in the same process. (I've been experimenting with server architectures involving subprocesses for file I/O to avoid this problem, but that's separate from my work on modifying inn.) I'm fairly convinced that forking off a process for each connection is not a feasible strategy for high-load situations and even for some low- load situations. At MIT, we regularly have 150-180 simultaneous connections, and our news servers (Decstations running Ultrix) don't have enough memory for all those 1MB nnrpd processes. If too many nnrpd processes start up at the same time, then the working set becomes large enough to flood the available physical memory, and the system can't recover from thrashing until the demand has gone down significantly (a few hours, in our experience). As for the pegged disk: if your hardware simply can't keep up with the ork required of it, then clearly software won't help (except insofar as it can reduce that workload through caching and the like). You can distribute your news server using inn's slave mode, or you can buy more disks and disk controllers. We've been using two to three disks for news storage at MIT for a while now, and it works fine except for a few problems with makehistory. --GBH
Technical Details
Message-ID:
<2qofja$jdg@ftp.UU.NET>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!sunic!trane.uninett.no!eunet.no!nuug!EU.net!uunet!not-for-mailReferences:
<2qmaks$t0c@ftp.UU.NET>Show Full Headers
Complete Article Headers
Message-ID: <2qofja$jdg@ftp.UU.NET> Subject: Re: scaling your news server Date: Tue, 10 May 1994 17:17:30 +0000 From: ghudson@glacier.mit.edu References: <2qmaks$t0c@ftp.UU.NET> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!sunic!trane.uninett.no!eunet.no!nuug!EU.net!uunet!not-for-mail Newsgroups: news.software.nntp,news.admin.technical Followup-To: news.software.nntp,news.admin.technical Organization: Massachvsetts Institvte of Technology Lines: 45 Sender: zorch@ftp.UU.NET Approved: zorch@uunet.UU.NET Distribution: world NNTP-Posting-Host: ftp.uu.net