Article View: news.software.nntp
Article #82330Re: usenet optimalisation idea for compact high bandwith env
From: Curt Welch
Date: Thu, 10 Dec 2009 00:21
Date: Thu, 10 Dec 2009 00:21
342 lines
18185 bytes
18185 bytes
Sebastiaan Jansen <anon+@fake.nl> wrote: > Curt Welch schreef: > > 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? > > 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 :-) Writing custom load balances for Usenet is fairly easy. After all, you are asking the news client authors to do for you are you not? The only difference if you did it yourself is that you would be running it locally with fewer machines instead of the thousands of machines scatter in the users locations doing it for you. And I still don't grasp why you think this load balance scheme will even help you if you already have high end load balances distributing user load across your front end boxes to begin with. So just do it like this on your end instead of expecting the end users to update their software: users -> [your load balancer] -> [new array of NNTP switches that perform your age based balancing invisible to your users] -> [ your dreader servers ] ... > >> 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. > > I'm trying to understand your reasons (please read next) Well let me be more clear. 1) there are too many clients and most will NEVER be updated to solve YOUR problem. And most the users, won't bother to update their version to the new version even if there is a new version that supports your load balancing scheme. The conversion will be so slow, it will take YEARS to get 50% of your users converted. How much will this scheme actually save you when only half your users are using it after 5 years? 2) you are suggesting only 1 load balancing scheme in your load balance protocol - age based. There are many others possible, like message-id hashes, and group hashes, and article number hashes and group+article number hashes and user name hashes, and random distribution with weighting. And there are lots of different hash algorithms to choose from such as ones based on consistent hashing which deal with the problems of servers going off line graceful without blowing your cache. What if other sites want to do the same but use a completely different hash algorithm for the load balancing? How many times will the protocol and all the clients have to be rewritten to support 20 different load balancing schemes from 20 different companies? In short, unless your scheme provides a huge benefit to the end user, they won't switch clients, and it won't do you any good. > >> * 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? > > > > 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. So server0 and server1 etc that the users connect to are load balancer IPs? What's the point of this??? You are confusing me big time. Assuming all your users did switch to this system, why would it make your server work better? > >> 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). > > 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. So you are willing to buy enough ram to cache something like 20% of your entire spool set???? And that's cheaper for you than buying disks??? Do you serve binaries are are you running a text only server???? The problems of the two are very different. > 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. Yes, but to serve 50% of that 80% from cache you basically need enough ram cache to equal 50% of that 80% of the space! Is that seriously cheaper for you than buying a rack of disks? > 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. Oh, don't get me wrong either. I don't believe you have any evil intent of trying to get someone else to write code to sovle your server problems so you don't have to. I assume you believe this will make Usenet better for everyone. I just don't grasp why you think that. > 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. I really don't grasp what you are thinking here. Most people who pay for Usenet are able to max out their bandwidth now. It's not possible to give them 10x more than they already get. All you can do, is throttle the users that don't use your favored client to 1/10th the speed they could be getting if you made your servers work correctly. Are you running a pay service or are you running a free server or something? I'm just asking because I can't grasp what you are thinking and why you think distributing load user over already load balanced IP by age would help you or anyone else. > (he will save some USP bucks by changing his NZB client) > If popular usenet clients follow, the rest probably also follows. Yes, if this technique saved you big money on your servers because you didn't have to invest another 250K in hardware, you could pass that savings on to the users in terms of an incentive discount one way or the other And if the incentive was large enough, they would likely switch. But I don't grasp yet why you think this will save you money at all. What problem exactly do you see this solving for you? How is it going to save you a rack of disks? > > 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. Then what on earth is this scheme of yours going to save you and why? > > 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. All of us that run large servers are _constancy_ looking for ways to change our configuration to make the cost of the service we provide cheaper for us so we can be more competitive (or just stay competitive) in the market. If there were a change to the NNTP protocol that would allow all of us to significantly reduce the cost of our service, I would be all for pushing the idea of an NNTP protocol change to add some sort of load balancing role on the clients side. I don't see however how your suggested protocol change is going to save you, or anyone, any significant money. > > 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. That's already happening in the industry. It's been happening for a decade or so now has the distributed nature of Usenet slowly disappears as servers continues to get larger and fewer. Mayby you part of the world is still a bit behind the curve on Usenet? > 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. Ok, so you are suggesting that some of the servers in the list are located and run by one company, such as an ISP, and the longer retention servers are run by another company, like a USP located in another location? So this gives the Usenet provider the ability to offer longer retention to their clients by redirecting to a different server for those articles? That is a totally different scheme than what I thought you were implying. I thought you were saying that all the servers in the list would be YOUR servers (or your load balancer which made no sense to me). I guess you really need to explain _exactly_ why you think this is good for you, your users, or for Usenet. I'm still a bit lost as to what you are suggesting and why you think it's good. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20091209192534.879$gQ@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!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!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> <20091208205540.236$nK@newsreader.com> <4b202e2a$0$14120$703f8584@textnews.kpn.nl>Show Full Headers
Complete Article Headers
Message-ID: <20091209192534.879$gQ@newsreader.com>
Subject: Re: usenet optimalisation idea for compact high bandwith env
Date: Thu, 10 Dec 2009 00:21:02 +0000
From: curt@kcwc.com (Curt Welch)
References: <4b184692$0$14130$703f8584@textnews.kpn.nl> <20091208205540.236$nK@newsreader.com> <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!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!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 UmNtQ2b9P-LA3AwjxPvpLxGh9XRP/=4VV@5g_t3z+lbHPb
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: 342
NNTP-Posting-Host: 5a878ed0.nr5-q1.newsreader.com
X-Trace: DXC=nORa=cZWgl\UTcBl^9IMC]bgZaH`e<A[YZ?:i9<JJBS^DW>E<3nK0lSiJ;
iV2YAoGUV\j4=[VfXeRgeC9oKA9PV]
X-Complaints-To: abuse@newsreader.com