🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #69522

Re: beta server

#69522
From: YottaNews Support
Date: Mon, 03 Oct 2005 15:59
34 lines
3045 bytes
On Mon, 03 Oct 2005 16:14:27 +0200, Francois Petillon wrote:

> No, your problem is mostly related to your architecture. If you have a
> prebuild xover, then all others requests may be wasteful.

That is the case.  My backend is what builds the xover line as it stores
the article.  The frontends pull the xover line.  It's already
pre-processed. The only thing needed is to store it on disk.  When a user
requests the xover it just does a read and then pushes to the client.  No
CPU is wasted processing anything.  The xover data is also stored in
chunks (lines x-y).  If the xover request overlaps more then 3 chunks the
frontend doesn't even need to look at the data at all except for the first
and last.  It just reads the whole chunk and pushes it out to the client.
One read, one write.  If I use mmap (planned for later) I could use a
single write (no read or tmp buffer).

In the case of 50 frontends. You have a handful of CPU cycles being used
on a single backend and 50 servers doing basically nothing.  In the
diablo/dreader method you have 1 server that pushes the whole head and 50
servers processing it.  You end up with an efficiently of N(x), compared
to N(1) for pre-build xovers. (N number of frontends, x amount of CPU to
process head)

The downside is that you can't xhdr for 'X-Google-Internal-Header:'...
Which may be nice, but not necessary for 99.99% of the people.

The plus side is I have 450 active connections (30 sec idle timeout) on a
binary frontend and it's using ~30% of it's CPU (2x 3Gh P4's). 

-- 
Steve
News Administrator
YottaNews.com/NNTPServer.com
Technical Details
Message-ID: <1128354937.84ab9121060217014b1a39d8028246f8@yottanews>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed-west.nntpserver.com!roc.nntpserver.com.POSTED!yottanews!not-for-mail
References: <1127976543.22bdd0709f9ffa5b1b596c9d99f1f2a5@yottanews> <o6gnj1duqm6pq30pbl5u468n2qn5aeqcjp@4ax.com> <1128006851.2f42395a9a0f8a8f778f9a073e8d1cbd@yottanews> <pan.2005.10.03.14.14.27.673188@fanfan.staff.proxad.net>

Show Full Headers
Complete Article Headers
Message-ID: <1128354937.84ab9121060217014b1a39d8028246f8@yottanews>
Subject: Re: beta server
Date: Mon, 03 Oct 2005 10:59:47 -0500
From: YottaNews Support <spamtrap@yottanews.com>
References: <1127976543.22bdd0709f9ffa5b1b596c9d99f1f2a5@yottanews> <o6gnj1duqm6pq30pbl5u468n2qn5aeqcjp@4ax.com> <1128006851.2f42395a9a0f8a8f778f9a073e8d1cbd@yottanews> <pan.2005.10.03.14.14.27.673188@fanfan.staff.proxad.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed-west.nntpserver.com!roc.nntpserver.com.POSTED!yottanews!not-for-mail
Newsgroups: alt.free.newsservers
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 34
NNTP-Posting-Date: Mon, 03 Oct 2005 10:55:37 EST
X-Abuse-Report: http://www.usenetabuse.com
X-Abuse-Notes: Abuse reports must be submited via the usenetabuse.com portal
 listed above.
X-Abuse-Notes2: Reports sent via any other method will not be processed.
X-Abuse-Notes3: Any other abuse reporting headers in this article are
 fraudulent.
X-Orginal-Message-ID: <Zvc0f.59818$Yi2.2120@roc.nntpserver.com>