Windows Web Hosting, Web Technologies, etc
Archive for August, 2009
JessCoburn.Com running on ARR! and that not be Pirate speak thar Matey!
Aug 9th
3 Blog posts to say “Hey I’m running on my site load balanced using ARR”. This is the third and hopefully last blog post for tonight. I posted two other posts tonight:
- Discusses the first stage of Applied Innovations Cloud Initiative.
- Discusses ARR & Load balancing.
All of this was to explain how I’m running my website currently (which I tend to test everything on first so I break it a lot but you have to break eggs to make cake, right?).
ARR or Application Request Routing is a new extension to IIS7 that allows you to turn a Windows Server (or VPS as in my case) into an Application Aware Load Balancer with such features as offloading compression and SSL encryption!
How I’m running JessCoburn.com
For the past year and a half, JessCoburn.com has (and continues to) run on a shared web hosting server that runs IIS7 on top of Windows Server 2008. My site is treated identically to how my customers sites are treated as I firmly believe in eating your own dog food (no not ALPO but using the same services you sell). The site makes use of FastCGI to run the PHP engine and backends to a shared MySQL server. All of our shared web servers connect to the SQL servers via a private dedicated gigabit network for optimal performance. In addition, I make use of expiry headers for output caching of my images and also use the wordpress plugin supercache to reduce my reliance on MySQL queries so my pages render faster. So that’s why it’s been fast, I think you’d agree that’s pretty well optimized for a Windows shared hosting website (same thing you could for as little as $8.33 a month with one of our Windows hosting accounts.. Sure it’s optimized but there’s still a problem.
What’s the problem with JessCoburn.com?
The problem is my web site runs on a single web server. This means if there’s maintenance on the box (don’t worry we do this during load traffic times) there’s still potentially downtime. This also means if my site ever gets popular enough to make the first page of DIGG or REDDIT (use those social bookmarks please) then no matter how much I optimize my site on that one web server, I could have a problem… These are the trade-offs we accept with shared hosting (today).
But what if, I could run JessCoburn.com on multiple web servers and load balance them? Yeah who’s going to go out and spend 20K to load balance his little wordpress blog (the profit margins aren’t that good you know). Well thanks to our own cloud computing initiative and the good folks on the IIS Team at Microsoft I can do just that for peanuts! Today!
My new configuration
I have a Windows 2008 VPS running IIS7 with ARR 2.0 Beta 2 on it. It’s of course running on our High Availability Managed Windows VPS Hosting Cluster. I also have JessCoburn.com still running on the shared Windows Hosting server running on IIS7 and I setup another VPS server running on top of Virtuozzo running Windows 2003 and copied the site there. Just to show that you can route requests to any kind of server. Both servers back end to the same MySQL server.
All requests for JessCoburn.com come into the ARR server and it then proxies these requests between the Shared Server and the Win2003 VPS server. In the event one of the sites crashes, is down or has problems, ARR will redirect all requests to the other server.
Elastic Computing AKA Cloud Computing as provided by Applied Innovations
Aug 8th
I broke this post up into a series of posts. The first post (just published) gives an overview of ARR in IIS7 and why it’s cool. This post is going to talk about the first stage of cloud computing we’ve deployed at Applied Innovations and the benefit’s of it such that you could use it today to control your own hosted IT Infrastructure costs.
About the Applied Innovations Cloud Platform.
Applied Innovations is a charter member of Microsoft’s Dynamic Datacenter Alliance. The alliance is composed of a handful of hosters, ISVs and system integrators that have deployed a solution on Microsoft’s Dynamic Datacenter toolkit. Our implementation of the toolkit is a highly available cluster of VPS servers. These VPS servers or a series of physical servers that use a high speed, redundant SAN cluster for storage and in the event of a hardware failure or need for maintenance the virtual machines running on one of those servers will automatically fail over to one of the other nodes to keep the services and applications running 100% of the time.
In addition, our own solution also affords the user the ability to achieve a level of cloud computing called: elastic computing (a hot topic these days as Cloud computing is all the rage). Elastic computing is the ability to dynamically scale up and down your computing resources as your needs change. For instance, let’s consider the case of dedicated hosting.
When the Dedicated Server Meets the Cloud.
In the past when a hosting customer outgrew shared hosting they needed to move to a dedicated server. Moving an advanced web application (such as a live ecommerce website) from one server to another is time consuming and often costly so it’s something most store owners don’t want to do frequently. With that in mind they would often look at dedicated servers and have to predict their need for hardware not only today but often 6, 12 or even 24 months into the future or they could find themselves moving again in the near future. The problem with this is that often they found themselves purchasing more hardware and taking on a larger cost today in preparation for tomorrow than they needed and sometimes could afford.
Further, today we all know just how quickly the economy can turn and how fast you can find that your expected growth can disappear and all of a sudden find yourself needing to scale down instead of up. Or perhaps your business is seasonal and you find that you really only need a full dedicated server a few months out of the year and don’t need to pay for the full solution the other 9 months of the year.
At Applied Innovations, Our Dynamic Datacenter Solution is the answer to these very issues. With one of our highly available clustered Windows virtual dedicated servers (VDS servers) you’re able to scale up your diskspace, your memory, your processing power and likewise scale down your diskspace, your memory and even your processing power with just a click of a few buttons. This puts you in control of your hosted IT infrastructure and allows you to adjust your costs in line with your business.
What about Elastic Scalability? I thought that was Cloud?
The other hot topic in Cloud is Elastic Scalability. This is where your web infrastructure is hosted on multiple virtual machines (which may be elastic computing VMs) and is load balanced across these nodes. you then have the ability to expand and contract the number of nodes your site runs on as your traffic and business demands change.
We believe this too is a vital component to cloud computing but for 80% of the hosting business on the market today, it’s just not a necessity.. today. For that upper echelon of hosting customers (the Amazon, the Twitter, the Facebook type company) this is a necessity but for most companies this level of cloud computing is just an extra expense and in today’s economy extra expenses are not needed.
What’s next in the Cloud?
This is only the first phase of our own Cloud Initiative and there are of course other notions of cloud besides elastic computing and elastic scalablity that I didn’t hit on. What I can guarantee is our team is working as diligently as ever to continue to work on our Cloud Initiative and will continue to evolve our service offerings. In the meantime if you want to cut your dedicated hosting costs and have the ability to adjust your hosted IT infrastructure costs as your business adjusts, contact our team about our Managed Windows VPS Hosting solutions built on top of the first stage of our Cloud infrastructure.
A little info about Application Request Routing (or ARR) in IIS7.
Aug 8th
In the 10 years I’ve been working with Windows as a web hosting platform (and the 15 or so I’ve been working with web servers period), I can confidently say that IIS7 is without question the best web server platform to date. Microsoft has been working on a plug-in for IIS called Application Request Routing (or ARR). The first version of ARR provided a suite of tools that allowed it to function as a Application Layer Load Balancer! The recently updated beta version extends that functionality and now makes it easy to turn a Windows Server running IIS7 into not only a Load Balancer but also a Reverse Proxy / Cache Server. Meaning you could potentially power a CDN using a bunch of Windows Servers.
What’s an Application Layer Load Balancer?
First I should define a load balancer. When you have a very popular website (think yahoo, Amazon, etc) you need a bunch of web servers to accept all those web requests. One server just won’t cut it. In order to keep things all tidy and in order you use a machine that controls those requests and which web server it goes to. You extend that machine and have it start monitoring your web servers and your web visitors and it can start managing those requests and directing it based on things like:
- The visitor’s browser type
- The visitor’s IP address
- The type of content being called (JPEG, MOV, HTML, ASPX, etc)
Then you get a step fancier and not only direct those requests based on the request but also on the state of the server, who’s had the most bandwidth, which server do you prefer requests to go to, which server is working hardest? etc.
Now the Layer 7 Load Balancer or Application Level Load Balancer can distribute requests based on the various application specific information. This could be a cookie for instance or information within your app itself.
NOTE: I’m not going to go into this any further you have the basic understanding of a load balancer and I’m not going to deal with NLB and layer 4 and all that fun stuff. Go Bing! it (yeah I said Bing!).
Wait aren’t load balancers expensive, complicated and require a whole other level of geek?
You bet! But they’ve gotten better and there’s a fair number of open source ones out there (in fact, I was reading earlier that wordpress.com was running on an open source one).
Well didn’t Windows Always have this?
Not really. Windows had Network Load Balancing which would allow you to run a couple servers with the same application on it. It would monitor ping on the machines and if one machine died all requests went to the other. So that was really load balancing at the machine level. This was good enough for most but what if the machine was fine but your service (perhaps IIS itself crashed?) . Then they had Clustering services. Now clustering services was service aware. Meaning if your service (perhaps IIS ) crashed on one of the machines it would failover to the other machines but it didn’t really know anything about your website’s application (perhaps an ecommerce store) so you could have a server online and the web service online but the actual application on that server failed and still be sending requests to it. So in comes those clever folks in the IIS team at Microsoft with Application Request Routing (ARR … Matey!).
Video Introduction to Application Request Routing and more info
Microsoft has a great video on ARR and it’s geared towards webhosts but does a fantastic job of showing the functionality of ARR and just how easy it is to configure and make use of. You can see that video on the IIS.net site at:
http://www.iis.net/extensions/ApplicationRequestRouting
In addition to the video they really spell out all of the features and benefits to ARR in detail. Some of those features include:
- HTTP based routing decisions.
- The ability to offload SSL requests
- The ability to offload compression
- Health monitoring of live traffic and specific URLs to monitor and adjust routing of requests.
- Support for extensive debugging through Failed Request Tracing Rules.
Windows Hosting or Linux Hosting? Which runs PHP Faster?
Aug 6th
This is one of those questions everyone and their brother tries to answer and it seems in the 10 years we’ve been offering web hosting at the question is still the same and the answers are still the same BS 10 year old answers.. Typically you hear responses from the advocates of Linux over Windows such as these:
- Keep Microsoft for Microsoft and Use Linux for everything else. (yeah those days are over. Unlock the doors and come outside, Y2K never happened and it’s not going to.)
- PHP is faster on Linux, it’s optimized for Linux and will NEVER run on Windows. I know because I’m a uber-hacker and have my own apartment (in the basement of my mommy’s house.. er I mean my room-mate!)
- Windows Hosting is more expensive than Linux hosting. (Until it breaks and you need to call support but your site is down for 3 days while you try to get support off some usenet feed… Then which is more expensive?)
Well, I’m a big fan of benchmarking things and just testing this for yourself. Of course ever since my Virtuozzo versus VMware versus VirtualPC comparison where all of VMware wanted to take me outside and have me drawn and quartered, I’ve decided to not post such comparisons. Fortunately for us Joe was kind of enough to run such a comparison (using the exact same machine you VMware fan-boys) and really compare PHP on Windows and Linux as well as ASP.NET on both. I’m not going to repeat his results you can see it on his blog. But the long and short of it is:
- ASP.NET rules the world of performance…
- PHP 5.3 on Windows is as fast or faster than it is on Linux. Did you hear that? PHP 5.3 on Windows is as fast or faster as it is on Linux.
- MySQL on Windows is slower than it is on Linux (Which we knew from our own experiences)
- PostGreSQL is comparable on both.. I never even considered looking at PostGreSQL.
- the MS SQL PHP driver is slightly slower than MySQL (but version 2.0 is in the works and will hopefully address this).
So there you have it you you whiny little school girls that insist PHP runs like crap on Windows and why would you ever use Windows Hosting for PHP or for anything (I’m not calling out any names but you know who I’m talking to). Microsoft has stepped up and leveled the playing field with PHP.
If you’re curious what work has been done in this area, Mai-Lan from the IIS team has a nice write up on it.
So that’s the word. Microsoft has recompiled PHP5.3 and helped optimized it for Windows. Now the Windows-Haters will have to find another reason to complain.
Hey to celebrate the increased performance and Joe Stagner stepping up to show the world that Windows IS good for PHP and doing an informal benchmark on his own. Here’s a coupon code that’s good for 25% off your first hosting term on any shared Windows hosting or Windows VPS hosting package good for the month of August: JoeRocks25. You can thank Joe for inspiring the great discount and go subscribe to his blog I do!