-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoscaling-test.yaml
80 lines (79 loc) · 1.93 KB
/
autoscaling-test.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
---
apiVersion: autoscaling.k8s.elastic.co/v1alpha1
kind: ElasticsearchAutoscaler
metadata:
name: autoscaling-sample
spec:
elasticsearchRef:
name: elasticsearch
policies:
- name: di
roles: ["data", "ingest" , "transform"]
## Autoscaling deciders (https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-deciders.html) come with
## default settings. Uncomment the lines below to adjust the deciders settings.
#deciders:
## 'proactive_storage' is only provided as an example, each role comes with specific individual autoscaling deciders.
# proactive_storage:
# forecast_window: 5m
resources:
nodeCount:
min: 3
max: 8
cpu:
min: 2
max: 8
memory:
min: 2Gi
max: 16Gi
storage:
min: 64Gi
max: 512Gi
- name: ml
roles:
- ml
resources:
nodeCount:
min: 1
max: 9
cpu:
min: 1
max: 4
memory:
min: 2Gi
max: 8Gi
storage:
min: 1Gi
max: 1Gi
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch-2
spec:
version: 8.7.0
nodeSets:
- name: master
count: 3
podTemplate:
spec:
containers:
- name: elasticsearch
# Specify both limits and requests to benefit from the desired nodes API / Elasticsearch resources aware management.
resources:
limits:
memory: 4Gi
cpu: 2
config:
node:
roles: [ "master" ]
store.allow_mmap: false
- name: di
config:
node:
roles: [ "data", "ingest", "transform" ]
store.allow_mmap: false
- name: ml
config:
node:
roles: [ "ml" ]
store.allow_mmap: false