LinuxQuestions.org
Review your favorite Linux distribution.
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 02-09-2011, 03:34 AM   #1
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Pros and Cons of Vitural Hosting vs Separate machine -- need opinion


I am having vitural hosting around three websites using Centos.

I need to type in the full domain name include www to enter the 2 of the vitural hosting sites.

Does anyone have any advice or guidance about the Pros and Cons of vitural hosting vs separate machine?

I got a questions about static IP. Assume I having a linksys router with port forwarding function, I have three seperate machines with different private address connect to the same linksys router. Can I entry all private address forward to port 80? Does it work?

If I insist to host website on three machines, does that mean I need 3 static IP and 3 linksys router?

I got two conventional web services only showing information but one got mysql db for user to input data, thats why I asking if it is good idea to seperate web page on different machines.

Last edited by fhleung; 02-10-2011 at 08:01 PM.
 
Old 02-09-2011, 03:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
As long as you aren't going to over load the server then virtual hosting is a no brainer. Using extra hardware in lieu of 8 lines of code would never make any sense on conventional web services. There are exceptions, but you'd already know if you were such an exception I'd wager.
 
Old 02-09-2011, 05:00 AM   #3
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,259

Rep: Reputation: 270Reputation: 270Reputation: 270
Cost: It's going to be far more expensive to buy and run three separate systems working at, say, 20% loading than one system Virtual hosting at 60%.

However, with one system you have a single point of failure; If the system develops a hardware fault, you could loose all three virtual systems.

The probability of this happening is fairly low if the system has been running fine for some time. You've no doubt got RAIDed, hot swap disks which increases reliability (Disks, with moving parts, are the most likely things to fail)

If you had two systems which shared the disks you could have the VMs fail over to the second system in the event of a fault (OK, OK, so I'm now getting outside my feeble understanding of DR and Clustering but I reckon it can be done some how. I'm sure I've heard of Dynamic VM migration working in this scenario.)

My

Play Bonny!
 
Old 02-09-2011, 06:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Quote:
Originally Posted by Soadyheid View Post
Cost: It's going to be far more expensive to buy and run three separate systems working at, say, 20% loading than one system Virtual hosting at 60%.

However, with one system you have a single point of failure; If the system develops a hardware fault, you could loose all three virtual systems.

The probability of this happening is fairly low if the system has been running fine for some time. You've no doubt got RAIDed, hot swap disks which increases reliability (Disks, with moving parts, are the most likely things to fail)

If you had two systems which shared the disks you could have the VMs fail over to the second system in the event of a fault (OK, OK, so I'm now getting outside my feeble understanding of DR and Clustering but I reckon it can be done some how. I'm sure I've heard of Dynamic VM migration working in this scenario.)

My

Play Bonny!
He means, I think, virtualhosts in apache, not virtual machines.
 
Old 02-09-2011, 06:34 AM   #5
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 41
for generic websites almost all HostServiceProvides use one-pc-many-sites config. In other words one hardware run one web server, which in case serve many sites that on it's hdd.
term "virtual hosting" or to be more precise "virtual hardware server" refer to virtualization technology where real hardware split itself via software to many sandboxed mini configurations(e.g. 1xCPU 3000=10xCPU 300). This is like you rent a flat in hightower.

+ in renting full separate web server(or collocation) is:
your own system configuration
increased security(it's not secret that most webcracks is done on one site and then affect others on one server).
more processing power.
better hardware life(we assume that it be reduced load due to less projects hosted)
 
Old 02-09-2011, 06:39 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Quote:
Originally Posted by sunnydrake View Post
for generic websites almost all HostServiceProvides use one-pc-many-sites config. In other words one hardware run one web server, which in case serve many sites that on it's hdd.
term "virtual hosting" or to be more precise "virtual hardware server" refer to virtualization technology where real hardware split itself via software to many sandboxed mini configurations(e.g. 1xCPU 3000=10xCPU 300). This is like you rent a flat in hightower.

+ in renting full separate web server(or collocation) is:
your own system configuration
increased security(it's not secret that most webcracks is done on one site and then affect others on one server).
more processing power.
better hardware life(we assume that it be reduced load due to less projects hosted)
Again, I'm pretty sure that's not the type of "virtual" he means.
 
Old 02-09-2011, 11:34 PM   #7
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
Quote:
Again, I'm pretty sure that's not the type of "virtual" he means.
nevermind.

I got a questions about static IP. Assume I having a linksys router with port forwarding function, I have three seperate machines with different private address connect to the same linksys router. Can I entry all private address forward to port 80? Does it work?

If I insist to host website on three machines, does that mean I need 3 static IP and 3 linksys router?

I got two conventional web services only showing information but one got mysql db for user to input data, thats why I asking if it is good idea to seperate web page on different machines.
 
Old 02-10-2011, 04:12 AM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,259

Rep: Reputation: 270Reputation: 270Reputation: 270
@ Chris
Quote:
Does anyone have any advice or guidance about the Pros and Cons of vitural hosting vs separate machine?
It didn't come across as a Virtual hosting in Apache question. Looked like a single virtual host box versus three free standing boxes. (You may have guessed at this point that I'm from the hardware side of the Force )

Play Bonny!
 
Old 02-10-2011, 04:44 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Quote:
Originally Posted by fhleung View Post
nevermind.

I got a questions about static IP. Assume I having a linksys router with port forwarding function, I have three seperate machines with different private address connect to the same linksys router. Can I entry all private address forward to port 80? Does it work?

If I insist to host website on three machines, does that mean I need 3 static IP and 3 linksys router?

I got two conventional web services only showing information but one got mysql db for user to input data, thats why I asking if it is good idea to seperate web page on different machines.
WHat do you mean "nevermind"??? you have your own question, go start your own thread, don't hijack someone elses.
 
Old 02-10-2011, 07:00 AM   #10
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 41
Quote:
Originally Posted by acid_kewpie View Post
Again, I'm pretty sure that's not the type of "virtual" he means.
second part of answer still apply
 
Old 02-10-2011, 08:01 PM   #11
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
I got a questions about static IP. Assume I having a linksys router with port forwarding function, I have three seperate machines with different private address connect to the same linksys router. Can I entry all private address forward to port 80? Does it work?

If I insist to host website on three machines, does that mean I need 3 static IP and 3 linksys router?

I got two conventional web services only showing information but one got mysql db for user to input data, thats why I asking if it is good idea to seperate web page on different machines.
 
Old 02-11-2011, 02:17 PM   #12
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 41
hmm in theory you should use something like this (on linksys router or PC based-gateway):
www.site1.com <r/g> site1.local_server1:80 or other port
www.site2.com <r/g> site1.local_server2:80 or other port

multiple use port 80 on router/gateway should be fine.
Problem is can you add rule for port forwarding and dns name on r/g?
 
Old 02-11-2011, 06:43 PM   #13
tenmei08
LQ Newbie
 
Registered: Jan 2011
Location: Roatan Honduras
Distribution: Debian Lenny, Squeeze, Ubuntu Various
Posts: 13

Rep: Reputation: 5
My opinion for what it's worth

Parsing this, I see: CentOS, 3 web sites, Virtual hosting

First, Apache on one machine can handle multiple virtual hosts without a problem using a single IP address, whether it's a static IP to the box or a local IP from the linksys router.

Port 80 is not a problem in either configuration, if only using a single box. It could be a problem directing a router to send port 80 traffic to multiple machines, but that isn't necessary. Keep things simple instead.

Hosting websites on three machines can be done by using reverse proxy, but that's not needed, as I understand the question.

Finally, I have 8 or 10 websites running as virtual hosts on a single Debian box, all using php, mysql, etc. without a problem, so I don't think it is a concern.
 
Old 02-11-2011, 11:55 PM   #14
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
Thank you all the reply.

Quote:
hmm in theory you should use something like this (on linksys router or PC based-gateway):
www.site1.com <r/g> site1.local_server1:80 or other port
www.site2.com <r/g> site1.local_server2:80 or other port

multiple use port 80 on router/gateway should be fine.
Problem is can you add rule for port forwarding and dns name on r/g?
Problem is can you add rule for port forwarding and dns name on r/g? I think a home use linksys router not capable to do that unless a PC based gateway using linux, isn't it?
 
Old 02-12-2011, 01:44 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
I've never seen layer 7 forwarding on a home router before, really wouldn't expect it ever personally.
 
  


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
ubuntu pros/cons mrmilne Ubuntu 4 11-02-2009 08:57 AM
pros/cons of getting a G5 Tomasfuego Linux - Hardware 4 06-07-2005 04:53 AM
Gnome 2.8 Pros and Cons maelstrom209 Linux - Software 0 01-27-2005 02:36 AM
Pros and cons of upgrading to 2.6? Darklion Slackware 17 12-10-2004 02:35 AM
Slackware pros and cons DesertWolf0132 Linux - Newbie 4 10-14-2003 10:14 PM

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

All times are GMT -5. The time now is 09:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration