Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am in need of advice about hosting Magento on a VPS.

I am considering a VPS that is advertised as Magento optimized, has 1024MB ram and says it has 4.8Ghz cpu capacity (if i order 1GB or ram or more i'm supposed to get 2 Xeon cores).

The HDD is not mentioned i don't know if they use RAID or SAS or anything. Could a small sized Magento store run optimally on this setup? I'd hate to have pages and checkout etc take many seconds to load.

Thanks for any advice.

share|improve this question

4 Answers 4

Yes - should work - however you may wish to use something like www.CloudFlare.com in front of it first - any reverse proxy would work of course...

It would be wise to do your shopping however on the VPS. Media Temple advertises here @ ServerFault and I have used them - decent folks. Also check out VPS.net

Bottom line - shop around and TEST before going live

share|improve this answer
    
Needs to be based in Netherlands... but thx for suggestions. –  dan Nov 15 '10 at 5:45
    
Why does it need to be based in .nl? I doubt you're going to see significant latency from .de or .uk. Or are there annoying compliance reasons? –  Stephen Nelson-Smith Nov 15 '10 at 6:06
    
never underestimate the politics of a clients decision... –  Glenn Kelley Nov 15 '10 at 6:15
    
if they want the netherlands - than so be it... That being said - should work just fine. –  Glenn Kelley Nov 15 '10 at 6:15
    
A reverse proxy would add nothing at all so-far-as Magento performance is concerned. It will alleviate the very very very little load that serving static content has on your machine. –  Ben Lessani - Sonassi Jun 20 '12 at 22:03

I think 1GB RAM will be rather good. For better performance choose Xen virtualization.

share|improve this answer
1  
Yea they use Xen virtualization. But they say for storage: "Your data is stored on a Storage Area Network (SAN) with dual power supplies and dual RAID controllers. The information is copied over several hard disks. Storage is connected to the servers through high-speed 8 Gigabyte Fibre Channel connections." Ok but that doesn't tell me about how fast i can read/write data right... and i think magento's performance depends on that more than anything. –  dan Nov 15 '10 at 5:40

It's possible to run Magento on public VPSs, but not always optimal. When demand picks up, you're likely to feel the pain. First reaction is to simply upgrade the VPS with more memory, but increasing RAM has diminishing returns with Magento.

The important of Disk I/O was noted previously. This can vary between VPS providers, but also on different systems within a single provider. The other tennants on VPSs can ultimately drag this down. It would also be most noticeable on the most critical pages, as well - cart, checkout.

Running MySQL on the same machine as Apache can produce less than satisfactory results.

And running MySQL under virtualization is also a factor that negates optimal performance.

share|improve this answer
1  
"Running MySQL on the same machine as Apache can produce less than satisfactory results." This is nonsense and unfounded. We oversee stores with 25,000+ unique visitors per day on a single-server configuration without issue. "Running MySQL on the same machine as Apache can produce less than satisfactory results." Again nonsense. Hardware level virtualisation (eg. vmware) certainly adds overheads, but doesn't specifically cause MySQL issues. Using Linux-VServer/KVM/Xen have zero overhead and will give identical performance. –  Ben Lessani - Sonassi Jun 20 '12 at 22:01

1GB RAM will certainly not be sufficient. I've mentioned this a number of times:

  1. http://serverfault.com/a/368649/113375
  2. http://serverfault.com/a/367861/113375
  3. http://stackoverflow.com/a/8216096

I wouldn't suggest a VPS in place of shared hosting, for a number of reasons.

Let's assume your budget is £30 per month - from bytemark.co.uk this gives you

1000MB RAM 1 CPU Core 20GB storage

The downsides of using a VPS being

  1. You need to manage your own server. That means you have to optimise the server, monitor the server, fix any issues with the server - have you got that level of experience?
  2. Your I/O is shared. Anyone else's activity using the common HDDs will bottleneck anything your Magento store needs to do
  3. You are limited to 1GB RAM, to put this into perspective ...

Each PHP thread (visitor) needs an average 30MB RAM and its corresponding MySQL connection will need just a bit more. So that is 80MB per visitor. Your base OS needs about 140MB RAM to run. MySQL base wants as much as possible, but as a minimum, it will need 300MB.

So you are using 440MB, leaving you support for 7 active visitors - which is fortunate, because 1 2.5GHz core can push through a maximum of 7 requests per second (for Magento).

--

Conversely, you could pick a Magento host that already optimises its shared servers, uses external DB servers, and usually has a powerful machine that you can burst resources on, to a factor of around 8 of what your VPS offers.

There are a few Magento hosting comparison sites out there that will help you make this decision.

www.magentobenchmark.com www.magespeedtest.com

As speed sounds like your ultimate concern and it doesn't sound like you have the experience to really get the best out of a Magento server (be it virtual, dedicated or clustered) - don't DIY, just go with a consummate Magento professional host.

share|improve this answer

protected by Community Jul 28 '12 at 0:17

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.