🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82335

Re: usenet optimalisation idea for compact high bandwith env

#82335
From: Curt Welch
Date: Thu, 10 Dec 2009 15:11
139 lines
9308 bytes
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.

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.

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.

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.

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.

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.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <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!novia!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!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>

Show Full Headers
Complete Article Headers
Message-ID: <20091210101552.821$sR@newsreader.com>
Subject: Re: usenet optimalisation idea for compact high bandwith env
Date: Thu, 10 Dec 2009 15:11:18 +0000
From: curt@kcwc.com (Curt Welch)
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>
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!novia!news-xxxfer.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 35c.uQe2Qo9qytUzPG-x8koVHdRVssOFB0dmZY4Bb=9fI/Gp_
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: 139
NNTP-Posting-Host: 16662d16.nr5-q1.newsreader.com
X-Trace: DXC=HPUbk[9[DXR@4aAK`D[aM]bgZaH`e<A[YZ?:i9<JJBS^ZAU:A?bN^>YiJ;
 iV2YAoGUILhHh\T]mhXfg1GGXL4dQS
X-Complaints-To: abuse@newsreader.com