The Auto Scaling rules screen opens Scale out and Scale in are selected by

The auto scaling rules screen opens scale out and

This preview shows page 337 - 338 out of 395 pages.

The Auto Scaling rules screen opens. Scale out and Scale in are selected by default, and default rules are pre-configured with settings suitable for many applications. 3. Type the Maximum instances you want the instance group to contain after it scales out, and type the Minimum instances you want the instance group to contain after it scales in. 4. Click the pencil to edit rule parameters, click the X to remove a rule from the policy, and click Add rule to add additional rules. 5. Choose rule parameters as described earlier in this topic. For descriptions of available CloudWatch metrics for Amazon EMR, see Amazon EMR Metrics and Dimensions in the Amazon CloudWatch User Guide . Using the AWS CLI to Configure Automatic Scaling You can use AWS CLI commands for Amazon EMR to configure automatic scaling when you create a cluster and when you create an instance group. You can use a shorthand syntax, specifying the JSON configuration inline within the relevant commands, or you can reference a file containing the configuration JSON. You can also apply an automatic scaling policy to an existing instance group and remove an automatic scaling policy that was previously applied. In addition, you can retrieve details of a scaling policy configuration from a running cluster. Important When you create a cluster that has an automatic scaling policy, you must use the --auto- scaling-role MyAutoScalingRole command to specify the IAM role for autoscaling. The default role is EMR_AutoScaling_DefaultRole and can be created with the create- default-roles command. The role can only be added when the cluster is created, and cannot be added to an existing cluster. For a detailed description of the parameters available when configuring an automatic scaling policy, see PutAutoScalingPolicy in Amazon EMR API Reference . Creating a Cluster with an Automatic Scaling Policy Applied to an Instance Group You can specify an automatic scaling configuration within the --instance-groups option of the aws emr create-cluster command. The following example illustrates a create-cluster command where an automatic scaling policy for the core instance group is provided inline. The command creates a scaling configuration equivalent to the default scale-out policy that appears when you create an automatic scaling policy using the AWS Management Console for Amazon EMR. For brevity, a scale-in policy is not shown. We do not recommend creating a scale-out rule without a scale-in rule. aws emr create-cluster --release-label emr-5.2.0 --service-role EMR_DefaultRole --ec2-attributes InstanceProfile=EMR_EC2_DefaultRole --auto-scaling-role EMR_AutoScaling_DefaultRole --instance-groups Name= MyMasterIG ,InstanceGroupType=MASTER,InstanceType= m5.xlarge ,InstanceCount=1 'Name= MyCoreIG ,InstanceGroupType=CORE,InstanceType= m5.xlarge ,InstanceCount= 2 ,AutoScalingPolicy={Constr scale-out ,Description= Replicates the default scale-out rule in the console. ,Action={SimpleScalingPolicyConfiguration={AdjustmentType= CHANGE_IN_CAPACITY ,ScalingAdjustment ElasticMapReduce,Period= 300
Image of page 337
Image of page 338

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes