Article View: news.software.nntp
Article #82328Re: usenet optimalisation idea for compact high bandwith env
From: Curt Welch
Date: Wed, 09 Dec 2009 01:51
Date: Wed, 09 Dec 2009 01:51
166 lines
9459 bytes
9459 bytes
newsmaster <newsmaster@planet.nl> wrote: > Hi > > I would like to share an idea, and Im very interested if you have > recommendations or blocking issues or have some historical or technical > insight on this. > > Introduction: > A main key in serving binary news messages to a large crowed is having > enough disk io capacity for the randomness created by the large amount > of articles served to a lot of people. > The chance of having the same request done twice in a short interval is > so low, that the memory caching systems (generally speaking) dont do > any noticeable offloading. That's often true. > The way most nntp software stores articles is > enabling caching. > > A few years back we operated a news setup where our dreaders did > disk-caching. The effectiveness of that was too low to implement it in > our new setup. > > Current setup: > We have 4 SANs exporting luns to all hosts and use a SAN-Filesystem. > Readers can read files over FC from shared filesystems being written by > the feeders, and get the message location by doing whereis calls on the > feeders. > All readers are able to serve the full retention up to 1,6 Gbit/sec per > node, and we only use 2 feeders. > If we need more output, then we add disks and create an extra shared > filesystem and sometimes add extra readers. > > Idea: > Because were mostly interested in output performance, and growing extra > data retention is not the primary objective, buying tons of fast disks > if there are other ways would make no sense (except if youve a mission > to kill polar bears). > > I would like to try to steer the users interaction with the servers > while he/she's downloading a specific set of messages, without the need > for user input/selection. Why? > I would like to do this with a minor > serverside change and with clients supporting this client-server > communication (option). Preferably through sharing this and updating > rfcs Seems like a bad idea to me. > * Client starts and connects to primary NNTP server hostname. > * Client sends: list servers (a non-existing list extension used for > example) > * Server answers: (server side configurable data) > 215 information follows > -0 server0.example.com > -4 server1.example.com > -8 server2.example.com > -12 server3.example.com > -16 server4.example.com > -20 server5.example.com > -24 server6.example.com > - > And finally > -48 serverx.example.com (everything older then) > . > * Now the client will load a NZB and select the group and send HEAD > requests for every message-id > * the client now knows the injection-date of the message > * The client calculates from localtime to injection-date(GMT) > * When the article is between 8-12 hours old the client will send the > BODY request to server2.example.com > > Using a combination of memory and flash technology I probably would be > able to lower disk IO up to 50% while doubling capacity during peak > moments (wild guess). > A problem that needs a workaround is connection accounting. > > Your help and ideas are very much appreciated. You are just asking the user to do the work your servers should be doing. Why on earth would you push that responsibility off to the client when it means getting all the major newsreaders updated to support a very odd and strange client side load distribution system? > With kind regards, > Sebastiaan Jansen > > KPN > The Netherlands > Sebastiaana pointJansen at kpn.com I don't really grasp what you are thinking here. You are suggesting the client do server load balancing for you by distributing the user load across the servers based on the age of the article they are fetching???? First off, age based balancing is a very poor way do do load balancing for Usenet because I/O is not distributed evenly by age. The bulk of the user access is for newer articles. If you graph user bandwidth load vs age of articles accessed, you see the peek is for newer articles and fades with age. In your example, it means that your server0 and server1 could end up with 80% of the total load so it wouldn't be balanced at all. To adjust for that, your server would have to send out a different list to each client, or it would have to skew the range per server where .5 day old articles could be on server0, 1 day old on server1, 2 day on server2, 4 day on server4, or something like that. You would have to manually adjust those age limits to manually balance your load (or write some very smart automatic load testing and balancing code). You could do better just using DNS load balancing and you can do that in 10 minutes seconds without anyone having to change their newsreader so I don't grasp what you are thinking here. Was the point of doing the age based load balancing an attempt to improve caching on the servers since the same articles would get fetched from the same servers in theory? If you think that will work, you need to implement it on you side, instead of expecting a 1000 different clients to be modified just to implement your private version of load balancing to solve your servers load problem. Create a new layer of front end load balances in front of your dreaderd server to perform the age based balancing for you. This layer of front end servers are mostly just routers with little disk space though they will need a way to find the age of articles quickly so you have to set up yet another database to make that happen. Good luck with that. :) But at least that's better than expecting 20 different newsreader authors to write that code for you in their clients! Distributing load over servers is a problem that every big Usenet site has been dealing with for decades now. Welcome to the game. :) There are many approaches, but they are always implemented on the server side. There is no advantage to having the client do your load balancing for your and plenty of problems - mainly that it's hard to change how your system works if you have to get the clients updated every time you want to make a change. If your backend spool servers are hitting their bandwidth limit, and all this idea was a way to try and solve it by making your front end servers do more caching, sorry, it's not likely to work. You have to buy more and/or faster backend disks. That's the only real solution. Memory caching of articles doesn't tend to work for Usenet servers because there are too many articles and the access is too random to help much. The memory cache would have to be huge before it would do much good - and at the cost of that much memory - it's far cheaper to buy more disks instead. Front end disk caching of popular articles makes little sense because that just moves the disk I/O load from your large array of back end disks, to some much smaller number of front end server cache disks. If the bandwidth was too great for all the back end disks working in parallel, how the hell is a far smaller number of disks on the front end servers going to handle the same load? Solid State drives might be a solution to make frontend disk cashing work, but I suspect that by the time you have added enough of these expensive drives to do some good, you could have done it cheaper just by buying more backend disks. The good news is that you get longer retention for "free" when you buy more disks to solve the disk I/O bandwidth problem! :) Usenet is a disk I/O intensive database application. If you sell 10 Gbit of Load to your customer base, you shouldn't be surprised to find that you need to build a disk server back end that can support a total of 10 Gbit of I/O load. :) There are no easy ways around this. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20091208205540.236$nK@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mailReferences:
<4b184692$0$14130$703f8584@textnews.kpn.nl>Show Full Headers
Complete Article Headers
Message-ID: <20091208205540.236$nK@newsreader.com>
Subject: Re: usenet optimalisation idea for compact high bandwith env
Date: Wed, 09 Dec 2009 01:51:09 +0000
From: curt@kcwc.com (Curt Welch)
References: <4b184692$0$14130$703f8584@textnews.kpn.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com l6uDHy.fR2hR0C0U9Vf4@yVsc8f6Apm6Ylpfw8/=9x_,C=N
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 166
NNTP-Posting-Host: 82633028.nr5-q1.newsreader.com
X-Trace: DXC=SL8[i<RQ3ANl`a:gl1[Z2IbgZaH`e<A[IZ?:i9<JJBSNIMH@FneaeNBiJ;
iV2YAoGE7R=FeGVh_SB; 2PP]XVESnM
X-Complaints-To: abuse@newsreader.com