Pros and Cons of Vitural Hosting vs Separate machine -- need opinion
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Rep:
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.)
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.
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)
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.
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.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Rep:
@ 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 )
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.
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.
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?
Distribution: Debian Lenny, Squeeze, Ubuntu Various
Posts: 13
Rep:
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.