-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlxc_autoscale.yaml
72 lines (70 loc) · 1.99 KB
/
lxc_autoscale.yaml
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
71
72
# Default configuration values
DEFAULTS:
log_file: /var/log/lxc_autoscale.log
lock_file: /var/lock/lxc_autoscale.lock
backup_dir: /var/lib/lxc_autoscale/backups
reserve_cpu_percent: 10
reserve_memory_mb: 2048
# Percentage of CPU cores to reserve (e.g., 10%)
reserve_cpu_percent: 10
# Amount of memory (in MB) to reserve (e.g., 2048 MB)
reserve_memory_mb: 2048
# Start hour for off-peak energy-saving mode (e.g., 10 PM)
off_peak_start: 22
# End hour for off-peak energy-saving mode (e.g., 6 AM)
off_peak_end: 6
# Behaviour mode (e.g., 'normal', 'conservative', 'aggressive')
behaviour: normal
# Default CPU upper threshold (%)
cpu_upper_threshold: 80
# Default CPU lower threshold (%)
cpu_lower_threshold: 20
# Default Memory upper threshold (%)
memory_upper_threshold: 70
# Default Memory lower threshold (%)
memory_lower_threshold: 20
# Default minimum number of CPU cores
min_cores: 1
# Default maximum number of CPU cores
max_cores: 4
# Default minimum memory (MB)
min_memory: 256
# Default core increment
core_min_increment: 1
# Default core max increment: 2
core_max_increment: 2
# Default memory increment (MB)
memory_min_increment: 256
# Default memory decrement (MB)
min_decrease_chunk: 256
ignore_lxc:
- "104" # Update to string format for consistency
# Tier configurations
TIER_webservers:
lxc_containers:
- "102" # Update to string format
cpu_upper_threshold: 70
cpu_lower_threshold: 20
memory_upper_threshold: 80
memory_lower_threshold: 20
min_cores: 1
max_cores: 4
min_memory: 4096
core_min_increment: 1
core_max_increment: 2
memory_min_increment: 1024
min_decrease_chunk: 1024
TIER_other:
lxc_containers:
- "103" # Update to string format
cpu_upper_threshold: 60
cpu_lower_threshold: 20
memory_upper_threshold: 50
memory_lower_threshold: 20
min_cores: 1
max_cores: 2
min_memory: 256
core_min_increment: 1
core_max_increment: 1
memory_min_increment: 128
min_decrease_chunk: 64