Article View: news.software.nntp
Article #82329Re: usenet optimalisation idea for compact high bandwith env
From: Sebastiaan Jansen
Date: Wed, 09 Dec 2009 23:09
Date: Wed, 09 Dec 2009 23:09
220 lines
11877 bytes
11877 bytes
Curt Welch schreef: > newsmaster <newsmaster@planet.nl> wrote: >> Hi >> >> I would like to share an idea, and Iâm 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) donât 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 SANâs exporting lunâs to all hostâs 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 callâs 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 weâre 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 youâve a mission >> to kill polar bears). >> >> I would like to try to steer the userâs interaction with the servers >> while he/she's downloading a specific set of messages, without the need >> for user input/selection. > > Why? Because I'm told my very expensive loadbalancers can't do that based on the users request data. And I currently believe that there is nobody accessable in this universe who can write a affordable system for this that will be able to perform under the stress of my users :-) > >> 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 >> rfcâs > > Seems like a bad idea to me. I'm trying to understand your reasons (please read next) > >> * Client startâs and connects to primary NNTP server hostname. >> * Client sendâs: 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? > We have a redundant loadbalancer distribute load across readers boxes right now. And that will stay. I only want to help the client make the decision where it can get the body, the most optimal way. >> With kind regards, >> Sebastiaan Jansen >> >> KPN >> The Netherlands >> Sebastiaanâa pointâJansen 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). server0 etc will be n+1 loadbalancen virtual server ip adresses on a highend network loadbalancer. I'm activly using the usage pattern on older article, those already are on cheaper sata disk spools. Getting 80% load done on a (few as possible) server(groups) serving a large quantity from ram cache would be perfect. If 50% of that 80% is served from ram cache it would save me two racks full of 10k disks instantly, those disks only serve the hunger for IO capacity on the spools. Don't worry about the capacity of those server doing caching. 10Gbit Nics, a lot of ram, fast multithreaded CPU's and 8Gbit FC to the spools will do it. > > 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! Don't take this wrong, I'm very thankfull for everybody working on usenet. Use the power of users. Make the user expect from their software provider to implement this option. Rebuild a opensource usenet client to support this optimalisation, brand the client, give a users who uses "my" favored client 10x the normal speed while downloading from it's ISP Free usenet server. (he will save some USP bucks by changing his NZB client) If popular usenet clients follow, the rest probably also follows. > > 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. I've no problems loadbalancing my traffic, even when the number of connections triple. > > 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. > I want to use RAM in my frontend servers. The list price of a "backend" is 250.000 (I already got four, and the business case for number five and six is on the printer), but if we can make usenet more efficient that would favor me and probably the rest of the planet. > The good news is that you get longer retention for "free" when you buy more > disks to solve the disk I/O bandwidth problem! :) > It would be a great idea if older retention would only be maintained a few times instead of having 10 USP in a country/region have thousands of disks spinning doing almost nothing for the sake of having 300+ days of binary retention. Make a ISP/Telco happy by caching 80% of the traffic and save network costs and let the USP supply added retention, and save on traffic spending. > 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. >
Technical Details
Message-ID:
<4b202e2a$0$14120$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!novso.com!213.75.85.109.MISMATCH!pfeed09.wxs.nl!newsfeed.kpn.net!pfeed14.wxs.nl!pfeed15.wxs.nl!not-for-mailReferences:
<4b184692$0$14130$703f8584@textnews.kpn.nl> <20091208205540.236$nK@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <4b202e2a$0$14120$703f8584@textnews.kpn.nl> Subject: Re: usenet optimalisation idea for compact high bandwith env Date: Thu, 10 Dec 2009 00:09:21 +0100 From: Sebastiaan Jansen <anon+@fake.nl> References: <4b184692$0$14130$703f8584@textnews.kpn.nl> <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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!novso.com!213.75.85.109.MISMATCH!pfeed09.wxs.nl!newsfeed.kpn.net!pfeed14.wxs.nl!pfeed15.wxs.nl!not-for-mail User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <20091208205540.236$nK@newsreader.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Lines: 220 NNTP-Posting-Host: 85.146.99.19 X-Trace: 1260400170 textnews.kpn.nl 14120 85.146.99.19:56599 X-Complaints-To: abuse@planet.nl