🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82349

Re: usenet optimalisation idea for compact high bandwith env

#82349
From: Sebastiaan Jansen
Date: Fri, 11 Dec 2009 23:05
156 lines
9979 bytes
Curt Welch schreef:
> Sebastiaan Jansen <anon+@fake.nl> wrote:
>> Curt Welch schreef:
> 
>>> So again, you are suggesting the users distribute their load across
>>> your load balanced servers why exactly???  Why will this make your
>>> servers work better and save you money that you can then pass along to
>>> the users to offset the trouble you will cause them by forcing them to
>>> support a new NNTP protocol extension?
>>>
>> I'm hoping to get some win by lowering the cache preasure on the
>> frontends, but a real life scenario would need to be tweaked for optimal
>> rendement (the hours where the usage dencity is the highest). So I'm not
>> deciding how it should be configured yet.
>> RAM is rather cheap, and a good caching algoritm on the server would be
>> able to make something out of it.. what the perfect key between RAM
>> versus serving hours of retention should be, I can't guess.
>> You can get 72 GB DDR3 server RAM for 2500 USD. I'm guessing my users
>> only actively read 1/3 of the feed. So 72GB would make a full hour. I
>> don't know what the memory->NIC output will be when I higher the
>> preasure to 4 hours per 72 GB config.
>> Maybe add-in cacheFS on top of my FC shared spools and use SSD's
>> combined with the 72GB RAM.
>>
>> You have to look at it this way, users are being upgraded to
>> eurodocis3.0 VDSL2 and fiber-to-the-home internet. We run a free binary
>> uncaped news server with a full retention over 30 days and have a daily
>> usage which I can't tell because of politics, but it's significantly
>> large. In the next 2-3 years that bandwith usage will double.
>> All IO caching mechanism's in the backend failed, and all caching
>> mechanism's in the frontend have failed.
>>
>> I believe it makes more sence to extend usenet and setup+tweak frontend
>> caches, than writing loadbalancers/switches that can do near atomic age
>> based redirecting under this load, or is it a good/accepted solution?
>>
>> optimizing to serve 20% percent from cache would take out 2 disk
>> backends in the future.
>>
>> Thank you.
> 
> Ok, that's all clear now.
> 
> But again, you really can't get your users to solve your server problems
> for you by pushing the code to distribute load from your infrastructure
> onto the users machine.  Whatever they can do on their machine, you can
> always do a lot better with your own hardware on your side.  Does it get
> expensive at times to handle extremely high volume loads?  Of course.  And
> if you are offering free binary usenet, it will get very expensive if you
> want to continue to provide good performance.
> 
> The only justification for having the users deal with load balancing is if
> the multiple machines they are connecting to are located in different
> locations so then network path from them to the machine is a factor. But if
> all their connections are to your same infrastructure, there is NOTHING
> they do that way, that you can't do for them on your end by developing
> better technology on your end.

I would be able to route users to the best path if I was needed to, 
without this

> 
> Most large USPs custom develop their own infrastructure.  They don't just
> try to make it all work with off the shelf technologies.  Giganews as I
> understand it even has some patents on some of their caching technologies
> for load distribution in their infrastructure.
> 
> Building high performance distributed infrastructures is tricky business.
> And when you rely on caching to be working in order to serve your load, it
> gets even trickier.   There are events that can causes your caches to
> become useless such when one of the critical caching servers dies on you
> and the load has to shift.  If events happen like that in a peak load
> period then suddenly  your disk IO becomes saturated and backlogged because
> the cache isn't effective, and then your news feeds to the servers also
> start to backlog and things just go down hill from there and at times might
> not be able to recover (depending on your infrastructure design) until the
> user load dies down 6 hours later.
> 
I think I'll be able to manage this

> If you are running diablo, your front end dreaderd boxes _are_ acting as
> NNTP switches carring your entire load already.  THer's nothing "atomic
> age" about it.  CPUs and networks are fast these days and a single box can
> push a very large load when it's only acting as an NNTP router.
>
I'm interested in this solution,

> So what you can to do, is build another set of front-end boxes in front of
> your current front ends that act as NNTP routers to implement all the
> request routing decisions needed to implement whatever load distributing
> you want to try and use.  These front end boxes need no disks space at all
> - they can net boot off some other server.  They don't need any extra ram
> because they aren't doing any caching - they are just CPUs pushing bits to
> the right places.  You need less of these than you currently have dreaderd
> front ends because the dreaderds have a lot of disk load serving headers as
> well as acting as article switches to the spools.
> 
> You then have total control over your load distribution.  You can change it
> hour by hour if the caching demands it.  You can change it in an instant to
> support putting new servers on line or taking servers off line
> automatically when they fail etc.
> 
> You can do group based hashing to distribute header load across your
> dreader boxes so a given dreaderd box is servering only a fixed subset of
> the groups so header caching has a better chance of working saving you disk
> IO on the header boxes.

do you have references that can help me? Or maybe something alike I can 
use as a basis to furter research? Using this hash based routing too 
cache boxes / frontends would be great if it doesn't lower performance. 
I needs to be able to filter 1 Gbit/sec of upstream request data, and 
almost near realtime I asume.

thx

> 
> You can add to this infrastructure another set of back-end article cache
> boxes which are themselves nothing but article fetching and caching
> machines and use your front end switches to hash the article fetches over
> the array of those caches boxes - maybe using message-id hashing instead of
> age since it's not easy to get the age of articles.
> 
> To keep the cache useful you might write the article cache code in those
> machines so that it only caches articles that are less then 48 hours old.
> So once they get the article, they will know it's age, and if it's old,
> pass it along to the front end but don't put it in the cache.  Whatever
> works.  When you have your own NNTP switching infrastructure in place
> controlling load balancing, you can change it whenever you think a
> different structure will work better.  If you spend a year getting all your
> users newsreaders changed to support the infrastructure feature you _think_
> will solve your problems, and then you find out you hit another wall and
> need the users to load balance a different way to solve the next problem,
> you have another long wait as you once again go out and beg the user
> community to add more features to support your infrastructure problems.
> 
> What's worse than having the user do the work that you should be doing on
> your end, is the fact that every company users a different infrastructure
> and will have different load balancing requirements.  So there is no single
> obvious protocol change than could work for everyone. It's a fix that you
> suggesting we push to the end users to fix only _Your_ load problems. It
> would do us absolutely no good at all.  We wouldn't use even if all our
> users were running clients that supported it because it's not a load
> balance algorithm that would be useful to the way we structured our
> infrastructure.
> 
Somethings need a working innitiative and time, to make sence

> No, it just just doesn't make any sense to ask the users to do the work
> your hardware should be doing.  All you are saving by asking them to go to
> all that trouble, is the cost of a small array of diskless 1U  NNTP switch
> servers.  A single NNTP switch can do 1 Gbit these days which means if you
> have 10 Gbit of traffic you need 10 of these small servers on your end to
> solve your load distribution problem and then you have complete control at
> all times over the load distribution algorithm for your infrastructure.
> 
A lot USP/ISP's use DSR I would think.
Technical Details
Message-ID: <4b22d04e$0$14128$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!multikabel.net!newsfeed20.multikabel.net!pfeed08.wxs.nl!newsfeed.kpn.net!pfeed14.wxs.nl!pfeed15.wxs.nl!not-for-mail
References: <4b184692$0$14130$703f8584@textnews.kpn.nl> <hff01g$9n7$1@news.trigofacile.com> <4b1c9b3e$0$14123$703f8584@textnews.kpn.nl> <20091209193839.067$2d@newsreader.com> <4b20a0eb$0$14116$703f8584@textnews.kpn.nl> <20091210101552.821$sR@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <4b22d04e$0$14128$703f8584@textnews.kpn.nl>
Subject: Re: usenet optimalisation idea for compact high bandwith env
Date: Sat, 12 Dec 2009 00:05:39 +0100
From: Sebastiaan Jansen <anon+@fake.nl>
References: <4b184692$0$14130$703f8584@textnews.kpn.nl> <hff01g$9n7$1@news.trigofacile.com> <4b1c9b3e$0$14123$703f8584@textnews.kpn.nl> <20091209193839.067$2d@newsreader.com> <4b20a0eb$0$14116$703f8584@textnews.kpn.nl> <20091210101552.821$sR@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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!multikabel.net!newsfeed20.multikabel.net!pfeed08.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: <20091210101552.821$sR@newsreader.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 156
NNTP-Posting-Host: 85.146.99.19
X-Trace: 1260572751 textnews.kpn.nl 14128 85.146.99.19:57558
X-Complaints-To: abuse@planet.nl