Building labs for practice.

,

I’ve got the Scenario 2 VPC thing dialled. I also went so far as to document each step so I can refer back to it as and when I need to. I feel that’s pretty much one of the hardest fundamental things to learn in AWS so I’m pretty chuffed I’ve got that under my belt.

I’m coming from a VMware background and when we build labs we stand them up in Workstation. The basic scenario doesn’t change that much: Nested hosts, vCenter, DRS, HA, FT, profiles, resource pools, DV Switches etc and so I’m looking for the same kind of thing with regards to AWS practice labs. I’m aware of Qwiklabs but that seems to be quite linear.

I’ve got a Wordpress site running on AWS that I built recently but I was wondering if any solutions architects could perhaps share the most common setups customers ask for? Or perhaps a not so common scenario you’ve had to stand up recently?


Related discussions:

If you’ve used the Tutorial for hosting a Wordpress Blog on Amazon Linux, there’s some ways you can actually expand on that.

Where it tells you to install and use MySQL locally, use RDS. Instead of having just one web server, use an autoscaling group with S3. Use Cloudfront to make use of Amazon’s CDN. Build in some fault tolerance by building it into multiple AZ’s, or if you’re really wanting some challenges (and there will be some), multi-region. Setup CloudWatch monitoring to trigger alerts when it’s starting to struggle for capacity.

With Solutions Architecture, it’s really about understanding how you can leverage AWS’s many services (and of course, understanding what they do) to deliver a solution. A lot of the labs I’ve seen focus on individual services, and rarely try and tie multiple services together.

You would be surprised how much more efficient just tweaking existing machines apache/nginx is. Going from default of 20-30 users to over 1200 on the same hardware.
I’d recommend you use fast cgi option to increase speed and capacity to start.
Cloudfront is a great addition for CDN to offload more work of downloading any assets you have. Autoscaling is great but so far with thousands of users a week I’ve not triggered it. You could setup a load balanced set of machines as well.

Linuxacademy has practice labs with their subscription that are pretty indepth and useful for anyone really wanting to learn the ins and outs of AWS

Good idea. I guess I could make use of some load generators such as https://github.com/rakyll/boom or https://github.com/rakyll/boom to simulate heavy stress.

Are you asking about AWS architecture & resources?
o use S3 for media files, there’s a wp plugin. Use CloudFront for CDN
o use w3tc plugin, memcache & maybe varnish as page cache.
o use rds mysql with Multi-az

Getting a lot of traffic? Setup a lb & autoscaling group, and be ready to add webservers.

Later you can think about scaling across regions with geo or latency & route53.

Are you asking from the perspective of deployment & automation (cloudformation, chef, wordpress patches, mysql, apache etc…)? Here there are a lot of possible options. You might take a look at this howto for managing workflow with composer.

http://torquemag.io/2014/09/improving-wordpress-development-workflow-composer/

HTH.
-Sean

Use https://goad.io/ or https://github.com/newsapps/beeswithmachineguns for a heavy duty load test :wink: Using one box to stress test isnt nearly as fun as using a fleet of EC2 nodes!

I’m a fan of Linuxacademy too. Very relevant real-world examples.

Make sure to read the Acceptable Use Policy and obtain approval before doing any “stress testing” that might be deemed DDoS. AWS can and will lock your account so better to err on the side of safety depending on far you want to go. For a couple of instances probably not necessary but worth pointing out especially if you have any production resources running in the same AWS account.

I would suggest getting AWS certified; like the solutions architect or the professional. I came from a VMware background and the certification is really good and helped me think about designs to solve issues. None of this memorize commands stuff either but real world scenario testing of your knowledge.