Swimminginthought

A place for all things technical and my mind..

Menu
  • About Me / Hire Me
Menu

Database Backed Web Applications Advice

Posted on July 2, 2012 by Percy Kwong

Here’s the scenario.  You’ve got a dedicated server running windows in a server farm (generic dedicated server provider).  You have mysql + asp or php app running all on the same server.  Raid 1 mirroring and 2 GB of ram.

You have to have windows, because your application supports it.  Sound Familiar?  It’s a problem which is a big issue with many of you out there…   The ASP app is super slow.  The server barely keeps up and you’re lucky if you have even 200 MB to spare of physical RAM.

So you have a few solutions:

1. Get a bigger server

2. Move Mysql off to another server.

3.  Add more RAM (but still this doesn’t solve your i/o problem.

So here are my suggestions:

1. Go to Amazon and run multiple servers with the mysql instance on it’s own NON-Windows machine.

2. Add more RAM

3. Add more drives and set up one of two configurations:  RAID-1+0 (4 drives, not to be confused with RAID 0+1) or RAID-5 on 3-4 spindles (drives).

4. Add a High Speed USB 3.0 USB stick and use that as extra RAM. (Not the most ideal solution, but it’ll help immensely)

5. Get a better server dual *Xeon with VT extensions + 32+GB RAM  + 3 or more spindles, run xen on it with 2 virtual hosts.  one for windows and the other running linux with Mysqld (My personal favorite is centos, but then again, it’s my choice).

The 5th solution is the best solution considering you’ll have complete access to the extra ram and VERY low latency between Mysql and the windows instance (they’re running on the same machine and are effectively communicating over the backplane)

Windows Web (which many dedicated providers use) Allow Max RAM allocation at 2GB.  Pretty much useless.  Especially if you’re running a “server”

add mysql to that and some pretty hefty tables and you might as well shut off your business, because it’ll be a dog.

Run Xen and have windows on one instance + Linux (Mysql) on the other.

Give the windows instance 4-6GB and Mysql twice whatever the DB size is in RAM.

Give the Xen Host at least 8GB although whatever you can afford is better.

Tune the Mysql properly, and of course your SQL and watch the system scream.

Need help doing this?  I’m available.  Hire me.

 

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs
  • Resurrection of the Blog
  • Encryption type Matters with Deep Packet Inspection – solved
  • Completely off topic.. Just a personal note.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs

Recent Comments

  • Percy Kwong on Boosting Octane Yourself. I did the research, made it, and proved it.
  • Nick Doelman on Boosting Octane Yourself. I did the research, made it, and proved it.
  • Percy Kwong on International Text solutions – A solution
  • Muzahid Ul Islam on The Browser Wars; Which One is Best?
  • Muzahid Ul Islam on International Text solutions – A solution

Archives

  • September 2019
  • August 2019
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • August 2011
  • June 2011
  • March 2011
  • February 2011
  • November 2010
  • October 2010
  • September 2010
  • July 2010
  • January 2010
  • November 2009
  • October 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008

Categories

  • Activism
  • All
  • Amazon S3
  • Announcements
  • Apache
  • Apple
  • Applications
  • Automation
  • AWS
  • Azure
  • Backups
  • Blogging
  • Books
  • Bootcamp
  • CentOS – RHEL
  • Cloud Computing
  • Cloudformation
  • Consulting Advice
  • Craigslist
  • Databases
  • Deep Packet Inspection
  • Doing the right thing
  • e-Book Readers
  • E-Mail
  • EC2
  • energy-efficiency
  • environment
  • Expose
  • firewalls
  • General Observations
  • Hardware
  • Hope
  • Hosting
  • IaC
  • Important things to do in life
  • Infrastructure as Code
  • Kubernetes
  • Linux
  • Media and Encoding
  • Miscellany
  • Mobile Phones
  • MySql
  • Networking
  • Performance
  • Personal
  • pfsense
  • Politics
  • Privacy
  • Redundancy
  • Routers
  • security
  • SPAM
  • Tech that doesn't work like it should
  • Tips and Tricks
  • Tools that work
  • Tout
  • Video
  • Virtual Computing
  • VOIP-Voice Over IP
  • VPN
  • Web Browsers
  • Web Hosting
  • Websites
  • Windows
  • Wordpress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2026 Swimminginthought | Built using WordPress and Responsive Blogily theme by Superb