This repository was archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpool.json
More file actions
70 lines (70 loc) · 2.58 KB
/
pool.json
File metadata and controls
70 lines (70 loc) · 2.58 KB
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
66
67
68
69
70
{
"$schema": "http://json-schema.org/draft-04/schema",
"sfr_resource_group_definition": {
"type": "object",
"properties": {
"s3": {
"type": "object",
"required": ["bucket", "prefix"],
"properties": {
"bucket": {"type": "string"},
"prefix": {"type": "string"}
},
"additionalProperties": false
},
"tag": {"type": "string"}
},
"additionalProperties": false
},
"resource_groups_definition": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"sfr": {
"$ref": "#/sfr_resource_group_definition"
}
}
}
]
},
"type": "object",
"required": ["resource_groups", "scaling_limits"],
"properties": {
"resource_groups": {"$ref": "#/resource_groups_definition"},
"draining_enabled": {"type": "boolean"},
"scaling_limits": {
"type": "object",
"required": ["min_capacity", "max_capacity", "max_weight_to_add", "max_weight_to_remove"],
"properties": {
"min_capacity": {"$ref": "definitions.json#nonnegative_int"},
"max_capacity": {"$ref": "definitions.json#posint"},
"max_tasks_to_kill": {"anyOf": [
{"$ref": "definitions.json#nonnegative_int"},
{"$ref": "definitions.json#infinity"}
]},
"max_weight_to_add": {"$ref": "definitions.json#posint"},
"max_weight_to_remove": {"$ref": "definitions.json#posint"}
},
"additionalProperties": false
},
"autoscale_signal": {"$ref": "definitions.json#autoscale_signal"},
"autoscaling": {
"type": "object",
"properties": {
"excluded_resources": {
"type": "array",
"items": {"type": "string", "enum": ["cpus", "mem", "disk", "gpus"]}
},
"setpoint": {"$ref": "definitions.json#percentage"},
"setpoint_margin": {"$ref": "definitions.json#percentage"},
"target_capacity_margin": {"$ref": "definitions.json#percentage"}
},
"additionalProperties": false
},
"sensu_config": {"$ref": "definitions.json#sensu_config"},
"alert_on_max_capacity": {"type": "boolean"}
},
"additionalProperties": false
}