Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: docs/source/autoscale_tut.rst

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « boto/vpc/subnet.py ('k') | docs/source/elb_tut.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .. _autoscale_tut: 1 .. _autoscale_tut:
2 2
3 ============================================= 3 =============================================
4 An Introduction to boto's Autoscale interface 4 An Introduction to boto's Autoscale interface
5 ============================================= 5 =============================================
6 6
7 This tutorial focuses on the boto interface to the Autoscale service. This 7 This tutorial focuses on the boto interface to the Autoscale service. This
8 assumes you are familiar with boto's EC2 interface and concepts. 8 assumes you are familiar with boto's EC2 interface and concepts.
9 9
10 Autoscale Concepts 10 Autoscale Concepts
(...skipping 24 matching lines...) Expand all
35 Alternatively, you can use the shortcut: 35 Alternatively, you can use the shortcut:
36 36
37 >>> conn = boto.connect_autoscale() 37 >>> conn = boto.connect_autoscale()
38 38
39 A Note About Regions and Endpoints 39 A Note About Regions and Endpoints
40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 Like EC2 the Autoscale service has a different endpoint for each region. By 41 Like EC2 the Autoscale service has a different endpoint for each region. By
42 default the US endpoint is used. To choose a specific region, instantiate the 42 default the US endpoint is used. To choose a specific region, instantiate the
43 AutoScaleConnection object with that region's endpoint. 43 AutoScaleConnection object with that region's endpoint.
44 44
45 >>> ec2 = boto.connect_autoscale(host='eu-west-1.autoscaling.amazonaws.com') 45 >>> ec2 = boto.connect_autoscale(host='autoscaling.eu-west-1.amazonaws.com')
46 46
47 Alternatively, edit your boto.cfg with the default Autoscale endpoint to use:: 47 Alternatively, edit your boto.cfg with the default Autoscale endpoint to use::
48 48
49 [Boto] 49 [Boto]
50 autoscale_endpoint = eu-west-1.autoscaling.amazonaws.com 50 autoscale_endpoint = autoscaling.eu-west-1.amazonaws.com
51 51
52 Getting Existing AutoScale Groups 52 Getting Existing AutoScale Groups
53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 54
55 To retrieve existing autoscale groups: 55 To retrieve existing autoscale groups:
56 56
57 >>> conn.get_all_groups() 57 >>> conn.get_all_groups()
58 58
59 You will get back a list of AutoScale group objects, one for each AG you have. 59 You will get back a list of AutoScale group objects, one for each AG you have.
60 60
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 measure_name='CPUUtilization', statistic='Average', 131 measure_name='CPUUtilization', statistic='Average',
132 unit='Percent', 132 unit='Percent',
133 dimensions=[('AutoScalingGroupName', ag.name)], 133 dimensions=[('AutoScalingGroupName', ag.name)],
134 period=60, lower_threshold=40, 134 period=60, lower_threshold=40,
135 lower_breach_scale_increment='-5', 135 lower_breach_scale_increment='-5',
136 upper_threshold=80, 136 upper_threshold=80,
137 upper_breach_scale_increment='10', 137 upper_breach_scale_increment='10',
138 breach_duration=360) 138 breach_duration=360)
139 >> conn.create_trigger(tr) 139 >> conn.create_trigger(tr)
140 140
OLDNEW
« no previous file with comments | « boto/vpc/subnet.py ('k') | docs/source/elb_tut.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698