-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.yaml
103 lines (103 loc) · 3.1 KB
/
config.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
user_config:
monitor_with_logs: true
monitor_with_simulator: false
# Purge fetchMetrics documents after this time
purge_old_docs_after_hours: 72
recommendation_polling_interval_in_secs: 300
fetchmetrics_polling_interval_in_secs: 300
is_accelerated: false
cluster_details:
# opensearch cluster name
cluster_name: cluster.1
cloud_type: AWS
# Maximum number of nodes at any point in the cluster
max_nodes_allowed: 10
# Minimum number of nodes at any point in the cluster
min_nodes_allowed: 3
# AWS launch template ID
launch_template_id: lt-000123f47e5c68904
launch_template_version: "1"
# ssh login username & group
os_user: ubuntu
os_group: ubuntu
# opensearch version
os_version: 2.3.0
# Default opensearch config path.
os_home: /usr/share/opensearch
# Domain name for opensearch nodes. It is required to configure SSL.
domain_name: snappyflow.com
# opensearch credentials
os_credentials:
os_admin_username: admin
os_admin_password: admin
# Either give secret_key & access_key or role_arn
cloud_credentials:
pem_file_path: /usr/share/pemfile.pem
secret_key: secret_key
access_key: access_key
region: us-west-2
role_arn: arn:aws:iam::123456789000:role/ADMIN-ROLE
# Specify the percent of RAM to be allocated to HEAP. Ex: 0.5 = 50% of RAM to be allocated as Heap memory
# Please note that this factory multiplied by your RAM should not exceed 32GB
# Also, this value can't be greater than 50% as that is the max RAM that can be allocated to heap
jvm_factor: 0.5
task_details:
- task_name: scale_up_by_1
operator: OR
rules:
- metric: CpuUtil
limit: 80
stat: COUNT
decision_period: 60
occurrences_percent: 85
- metric: RamUtil
limit: 80
stat: COUNT
decision_period: 60
occurrences_percent: 85
- metric: HeapUtil
limit: 80
stat: COUNT
decision_period: 60
occurrences_percent: 85
- metric: ShardsPerGB
limit: 25
stat: TERM
decision_period: 180
- metric: DiskUtil
limit: 75
stat: COUNT
decision_period: 60
occurrences_percent: 85
- task_name: scale_up_by_1
operator: EVENT
rules:
- scheduling_time: 0 0 * * 1
- task_name: scale_down_by_1
operator: EVENT
rules:
- scheduling_time: 0 0 * * 5
- task_name: scale_down_by_1
operator: AND
rules:
- metric: CpuUtil
limit: 30
stat: COUNT
decision_period: 720
occurrences_percent: 95
- metric: HeapUtil
limit: 30
stat: COUNT
decision_period: 720
occurrences_percent: 95
- metric: RamUtil
limit: 45
stat: COUNT
decision_period: 720
occurrences_percent: 95
- metric: DiskUtil
limit: 50
stat: COUNT
decision_period: 720
occurrences_percent: 95