Post #374,315
4/28/13 2:14:30 PM
|
Re: So using AWS directly via AJAX?
EBS is nice when its just what you need and not so nice when it isn't. Sounds like it isn't.
The thing is - EBS is really just a nice ribbon and bow over a few specific Cloud Formations.
So I would build your own from the ground up - you can create a custom stack, custom ami's, etc and do that.
I haven't dug too far into it because EBS is fine for me - only thing I deploy is PHP and some static web resources.
http://aws.amazon.com/cloudformation/
|
Post #374,316
4/28/13 2:29:32 PM
|
I'll end up with CloudFormation, yes
But I need to automate the upgrade of the individual AMIs used in the formation first.
The basic stack will be:
1) nginx instances behind a load balancer
2) internal load balancer to Django instances in a private VPC
3) RDS MySQL (gah) in a multi-AA with read replica configuration, in the private VPC
4) ElastiCache, probably about 7 micros to start with, in the private VPC. It's cheaper, more resilient, and more efficient to use a bunch of micros instead of the larger instances.
5) Route 53 for DNS
6) S3 for media storage
7) CloudFront for CDN and media security (signed URLs)
Once things get rolling I'll start using Dynamo and queueing. Had I known that these reference architectures would be available at the start of the project I would have designed it differently to begin with. Oh well.
Thanks.
Regards, -scott Welcome to Rivendell, Mr. Anderson.
|
Post #374,421
4/30/13 11:18:22 PM
|
Re: I'll end up with CloudFormation, yes
Sounds like you have it figured. As long as you can get the thing to auto build when stuff comes online you're golden. No more hand building servers.
|
Post #374,430
5/1/13 10:33:57 AM
|
hmm, must be getting old
everything downstream of /foo
newbuild foo.tarball
stage all newbuilds in /tmp on every server via a global push
in mtc window, globally mv /foo/target /foo/target.$DATE
globally mv /tmp/foo.tarball /foo
tar xvf foo.tarball
globally or rolling restart foo.app
how is it done nowadays?
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 58 years. meep
|
Post #374,431
5/1/13 10:43:35 AM
5/4/13 2:08:41 PM
|
The problem is IP address
In AWS a new instance will come up with a different IP then it had before, unless you're using VPC and managing IP addresses manually (or scripted preferably).
But instead of doing a bunch of autodiscovery crap and copying tarballs everywhere, just change the underlying instance image once, run your deploy tests on that maintenance image, and then simply restart all the active VMs to get the new stuff.
Regards, -scott Welcome to Rivendell, Mr. Anderson.
Edited by malraux
May 4, 2013, 02:08:41 PM EDT
|
Post #374,434
5/1/13 11:41:02 AM
|
this stuff?
http://aws.amazon.com/console/
looks way better that the crapaud large telco cloud hosting service uses.
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 58 years. meep
|
Post #374,435
5/1/13 12:35:40 PM
|
Yep.
The nice thing about AWS is that everything in that console can be scripted with your choice of language, too.
Most (if not all) of the major configuration management tools support AWS out of the box as well.
They have a free account level that provides a single instance, DB, load balancer, pretty much everything in the product catalog free for a year if you feel like playing around with it.
Regards, -scott Welcome to Rivendell, Mr. Anderson.
|
Post #374,444
5/1/13 1:49:57 PM
|
might do that, thanks
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 58 years. meep
|
Post #374,555
5/4/13 1:55:50 PM
|
Re: The problem is IP address
Yep - most requested feature at REINVENT was ability to assign elastic IP to load balancer.
That would simplify a LOT of stuff.
|