-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.autoscale.json
65 lines (65 loc) · 1.6 KB
/
config.autoscale.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"name": "boto",
"zones": ["us-east-1a"],
"identity_file": "elasticsearch.pem",
"user": "ubuntu",
"fabfile": "./fabfile.py",
"fabric": {
"parallel": true
},
"rules": [
{
"from_port": 22, "to_port": 22,
"cidr_ip": "0.0.0.0/0", "ip_protocol": "tcp"
},
{
"from_port": 9200, "to_port": 9200,
"cidr_ip": "0.0.0.0/0", "ip_protocol": "tcp"
}
],
"instance": {
"image_id": "ami-6d895004",
"key_name": "elasticsearch",
"instance_type": "m1.small"
},
"load_balancer": {
"listeners": [
[80, 9200, "http"]
],
"health_checks": [
{
"interval": 20,
"healthy_threshold": 3,
"unhealthy_threshold": 5,
"target": "HTTP:9200/_status"
}
]
},
"autoscale": {
"max_size": 5, "min_size": 2,
"default_cooldown": 180,
"desired_capacity": 2,
"scaling_policies": [
{
"name": "up",
"scaling_adjustment": 2,
"alarms": [
{
"comparison": ">",
"threshold": "70"
}
]
},
{
"name": "down",
"scaling_adjustment": -1,
"alarms": [
{
"comparison": "<=",
"threshold": "30"
}
]
}
]
}
}