🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Dan Tue, 10 Jul 2001 22:30
Setting up a server for 100k+ users
#53218
Author: Dan
Date: Tue, 10 Jul 2001 22:30
38 lines
2109 bytes
Hi,

I need to configure a pretty large news server with a full feed for probably
100k+ users,
and I was wondering what kind of advice you could give me for setting up
this scale
of a server.

In terms of hardware and software, we were looking at starting off with
around 300GB+ of storage (is this enough for a full feed? to store at least
2-3 days of posts?)... SCSI most likely, 2GB of ram... probably 1ghz
processor.... and running dnews as the software (need a web-interface for
users)
.... I've heard that full feeds can go from 300GB/day, so I was wondering if
there
are any possible alternate routes to go without cutting out all of alt.bin*

I would appreciate if you could recommend any good hardware configurations
(maybe specific models from specific companies as well that you have found
to be good for this sort of thing)
for this and what to expect in terms of system failures under these heavy
loads....
I've heard that using raid-5 is inefficient for a news server(which
raid-level if any
is best to use?), and was also wondering what you any other recommendations
anyone might have with pros and cons for each.

The system should be scalable for bandwidth and storage capacity as well..

Any information you could give me would be greatly appreciated,

thanks,

dan



Re: Setting up a server for 100k+ users
#53221
Author: Curt Welch
Date: Wed, 11 Jul 2001 00:38
121 lines
6146 bytes
"Dan" <newgroups_nospam@darpa.org> wrote:
> Hi,
>
> I need to configure a pretty large news server with a full feed for
> probably 100k+ users,

Is that 100K dial-up ISP custmers, most who won't even use Usenet, or is
that 100K high-speed usenet customers?  There's a huge difference between
those to extremes.

> and I was wondering what kind of advice you could give me for setting up
> this scale of a server.

Hire someone else to do it for you?  Outsouce insead of building your own?

> In terms of hardware and software, we were looking at starting off with
> around 300GB+ of storage (is this enough for a full feed?

If you can live with 1 day of retention it is.

> to store at
> least 2-3 days of posts?)...

Then you need more like 1TB of space.  And if you still want to have 3
days of retention 6 months for now, you should start out with more like
2TB now.

> SCSI most likely, 2GB of ram... probably
> 1ghz processor.... and running dnews as the software

Ugh.  Dnews. Good luck.  I've heard mixed things about that.  I've never
used it myself.   When you think "big server", no one thinks of Dnews
first.  I've heard a lot of good things about Dnews, but not in relation to
running a "large" site.

> (need a
> web-interface for users)

None of the large sites which provide web access use dnews as far as I
know.  But there aren't lots of options there.

> .... I've heard that full feeds can go from 300GB/day,

That's right.  And you realize that also means 30 Mbps of bandwidth
as well right?  And it doubles in size every 10 months or so.  Sometimes
faster.

> so I was wondering
> if there
> are any possible alternate routes to go without cutting out all of
> alt.bin*

Sure. Tons of options.  Just throw out what you can't afford.  You can
drop groups, or hierarchies, or filter by size.  All of these are common
tricks for getting the volume down and still providing something for
your users.  If you dropped all the binaries you would only need
2 or 3 GB per day and and your 300 GB server would give you 100 days
of retention.

> I would appreciate if you could recommend any good hardware
> configurations (maybe specific models from specific companies as well
> that you have found to be good for this sort of thing)
> for this and what to expect in terms of system failures under these heavy
> loads....
> I've heard that using raid-5 is inefficient for a news server(which
> raid-level if any
> is best to use?),

Raid 5 is very slow to write (2 reads plus 2 writes for each block you
write).  And you need a lot of IO to write all that news.  You can make
Raid 5 work, but you must have enough disk bandwidth to allow the server to
keep up.  This is a function of how much money you want to spend on this
server and how much you care if a disk dies and you loose some news that
you were going to delete in two days anyhow.  There are people that have
used Raid-5 on news servers, but not many.  raid-1 works better, but then
you need twice the disk space.

There are various ways to build in redundancy without using Raid of any
type.  You can run redundant servers for example.  Or do what Newsfeeds
does and just split up usenet and run different sections on different
servers (mp3s on one server, text on another, etc. etc.).  Then when a disk
dies, only one server is down while you repair it.  They run Dnews.  And I
think that says something about how hard it is to build a big server with
Dnews.

> and was also wondering what you any other
> recommendations anyone might have with pros and cons for each.

Usenet is a bitch to keep up with.  Whatever worked 6 months ago
no longer works today.  Every year you have to re-build your servers
and what you have to work with this year in terms of software and hardware
is never the same as what you were picking from a year ago.

This is even more true when you are trying to keep up with the bleeding
edge of a "full feed" server.

> The system should be scalable for bandwidth and storage capacity as
> well...

Sure, don't we all wish that.

News servers are always easy to scale.  You just thrown them out the window
every 9 months and buy new ones.  Make sure you have the budget for that
before you get into the business of running a news server.  Nothing scales
in this business for more than a year.  You have to constantly replace them
if you want to keep up.

> Any information you could give me would be greatly appreciated,

Would you like me to build and run a server farm for you?  Send me an
e-mail and I'll be happy to talk about it with you.

If you're going to use Dnews, talk to the Dnews guys and get advice from
them on hardware issues.  They should know more about what works best with
their software than anyone else.  And see if they can put you in touch
with other customers which are trying to do the same thing you are.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Setting up a server for 100k+ users
#53222
Author: Andrew Gierth
Date: Wed, 11 Jul 2001 01:27
81 lines
4212 bytes
>>>>> "Dan" == Dan  <newgroups_nospam@darpa.org> writes:

 Dan> Hi,

 Dan> I need to configure a pretty large news server with a full feed
 Dan> for probably 100k+ users,

100k+ of what sort of users? (it makes a huge difference)

The figure you need to estimate is the number of _concurrent_ users,
and the total reader bandwidth required; that will give you a better
idea of where to start.

(some extremes: 100k individual subscription users with 5GB/month
quotas might result in around 10k concurrent connections, consuming
around a gigabit of traffic; on the other hand 100k dialup ISP
subscribers could result in 300-1000 concurrent connections consuming
perhaps 5-15 megabits. These figures are somewhat speculative.)

 Dan> In terms of hardware and software, we were looking at starting
 Dan> off with around 300GB+ of storage (is this enough for a full
 Dan> feed? to store at least 2-3 days of posts?)...

In a word, no.

Current traffic figures are nearly 300GB for one day, so if you're
looking at keeping a full feed for 2-3 days then you should be looking
at a terabyte as a _starting_ point (remember that traffic levels are
always increasing).

 Dan> SCSI most likely,

consider fiberchannel

 Dan> 2GB of ram...

unlikely to be enough if you have a lot of concurrent users

 Dan> probably 1ghz processor.... and running dnews as the software
 Dan> (need a web-interface for users)

dnews is not the only web-interface.

There are some sizing suggestions on the dnews website. Take these
with a large grain of salt; their largest configuration shown, for
example, has insufficient network capacity provisioned to deliver
anything like reasonable performance to the stated number of users.

BTW, you'll almost certainly want to run a separate machine for
transit feeding, and you probably won't want to run dnews on that
(Diablo, Cyclone, NNTPRelay, etc. will be what you want there)

 Dan> I've heard that full feeds can go from 300GB/day, so I was
 Dan> wondering if there are any possible alternate routes to go
 Dan> without cutting out all of alt.bin*

You can't fit a quart into a pint pot; if you don't want to keep
the full feed then you will need to decide what not to carry.

 Dan> I would appreciate if you could recommend any good hardware
 Dan> configurations (maybe specific models from specific companies as
 Dan> well that you have found to be good for this sort of thing) for
 Dan> this and what to expect in terms of system failures under these
 Dan> heavy loads....

Expect a noticable rate of disk failures. :-)

 Dan> I've heard that using raid-5 is inefficient for a news
 Dan> server(which raid-level if any is best to use?),

raid-5 is fine provided that you understand its limits.

The main issue with raid-5 is that the write performance is somewhat
worse than raid-1 or raid-0. News servers have to do a lot of writes
to handle the incoming feed, but if your disk subsystem is adequate
for the task then the raid-5 overhead isn't a problem. Basically it's
a tradeoff between disk capacity and write performance.

-- 
Andrew.
Re: Setting up a server for 100k+ users
#53223
Author: Andrew Gierth
Date: Wed, 11 Jul 2001 03:41
77 lines
4265 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:

 Curt> Raid 5 is very slow to write (2 reads plus 2 writes for each
 Curt> block you write).

That's a gross oversimplification.

There are three basic modes of writing to a raid-5 array, depending on
the size and alignment of the write relative to the geometry of the
array.

Suppose for the sake of argument that you have a raid-5 volume of 6
disks. The layout of blocks on the array then looks something like:

    Disk1    Disk2    Disk3    Disk4    Disk5    Disk6
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+
   |  1  |  |  2  |  |  3  |  |  4  |  |  5  |  |  P  |
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+
   |  6  |  |  7  |  |  8  |  |  9  |  |  P  |  | 10  |
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+
   | 11  |  | 12  |  | 13  |  |  P  |  | 14  |  | 15  |
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+
   | 16  |  | 17  |  |  P  |  | 18  |  | 19  |  | 20  |
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+
   | 21  |  |  P  |  | 22  |  | 23  |  | 24  |  | 25  |
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+
   |  P  |  | 26  |  | 27  |  | 28  |  | 29  |  | 30  |
   +-----+  +-----+  +-----+  +-----+  +-----+  +-----+

and so on, where the 'P's are the parity blocks.

Now, suppose you perform a write involving some of the blocks in
the first row (i.e. 1,2,3,4,5,P). These are the three cases:

read-modify-write

   Suppose you're writing one or two blocks.
   e.g. writing blocks 1 and 2 is done by:
     - reading the current values of blocks 1,2 and P
     - XOR together the old values of blocks 1 and 2, their new
       values, and the current content of P; this gives the new
       content of P
     - write the new values of 1,2 and P
   So the total cost to write 1 or 2 blocks is 2 or 3 reads, a parity
   computation, and 2 or 3 writes

recover-write

   If you're writing half or more of the data blocks in a stripe at
   once, then the above method is inefficient.
   Instead, writing blocks 1,2,3 would be performed as follows:
     - read the current value of blocks 4 and 5
     - compute the new parity block from the new values of 1,2,3 and
       the old values of 4 and 5
     - write the new values of 1,2,3 and P
   So here the total cost is one read per _untouched_ block, plus
   one write per modified block and the parity block.

full-stripe write

   If you're writing all the data blocks in a stripe at once (i.e.
   writing blocks 1,2,3,4,5 all in one go), then this can be done at
   maximum efficiency with no reads at all:
     - compute the new parity block from the new data blocks
     - write the new data and parity blocks
   So here the only extra cost is the computation and writing of the
   parity block.

Now, which of these actually ends up happening will depend on a number
of factors: especially the block size and number of columns in the
array, the organization of the filesystem, the degree of write-behind
performed by the system, the effectiveness of any I/O optimizations,
etc.

-- 
Andrew.
Re: Setting up a server for 100k+ users
#53224
Author: Curt Welch
Date: Wed, 11 Jul 2001 04:28
22 lines
1696 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
>
>  Curt> Raid 5 is very slow to write (2 reads plus 2 writes for each
>  Curt> block you write).
>
> That's a gross oversimplification.
>
> There are ...

That's a gross overcomplication. :) (but it was interesting reading
anyway).

I'll rewite my statement.

         Raid 5 can be very slow to write (up to 2 reads and 2 writes
         for each block you write).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Setting up a server for 100k+ users
#53230
Author: bill davidsen
Date: Wed, 11 Jul 2001 12:24
64 lines
4133 bytes
In article <9ifl4a01i1l@enews3.newsguy.com>,
Dan <newgroups_nospam@darpa.org> wrote:

| I need to configure a pretty large news server with a full feed for probably
| 100k+ users,
| and I was wondering what kind of advice you could give me for setting up
| this scale
| of a server.

  It can't be done. I know of no possible configuration which would do
that. I am using one server for every 1200-1400 peak concurrent users,
and running very close to backplane capacity on a RISC server. Figure
1Mbit/user for DSL, your network connection is going to be interesting.
| 
| In terms of hardware and software, we were looking at starting off with
| around 300GB+ of storage (is this enough for a full feed? to store at least
| 2-3 days of posts?)... SCSI most likely, 2GB of ram... probably 1ghz
| processor.... and running dnews as the software (need a web-interface for
| users)
| .... I've heard that full feeds can go from 300GB/day, so I was wondering if
| there
| are any possible alternate routes to go without cutting out all of alt.bin*

  This is a troll, right? A full feed is indeed 300GB/day today. And
figure at least 1MB/user of physical RAM. And I don't know of anyone who
has gotten even 500 users on a dnews system, it seems to get confused.

| I would appreciate if you could recommend any good hardware configurations
| (maybe specific models from specific companies as well that you have found
| to be good for this sort of thing)
| for this and what to expect in terms of system failures under these heavy
| loads....

  Load has virtually nothing to do with it, unless you have a crappy
SCSI enclosure for your drives and they melt.

| I've heard that using raid-5 is inefficient for a news server(which
| raid-level if any
| is best to use?), and was also wondering what you any other recommendations
| anyone might have with pros and cons for each.

  RAID-5 is only slightly inefficient providing you have lots of drives.
If you think of doing 300GB with four 100GB drives, you lose. If you use
a reasonable config with lots of spindles the penalty pretty much goes
away, all your writes are to on-drive cache.

| The system should be scalable for bandwidth and storage capacity as well..

  Let's see, don't forget to add that you budget is <$10k, right?

| Any information you could give me would be greatly appreciated,

  This is either a troll or you completely don't understand how big news
is, and how much resource you need. If you get 2000 users on a system
and have any response you are doing well, 100K? Never. And when you say
1GHz CPU I assume you think you're running all this on a PC.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
At LinuxExpo Sun was showing Linux applications running on Solaris.
They don't get it, the arrow points the other way. There's a reason why
there's no SolarisExpo, Solaris is a tool; Linux is a philosophy, a
religion, a way of life, and only incidentally an operating system.
Re: Setting up a server for 100k+ users
#53242
Author: Dan
Date: Wed, 11 Jul 2001 17:51
38 lines
2165 bytes
This will be a service for dialup users as well as cable/dsl.... sort of
like newsguy.com...
So we would like to have some kind of web-integration and if we don't have
to write
it ourselves it would be better....Which other server software offers the
best expandability?
And do any of them have web-interfaces?

What do most large scale servers run on? How do their setups look like... or
where
would I go to find this sort of information?

I've seen some stats for a news server that basically pushes 60mbps
steady.... is that a reasonable
figure to go by as well?

Is raid-0 really an alternative for a news server? With the tendency for
disks to die... all the information
would be wiped out on each disk failure.... raid-1 is basically double the
cost..... so is it safe to say
raid5 is the best cost-effective solution while raid1 is the best solution
(but much more pricey)?

Dnews has an option to run spools across multiple drives.... do other
nntpd's allow similar functionality? (thereby
eliminating need for raid as well...)

How would you setup different sections on different servers? Would users
need to connect to multiple servers
or can this be handled by the server software as well?


thanks,

dan


Re: Setting up a server for 100k+ users
#53265
Author: Kjetil Torgrim Homme
Date: Thu, 12 Jul 2001 20:54
37 lines
2386 bytes
[Dan]

>   What do most large scale servers run on?

Custom code, Diablo, Typhoon/Twister (look at www.bCandid.com) or INN.

>   How do their setups look like... or where would I go to find this
>   sort of information?

Lots of servers for different tasks.  Here's one presentation:

    http://www.nntp.sol.net/sane2000/

>   Is raid-0 really an alternative for a news server? With the
>   tendency for disks to die... all the information would be wiped
>   out on each disk failure.... raid-1 is basically double the
>   cost..... so is it safe to say raid5 is the best cost-effective
>   solution while raid1 is the best solution (but much more pricey)?
>   
>   Dnews has an option to run spools across multiple drives.... do
>   other nntpd's allow similar functionality? (thereby eliminating
>   need for raid as well...)

Both Diablo and INN support this.  You don't need to use RAID at all
for the spool.  I'd use RAID 0+1 for important data, though.  (config
files and database)

>   How would you setup different sections on different servers? Would
>   users need to connect to multiple servers or can this be handled
>   by the server software as well?

DNS roundrobin or a hefty firewall with load balancing port forwarding
are two methods.


Kjetil T.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads