Zend_Service_Amazon_Ec2: InstancesInstance TypesAmazon EC2 instances are grouped into two families: standard and High-CPU. Standard instances have memory to CPU ratios suitable for most general purpose applications; High-CPU instances have proportionally more CPU resources than memory (RAM) and are well suited for compute-intensive applications. When selecting instance types, you might want to use less powerful instance types for your web server instances and more powerful instance types for your database instances. Additionally, you might want to run CPU instance types for CPU-intensive data processing tasks. One of the advantages of EC2 is that you pay by the instance hour, which makes it convenient and inexpensive to test the performance of your application on different instance families and types. One good way to determine the most appropriate instance family and instance type is to launch test instances and benchmark your application.
Running Amazon EC2 InstancesThis section describes the operation methods for maintaining Amazon EC2 Instances. Example #1 Starting New Ec2 Instances
Example #2 Rebooting an Ec2 Instances
This operation is asynchronous; it only queues a request to reboot the specified instance(s). The operation will succeed if the instances are valid and belong to the user. Requests to reboot terminated instances are ignored.
Example #3 Terminating an Ec2 Instances
Amazon Instance UtilitiesIn this section you will find out how to retreive information, the console output and see if an instance contains a product code. Example #4 Describing Instances
If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault is returned. If you specify an instance that you do not own, it will not be included in the returned results.
Example #5 Describing Instances By Image Id
Example #6 Retreiving Console Output
Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least one hour after the most recent post.
Example #7 Confirm Product Code on an Instance
The
Example #8 Turn on CloudWatch Monitoring on an Instance(s)
Example #9 Turn off CloudWatch Monitoring on an Instance(s)
|
|