Amazon AWS and EC2 Explained
1. How AWS Works
The AWS platform is a mature platform and extremely secure. All interactions are via key pairs and server instances can be managed using various security groups which can be limited to only the ports that are required for the app.
2. Scalable Servers
The Amazon Elastic Compute Cloud (EC2) is the scalable server part of the service that provides on demand virtualised server instances. Instances can be based on many different server setups in either Linux or Windows flavors as well as the option to use snapshots from various vendors or the community. You can also customise a base image and store that for future use. These snapshots are called AMIs (Amazon Machine Images) and are integral for launching load balanced app servers as quickly as possible.
3. Load Balancing
Amazon has a built in load balancing solution Elastic Load Balancing which can distribute incoming traffic across your EC2 instances, automatically scaling in response to incoming traffic.
4. Storage
EBS offers persistent storage for Amazon EC2 instances. EBS volumes provide off-instance storage that persists independently from the life of an instance. Volumes are highly available, highly reliable volumes that can be leveraged as an Amazon EC2 instance’s boot partition or attached to a running Amazon EC2 instance as a standard block device. When used as a boot partition, Amazon EC2 instances can be stopped and subsequently restarted, enabling you to only pay for the storage resources used while maintaining your instance’s state.
- Scalable: Amazon S3 can scale in terms of storage, request rate, and users to support an unlimited number of web-scale applications.
- Reliable: Store data with up to 99.999999999% durability, with 99.99% availability.
- Fast: Amazon S3 is fast enough to support high-performance applications.
- Inexpensive: 15¢ per GB per month for first 50TB.
- Simple: Uploads can be made using a simple browser plugin or various APIs.
5. Content Delivery Network
6. Managing Cost Effectively
Typical Cloud Web App Set Up With Scalr
SCALR
1. Scalr
Although Scalr has been released as an open source download, the SaaS version developed and maintained by Intridea is a stable, secure and cost effective way to manage your EC2 instances online.
Scalr monitors traffic to your app and brings up new instances to cope with it by polling each instance for a response. The health of the farm is continuously monitored and maintained. When the Load Average on a type of node goes above a configurable threshold a new node is inserted into the farm to spread the load and the cluster is reconfigured. When a node crashes a new machine of that type is inserted into the farm to replace it.
Databases are managed by maintaining a master database, that when put under heavy loads Scalr will bring up clones of the database as slaves. The app will read from the slaves freeing up resources on the master, which is often cpu bound, and allows you to make intensive queries without killing overall performance. Besides the intelligent and auto provisioning features of Scalr, it also offers a disaster recovery feature. If a database server or web service master is lost, Scalr can promote a slave server to the master service in order to provide a fault tolerant solution.
There's 0 Comment So Far
Share your thoughts, leave a comment!