LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2004, 02:40 PM   #1
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Practical limit to the number of hosts on Apache?


Hello all!

One of the clients I do work for hosts about 500 websites across 13 windows servers. He has public IP's for each site. Right now his setup fills an entire rack at a hosting facility. He woiuld like to scale his gear down to a half a rack, so he needs to get down to 6 or fewer machines from 13. I suggested Apache webservers, assuming that they could handle larger loads than IIS on win2000 allows.

I expect that there isn't an absolute limit to the number of hosts on a linux based server, but can anyone suggest a practical limit of how many sites one machine can hold? In the 6 machines, The total load would be like 500 sites, 6 databases, 2 email servers, and 2 DNS servers. I was thinking of putting about 250 sites on each of 2 machines, run 1 database only server, 2 DNS/email servers, and seeing how that behaves.

There would not need to be any virtual hosts, this guys does have 2.5 class C blocks of usable public IP addresses, so that won't need to play a part in your answer. Thanks for your help.

Peace,
JimBass
 
Old 11-09-2004, 04:15 PM   #2
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Hell, I'd just virtual host all 500 of em on one box and sync the server to a mirrored server for load balancing and failover. But what your doing sounds sensible as well, more work but sensible. And the idea of using a dedicated DB server and some redundancy in your DNS is a good idead as well. Sounds like your on the right track. I haven't seen an upward limit on what apache can do with Vhosts but I have seen servers that have over 1000 on one, if your going to have 250-500 vhosts on one box consider using a seperate vhosts file just to keep things organized, otherwise your httpd.conf is gonna get REALLY long and confusing.

Good luck,
linux_terror
 
Old 11-09-2004, 04:54 PM   #3
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
I'll second the above post about having a seperate vhosts file.

Really the number of servers a box can successfully serve is variable. For instance if 499 of the sites only do a couple of thousand hits a month but another does 100,000 a day you might want to set it up having 499 on one box and the other on a box by its self.

I would take a look at the average traffic each of the 500 sites takes in a month, week, day and decide on the server layout in that manner.

Also, it depends on the hardware your running the server on. A dual Opteron or Athalon 64 with 2GB of memory can deal with a hell of a lot more load than a p4 2.5Ghz with 1GB of ram.

As you can see this is a fairly complex question. I would google "apache performance tuning" or something similar and compare your specs and traffic with what others have and go from there.
 
Old 11-09-2004, 09:46 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Thanks for the input. None of the sites are actually "busy", so I'll probably split them by traffic onto the 2 machines. One of the new machines is being delivered to the client on Monday, and it will be a dual processor of some sort with 2 Gb of RAM, so it is on the higher performance end of things. I'm very glad to know someone has seen over 1000 sites work on a single machine!

Also I many be misunderstanding something - I thought virtual hosts only came into play when you wanted multiple sites to show up under 1 IP address. Each of the sites have their own IP under his current setup, and I thought it would be fine to continue that.

Another reason to keep it is simply that the DNS servers (even though they are windows) are running BIND 9.2, so I can just wholesale import the named.conf and all the files, only change the line in the named.conf that reads "c:/bind/named" to "/var/bind/named/" or whatever the path to the files should be.

I know nothing about the database side of things in either win or linux, so I'm going to leave that to the folks that do that work. All I have to do is configure the systems and get them operational.

Thanks,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to limit number of items in .recently-used neo_in_matrix Linux - Newbie 2 06-09-2005 11:04 AM
limit number of hosts behind Proxy anoopshukla Linux - Networking 0 02-04-2005 04:32 AM
limit on number of groups stolb001 Linux - General 1 07-08-2004 02:37 AM
limit on number of groups stolb001 Linux - General 0 07-07-2004 02:19 PM
limit hosts odious1 Linux - Security 2 10-30-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration