Introducción a Zend Framework

 Aprendiendo Zend Framework

Apéndice

 Referencia de Zend Framework


  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Traducción al 26.9% - Actualizado el 2011-11-16 - Revisión 24249 - Versión ZF 1.11.x

    63.7. Zend_Service_Amazon_Ec2: Reserved Instances

    With Amazon EC2 Reserved Instances, you can make a low one-time payment for each instance to reserve and receive a significant discount on the hourly usage charge for that instance.

    Amazon EC2 Reserved Instances are based on instance type and location (region and Availability Zone) for a specified period of time (e.g., 1 year or 3 years) and are only available for Linux or UNIX instances.

    63.7.1. How Reserved Instances are Applied

    Reserved Instances are applied to instances that meet the type/location criteria during the specified period. In this example, a user is running the following instances:

    • (4) m1.small instances in Availability Zone us-east-1a

    • (4) c1.medium instances in Availability Zone us-east-1b

    • (2) c1.xlarge instances in Availability Zone us-east-1b

    The user then purchases the following Reserved Instances.

    • (2) m1.small instances in Availability Zone us-east-1a

    • (2) c1.medium instances in Availability Zone us-east-1a

    • (2) m1.xlarge instances in Availability Zone us-east-1a

    Amazon EC2 applies the two m1.small Reserved Instances to two of the instances in Availability Zone us-east-1a. Amazon EC2 doesn't apply the two c1.medium Reserved Instances because the c1.medium instances are in a different Availability Zone and does not apply the m1.xlarge Reserved Instances because there are no running m1.xlarge instances.

    63.7.2. Reserved Instances Usage

    Ejemplo 63.25. Describes Reserved Instances that you purchased

    describeInstances() will return information about a reserved instance or instances that you purchased.

    describeInstances() returns a multi-demential array that contains reservedInstancesId, instanceType, availabilityZone, duration, fixedPrice, usagePrice, productDescription, instanceCount and state.

    $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Reserved('aws_key',
                                                         
    'aws_secret_key');
    $return $ec2_instance->describeInstances('instanceId');

    Ejemplo 63.26. Describe current Reserved Instance Offerings available

    describeOfferings() Describes Reserved Instance offerings that are available for purchase. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

    describeOfferings() returns a multi-demential array that contains reservedInstancesId, instanceType, availabilityZone, duration, fixedPrice, usagePrice and productDescription.

    $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Reserved('aws_key',
                                                         
    'aws_secret_key');
    $return $ec2_instance->describeOfferings();

    Ejemplo 63.27. Turn off CloudWatch Monitoring on an Instance(s)

    purchaseOffering() Purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

    purchaseOffering() returns the reservedInstanceId.

    $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Reserved('aws_key',
                                                         
    'aws_secret_key');
    $return $ec2_instance->purchaseOffering('offeringId''instanceCount');

    digg delicious meneame google twitter technorati facebook

    Comentarios

    Loading...