VPS


Post by kylelnsn » Sun Mar 29, 2015 5:15 am

Hi All,

I am currently looking to move our site (1.5.5.1) to VPS SSD.

Just wondering what peoples experience of VPS is? and specifically UK2 VPS, Is it recommended? We have a sizeable store now few thousand products and several thousand orders and customers to match.

Also what size do we need to run Opencart?

Is there anything the sales pitches dont tell you about VPS?

Any advice very gratefully received!

Cheers

New member

Posts

Joined
Mon Apr 09, 2012 9:52 pm

Post by yodapt » Sun Mar 29, 2015 11:31 am

Are you talking about managed or unmanaged VPS? I have a unmanaged one which is pretty affordable and runs quite nice, located in Amsterdam.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by kylelnsn » Sun Mar 29, 2015 9:00 pm

Unmanaged possibly.

The specification I am struggling to nail down what size we need.

New member

Posts

Joined
Mon Apr 09, 2012 9:52 pm

Post by EvolveWebHosting » Sun Mar 29, 2015 9:25 pm

kylelnsn wrote:Unmanaged possibly.

The specification I am struggling to nail down what size we need.
You should be able to see the stats in your current control panel to give you an idea of the storage needed.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by yodapt » Sun Mar 29, 2015 10:00 pm

Disk size? Not much, 1Gb should be enough for most stores out there, even if you have a large database and many photos it would still hardly (really hardly) reach 5Gb.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by kylelnsn » Sun Mar 29, 2015 10:09 pm

Ram and Cores really?

New member

Posts

Joined
Mon Apr 09, 2012 9:52 pm

Post by yodapt » Sun Mar 29, 2015 10:23 pm

1 core is enough, and 512Mb ram are enough too. Really most VPS out there would be enought to run OC, the thing is what kinf of traffic you expect, that will influence the performance of OC more than it's resources.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by Dhaupin » Tue Mar 31, 2015 10:05 pm

yodapt wrote:1 core is enough, and 512Mb ram are enough too. Really most VPS out there would be enought to run OC, the thing is what kinf of traffic you expect, that will influence the performance of OC more than it's resources.
Here is the reality: 512 would work under sporadic/low traffic for small store, but I would not recommend a 512 server for a production store of decent scale or steady traffic. It comes down to balancing OS requirements, requests a second, DB queries a second, script execution time (how long it hold a request in limbo), and entry limits. There is no magic egg that we can say for resources, but here are some things you may encounter on an underpowered server (or an underpowered host):
  • Steadily working on products and things will increase your OC load by about double, especially in a team environment. So keep that in mind....its one thing to run the catalog side, but it takes more resources to run the admin side too.
  • Traffic/bot gains from SEO, promotions, etc can crash your server if there is no extra overhead. Its generally a bad idea to get the VPS that is barely capable of running your realm. Asking for trouble if its too small...you need headroom for spikes, or at the least, larger OS jobs such as cPanel updates.
  • If you ever need to regen your image cache it will timeout pretty much everyone and fault out your requests due to capped virtual mem and limited entry processes. There is a possibility of massive CPU load when clearing normal caches (if your DB is not optimized and/or speeder bots like MSN are hitting).
  • First byte time matters -- if your server is struggling to make a connection happen due to resource limit, google will notice. This is why Pagespeed has the first byte clauses.
  • With a little server, if you have a large /home and try to backup, gZip will eat all resources and server fault more folks...perhaps nightly if its automated. A simple SQL dump may cause timeouts on frontend.
  • Clamd will eat your precious resources if you run it as a daemon on such a small fry. This is true for other services too such as management panels, monitoring, etc. Might not seem like alot but when you add them all together you may find a surprising chunk used.
  • If you try to make a product with large options, try to show too many list items, or other trivial things, the server will creep and possibly, again, timeout the frontend due to EP holdup.
  • Also keep in mind you need ram and CPU to actually run the VPS. Although VPS nor OC need much CPU, your DB will be hammering it nonstop under steady traffic. If too much is taken from your OS, the VPS will creep. If too much is taken from OC, timeouts will occur.
  • You can assume 40% CPU used for DB alone. If the DB->OC is not optimized and you have many cats and things, it can average as high as 90% CPU. If you do not have enough CPU overhead, your server will encounter "MySQL has gone away" style timeouts which affect the frontend.
  • OS matters -- You will be managing the software yourself. Many folks like Ubuntu, but CentOS is significantly more powerful, supported, stable, backed, LTS, and can use cPanel/WHM. Choosing Ubuntu will compound your headaches and force you to be totally DIY, choosing CentOS will make your VPS easier to manage because its the industry standard and millions more people use it. Using the standard tools will decrease your liability of breaking something and lessen the need to use SSH if you are uncomfortable with it.
  • SSD doesnt really matter much. The only time OC needs significant I/O is when you are uploading an image or a file. Otherwise it is a negligible difference in render time. Save $$ and go for non-SSD VPS if they have it (you can usually get more CPU/RAM this way). Customers will never really feel the difference in I/O speed either way....but they will very much notice a difference in power.
  • 512mb ram may 500 error your feeds on a bigger store unless you have feed/sitemap caching (which isnt in stock OC). Bots often hit 2-3 times for a sitemap resulting in too muchr ram+CPU used and real people might not be able to connect till its generated. This is also a means for any joe to use the F5 to EP-DDoS the heck out of you causing 100% faults. See code below, 4 requests ate 270mb ram and 6 continuous minutes of script time, meaning your 512mb server would have faulted out for 6 mins:

Code: Select all

@Store 03-26-2015 07:22:56 PM Example Store Sitemap was generated via IP 65.55.213.242 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 67.5MB Time: 92.66 Sec
@Store 03-26-2015 07:22:56 PM Example Store Sitemap was generated via IP 65.55.213.242 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 67.25MB Time: 92.75 Sec
@Store 03-26-2015 07:23:30 PM Example Store Sitemap was generated via IP 65.55.213.192 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 67.25MB Time: 92.8 Sec
@Store 03-26-2015 07:23:30 PM Example Store Sitemap was generated via IP 65.55.213.192 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68MB Time: 92.78 Sec
Another MSN speeder example:

Code: Select all

@Store 03-28-2015 01:28:02 AM Example Store Sitemap was generated via IP 65.55.213.242 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.25MB Time: 77.47 Sec
@Store 03-28-2015 01:28:02 AM Example Store Sitemap was generated via IP 65.55.213.241 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.5MB Time: 60.82 Sec
@Store 03-28-2015 01:28:30 AM Example Store Sitemap was generated via IP 65.55.213.242 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.25MB Time: 57.26 Sec
@Store 03-28-2015 01:28:30 AM Example Store Sitemap was generated via IP 65.55.213.241 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.25MB Time: 73.3 Sec
And another MSN speeder example:

Code: Select all

@Store 03-29-2015 06:07:28 AM Example Store Sitemap was generated via IP 65.55.213.241 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.5MB Time: 87.5 Sec
@Store 03-29-2015 06:07:28 AM Example Store Sitemap was generated via IP 65.55.213.241 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.25MB Time: 87.7 Sec
@Store 03-29-2015 06:07:54 AM Example Store Sitemap was generated via IP 65.55.213.242 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.25MB Time: 83.71 Sec
@Store 03-29-2015 06:07:54 AM Example Store Sitemap was generated via IP 65.55.213.242 [msnbot/2.0b (+http://search.msn.com/msnbot.htm)] Memory: 68.25MB Time: 83.69 Sec

So whats the magic number for a VPS?? Lets think about a shared server first -- many folks think they are underpowered. Actually, shared servers are monsters with huge amounts of RAM + CPU that is available in bursts too all the tenants. This is very different from how a VPS works unless you spend a ton of cash. Example: A shared server may generate a large sitemap in seconds whereas a modest VPS could take over a minute. That being said, when moving VPS, you might expect degraded performance in this aspect, hence the warnings above.

So, for traffic of 1500 sessions a day on a large store (5000+ items) with constant sitemap hits, bot scans, and human browsing, you should be looking for at least 2gb ram level of server. Dual core is HIGHLY recommended otherwise your DB will be timing out all over the place with the querycrush of OC. We actually dont recommend anything under 4gb normally but that is because we work with enterprises and need the overhead in case of traffic spikes. The good news is that OC is not a ram hog like some other apps :)

For a small production server 1GB is the minimum you wanna go. Dual core is not essential but it could help alot when dealing with DB and first byte speed.

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA
Who is online

Users browsing this forum: No registered users and 11 guests