My dear friend Kornel told me about a new hosting he has found. We used to keep our private stuff on Linode. It was an okay VPS. I was quite happy with it. However none of my sites there pay the bills and it costs me $10 / month. I know it's nothing for an online presence - but then Kornel came with a new idea.
It's Digital Ocean. Looks like a hip thing. Only 5 bucks per month, SSD and stuff. The CPU is medium category and the entry level option has a single core. So it's fine if you don't have to do CPU heavy operations but more IO. They have also a free month so of course I tried it out.
Easy registration and login. Then you can immediately enter the system. It allows you to create any amount of instances - so it seems the model is like a shopping cart. You're not tied to a certain package. Creating a new instance is pretty easy, you can select the VPS configuration, OS, software packages, etc. You have SSH and I guess that's all you need at this point really from the service - the rest is in your hand.
I've tried StatDiary just to see how the single core with SSD perform. I ran some AB - that was a bit suspicious, showing unstable conversion. Then I fired up JMeter and did a more thorough analysis with authorized access (using test accounts to miss the cache) and a few reports. I really love JMeter how useful in this situation. It's not too sophisticated and can give you a proper summary about the speed. It seemed Digital Ocean is 3 times slower than the basic Linode VPS. Linode served StatDiary around 200ms meanwhile it was 600ms from Digital Ocean. I added APC and it didn't really get better. I've checked it and 70% was used from all the opcode cache and almost 99% percent is the hit rate. I've ran YSlow and it was also pretty good. Only got bad marks on having images on a CDN, not adding them etags. All others were A and some B. Apache is using mod deflate on all outgoing text streams.
So at this point I have not much ideas how to make it even faster.
The real user experience is basically the same, practically you doesn't feel it worse. Let's say 600ms is not the end of the world, there are worse things.
Just to mention one - moving to a new server is a pain. I have the sites, the databases and mobile apps connected to the server (and sometimes to the IP). It's like an evil circle. In order to tell the app which server should be used you need a central service that tells this info - so this way you can adjust these details on-the-fly. However what makes sure that you don't have to move your central server.
Well, one thing I've learned is to never use IP. Use the domain, at least that can be stable. To move the whole shebang now won't be easy. My current idea is the following:
- update the iPhone app that uses the domain name (no auto release plan)
- set up the mirror site on the new server
- set up remote access to the db (I know, but that's the most feasible transfer I've come up with)
- copy db to new server
- point the old site to the new db
- at this point you can use the new server
- redirect the domain
- close db remote access
And now my first problem is releasing the new iPhone app version - which doesn't compile because of a broken architecture (armv7s) compilation in a linked static library - which takes me 1 - 6 weeks to fix usually. Funny thing I have no idea what skills I should grow to approach this problems faster. Life.
---
Peter
Thanks for the comparison! Linode was always very appealing and will probably be the #1 choice for me if conditions require such a system (especially after seeing their recent next gen updates blogpost). But the price of DigitalOcean at the moment makes it a no-brainer and is perfectly sufficient for my use case, so thanks for the introduction! Good stuff!
ReplyDelete