English 中文(简体)
Using EC2 Load Balancing with Existing Wordpress Blog
原标题:

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) cause the server CPU to run at 100% and slow down everything. I m currently using WP-Super-Cache, S3, and CloudFront for most static files, but high traffic is still causing slowdown on the CPU.

From what I m reading, it seems like I might want to use EC2 to help the existing server when traffic spikes occur. Since I m currently using the top tier of virtual dedicated servers on Media Temple, I d like to avoid jumping to a dedicated server if possible. I get the sense that AWS might help boost the existing server s power. How would I go about doing this?

I apologize if I m using any of these terms incorrectly -- I m relatively amateur when it comes to server administration. If this isn t the best way to improve performance, what is the recommended course of action?

最佳回答

The first thing I would do is move your database server to another Media Temple VPS. After that, look to see which one is hitting 100% CPU. If it s the web server, you can create a second instance, and use a proxy to balance the load. If it s the database, you may be able to create some indexes.

Alternatively, setting up a Squid caching server in front of your web server can take off a lot of load from anonymous users. This is the approach Wikipedia takes, as the page doesn t need to be re-rendered for each user.

In either case, there isn t an easy way to spin up extra capacity on the EC2 unless your site is on the EC2 to begin with.

问题回答

There is just 3 type of instance you can have. Other than that they cant give you any more "server power". You will need to do some load balancing. There are software Load Balancers, such as HAProxy, NginX, which are not bad, if you dont want to deal with that, you can do DNS Round Robin, after setting up the high load blogs on different machines.

You should be able to scale them, that s the beauty of AWS, scaling.





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签