Changes

Jump to: navigation, search

VPS vs Dedicated

3,882 bytes added, 20:59, 6 June 2017
m
Protected "VPS vs Dedicated" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
Although I am somewhat of a new user to the VPS container world I thought I'd write a short article giving an overview of why use VPS container instead of dedicated servers for those of you who are involved in the hosting business or people thinking about leasing a VPS container server. Here I will address misconceptions I had about VPS container and talk about how my perspective on VPS container is changing.
= Why use Virtual Private Servers instead Who am I? This article originally written by [http://www.perkel.com Marc Perkel] - a new container user - expressing my overview of Dedicated Servers =OpenVZ from my perspective as a new user talking to other new users about my experience in learning this new environment. I am not an OpenVZ expert and I want to write this while I'm still new to OpenVZ so I can express my view from a new user's perspective. If you are just reading about container for the first time I am not that far ahead of you. This article is an attempt by me to give back a little to those who created this free software and give you new people an overview of the big picture as I learn this myself.
Like many == Why use Virtual Private Servers instead of you when I first heard of the idea of VPS I pictured it is some small lame server that is sold to 12 year olds trying to start hosting companies on the cheap. It had never quite caught my attention until I decided I needed a remote name server and all I needed was enough of a server to run bind, but didn't want to by a dedicated box just to do that. So I got a VPS based on Virtuozzo for $80/year and it worked great.Dedicated Servers ==
In Like many of you when I first heard of the process however idea of container I started understanding the VPS concept and pictured it became apparent as some small lame server that this is more that just a tool sold to 12 year olds trying to create little serversstart hosting companies on the cheap. The way It had never quite caught my attention until I see it VPS can replace dedicated servers in many situations in decided I needed a data center remote name server and do all I needed was enough of a better job than dedicated. You can actually give the customer more horsepower and better hosting than selling them server to run bind, but didn't want to buy a small dedicated boxjust to do that. (Of course big customers will still need their own serverSo I got a container based on Virtuozzo for $80/year and it worked great.)
In the process however I started understanding the container concept and it became apparent that this is more than just a tool to create little servers. The way I don't own see it container can replace dedicated servers in many situations in a data center business myself but I have and do a friend who does and I colo several servers therebetter job than dedicated. He has several racks of some old Celeron boxes with 512 mgs of ram and one or two 80 gig drives depending of if You can actually give the customer has any concept of backups, which most of more horsepower and better hosting than selling them don'ta small dedicated box. I'm looking at the racks of Celerons and P4s thinking that each rack could be consolidated into a single modern server and that the (Of course big customers would actually have a better will still need their own server than the one they are on now. And the cost saving is tremendous.)
= Advantages I don't own a data center business myself but I have a friend who does and I colo several servers there. He has several racks of VPS =some old Celeron boxes with 512 Megs of RAM and one or two 80 Gig drives depending on if the customer has any concept of backups, which most of them don't. I'm looking at the racks of Celerons and P4s thinking that each rack could be consolidated into a single modern server and that the customers would actually have a better server than the one they are on now. And the cost savings would be tremendous.
Most small dedicated servers are a waste == Advantages of resources. People buy bigger servers than they need and the excess capacity is wasted. These servers take both space an power which is expensive in a data center and you have hardware costs assiciated with each server that you have to recoup. People often don't do any backups so after several years the hard drive fails and they lose everything. And it's your fault for not backing them up in the first place.container ==
Most small dedicated servers are a waste of resources. People buy bigger servers than they need and the excess capacity is wasted. These servers take both space and power which is expensive in a data center and you have hardware costs associated with each server that you have to recoup. People often don't do any backups so after several years the hard drive fails and they lose everything. And it's your fault for not backing them up in the first place. Imagine a rack of 16 Celeron boxes with 80 gig drives being replaced by a Dual Core Athlox X2 with 8 gigs of ram and 4 500gb SATA 2 drives running in a raid 10 configuration. (Writing this in Feb of 2007 for future historians who will read this an and laugh at the old days when computers had just gigabytes.) The above server would cost about $2000 to build and only take 2U of space and use far less power than the 16 machines that are being replaced.
Note that I'm suggesting in this example only a 16 to 1 consolidation. Everyone has the same amount of ram. In reality the consolidation is many times higher because most of those using the Celerons are not using all the memory. Many are using only 1/5 of what they have and a lot of that is used by the individual kernels running. In OpenVZ there is one kernel for everyone.
Not Note also that many of these servers have idle time where the processor is doing nothing and they have lots of extra hard drive spave space that isn't being used. By consolidating these systems the free resources are combined allowing you to run many more logical servers that each have more resources than the individual servers. On a dedicated computer the user is stuck with an old slow 32 bit processor, a limited amount of ram, and an old slow hard drive with no backups. In a container that same user is running on a shared dual core 64 bit CPU sharing 8 gigs of ram with fast modern large hard drives with raid backup. That is a significant improvement over having their own dedicated box. So this is a better deal for the customer. === Administration Advantages ===
On If a customer needs you to fix something on their dedicated computer server you have to either know the user is stuck with an old slow 32 bit processor, root password or take the server down and boot from a limited amount of ram, rescue CD to get in and an old slow hard drive with no backupsfix it. You also can't access the customer's files without logging in to their server as root. In a VPS that same user is running on container you as host can enter their server at any time without a shared dual core 64 bit CPU sharing 8 gigs password. (Keeping the host environment very secure of ram with fast modern large hard drives with raid backupcourse. ) That is a significant improvement over allows you to do maintenance without having their own dedicated box. So this is a better deal for to look up the customerperson's root password.
== Administration Advantages = Ease of Setup ===
If Setup couldn't be easier as compared to building a customer needs you to fix something on their dedicated server . All you have to either know the root password or take do is type a few commands and the new virtual server down and boot from a rescue CD is ready to get in and fix itgo. You also can't access have the customer's files without logging in running while you are still on the phone taking the order. A dedicated box requires setup, installation, and often has to their server as rootbe scheduled. In a VPS you as host can enter their server at any This involves cost and time without a password. (Keeping container is ready instantly and easily. Any distro you want with all the host environment very secure of courselatest updates installed. When a customer places an order they want it now.) That allows With container you to do maintenance without having to look up the person's root passwordcan deliver it now.
=== Backup Advantages ===
Additionally you can access the customers files directly from the host environment. This allows you to run rsync scripts to back up all the virtual servers to external storage or backup servers without the customer being aware that you are doing sophisticated backups. Then when the customer calls you up in a panic and says, "I totally screwed up my server and deleted a bunch of files by accident. Can you get it back?" You can magically restore their lost data and you are forever their hero.
=== IP Allocation Advantages === Tired of allocating 4 IP addresses just to give the customer 1 usable? Or giving them 8 so they have 5 usable and most of them only use one? How inefficient is that? With OpenVZ you can allocate IP addresses individually so that if a customer only needs one IP then they get only 1 IP. But if they need 9 IP addresses you can give them exactly 9 of them. They can call you up and say I need one more IP and you can give it to them in seconds. On a dedicated server if you gave them a /29 vlan and they are using all 5 IPs and they need another one - that is a huge hassle. === Disk Space Allocation === On dedicated servers you have to install a big hard drive that is mostly wasted. If the customer wants backups then it's two hard drives. In OpenVZ you just allocate space in the raid array based on what the customer actually needs and they only use the space that they use rather than what's allocated. The "allocation" is really just a software limit and that is a line in a text file that you can instantly change the moment the customer needs more space. On a dedicatd box if the customer needs a bigger drive then it's a trip to the data center with a new drive and a few hours time to copy everything over and replacing the drive, not to mention the down time. === Memory Upgrades === Memory upgrades are as easy as hard drive upgrades. Just one command than the user has more ram. But what if the server is full and you don't have any more ram? No problem. Just copy the user's container (virtual environment) over to another physical server with rsync and start them up there. In only a few minutes you've migrated them to a new box and they are up and running. === Migration === Suppose a customer just needs a bigger server. Migration is easy in the container environment because the container is consistent between servers. You just copy over the files and start it up. You don't have to build a new server, install an OS, copy it all over, and then mess with it for an hour getting everything to work. === Emergency Procedures === Let's say that a server fries. With container and good backups you have more options. You can copy the backup of the container onto another server and restore it as of the last (nightly) backup. (I'm a backup freak - but it pays.) That gets the customers up instantly if they need that while a tech can go down there and fix the server with less pressure. This give you more options when bad things happen. === Load Balancing ===
Tired of allocating 4 IP addresses just OpenVZ allows you to migrate servers live from one physical server to give the customer 1 usable? Or giving them 8 so they another. I haven't yet done that but I have 5 usable done a shutdown, copy, and them most restart of them only use one? How inefficient is the container on another server and it's so easy to do that? With OpenVZ . So suppose you can allocate IP addresses individually so have a server that if 's a customer only needs one IP then they get only 1 IPlittle crowded and some user starts hogging some resources. No problem. But if they need 9 IP addresses you can give them exactly 9 of themYou just move a few users to another box and problem solved. They can call you up This could probably be done automatically with some well configured cluster and say I need one more IP and you can give would love it to them in seconds. On a dedicated server if you gave them someone wrote a /29 vlan and they are using all 5 IPs and they need another one - that is a huge hasslewiki page telling us how to do it.
== Disk Space Allocation = Protecting your Customers ===
On dedicated servers Since you have to install a big hard drive that is mostly wasted. If are managing the customer wants backups then it's two hard drives. In OpenVZ host system you just allocate space in the raid array based on what the customer actually needs can create IP filters and they only use the space port blocking policies that they use rather than what's allocatedhelp keep users from exploiting you or keep hackers from exploiting your users. The "allocation" is really just Instead of a software limit and separate box that is a line all theirs you have them in a text file that more managed shell allowing you can instantly change the moment to keep the customer needs more spaceinexperienced out of trouble. On This provides them with a dedicatd box if the customer need a bigger drive then service that watched it's a trip more closely allowing them to the data center with a new drive and a few hours time to copy everything over and replacing the drivedo their own thing, not but keeping you closer by to mention the down timekeep them out of trouble.
== Memory Upgrades Cost ==
Memory upgrades The cost savings are as easy as hard drive upgradesrather obvious. Juch An entire rack compressed into one command that or two computers. Picture the user has more ramspace and power savings. But what if The greenhouse gas not being generated by the server is full and power you don't have any more ram? No problemre not using. Just copy the user's VE (virtual environment) over to another physical server with rsync The number of computers that you are not buying. The hours you are saving in setup time and start them up thereadministrative time. In only a few minutes you've migrated them When it comes to saving money this is definitely a new box winner. You can take that extra money and they are up pass some on to customers and runningkeep some extra for yourself.
== Migration The Down Side ==
Suppose a customer just needs a bigger serverAny time you add another layer then you have another layer of things that can go wrong. Migration It takes some learning to understand the process and there is easy in the VPS environment because possibility that one person can screw up the VE system for everyone. As virtualization develops it will get better. OpenVZ is consistent between servers. You just copy over the files and start very stable in that it upis far less intrusive than other virtualization methods. You don't have It is limited to build a new server, install an OS, copy it all over, Linux only so BSD and then mess with it for an hour getting everything Windows users will have to workdo something else.
== Emergency Procedures Conclusion ==
Let's say I believe that a server friescontainer represents the future of computing. With VPS The space, power, and good backups you have more optionscost savings are too great to ignore. You can copy I see data centers that are massive clusters running tens of thousands of logical servers that transparently migrate around the physical resources and are up 100% of the backup time. Customers no longer will have to deal with issues of backups the VPS onto abother server way they have to now, and restore it as of will simplify the last (nightly) backuphosting process. (Ithink that every data center should be looking into virtualization technology now with the idea that you are going to be doing this and it'm a backup freak - but s time to at least start thinking about it pays.) That gets the customers up instantly if they need that while a tech can go down there and fox exploring it with an eye towards the server with less pressure. This give you more options when bad things happenfuture.
== Load Balancing ==I have to say that my view of container has radically changed and that I now see this as a solution not just for people wanting little servers but for most everyone who is looking for dedicated service. container is a different way of looking at the computing world and it takes some significant mental adjustment and education to grasp the big picture.
OpenVZ allows you to migrate servers live from one physical server to another. I haven't yet done that but I have done a shutdown, copy, and restart of the VE on another server and it's so easy to do that. So suppose you have a server that's a little crowded and some user starts hogging some resources. No problem. You just move a few users to another box and problem solved. This could probably be done automatically with some well configured cluster and I would love it if someone wrote a wiki page telling us how to do it.[[Category: Technology]][[Category: Concepts]]

Navigation menu