You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/cluster-logging-logstore-limits.adoc
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
// * logging/cluster-logging-elasticsearch.adoc
4
4
5
5
[id="cluster-logging-logstore-limits_{context}"]
6
-
= Configuring CPU and memory requests for the log store
6
+
= Configuring CPU and memory requests for the log store
7
7
8
8
Each component specification allows for adjustments to both the CPU and memory requests.
9
9
You should not have to manually adjust these values as the Elasticsearch
@@ -14,7 +14,7 @@ Operator sets values sufficient for your environment.
14
14
In large-scale clusters, the default memory limit for the Elasticsearch proxy container might not be sufficient, causing the proxy container to be OOMKilled. If you experience this issue, increase the memory requests and limits for the Elasticsearch proxy.
15
15
====
16
16
17
-
Each Elasticsearch node can operate with a lower memory setting though this is *not* recommended for production deployments.
17
+
Each Elasticsearch node can operate with a lower memory setting though this is *not* recommended for production deployments.
18
18
For production use, you should have no less than the default 16Gi allocated to each pod. Preferably you should allocate as much as possible, up to 64Gi per pod.
19
19
20
20
.Prerequisites
@@ -46,16 +46,17 @@ spec:
46
46
cpu: "1"
47
47
memory: "64Gi"
48
48
proxy: <2>
49
-
limits:
50
-
memory: 100Mi
51
-
requests:
52
-
memory: 100Mi
49
+
resources:
50
+
limits:
51
+
memory: 100Mi
52
+
requests:
53
+
memory: 100Mi
53
54
----
54
55
<1> Specify the CPU and memory requests for Elasticsearch as needed. If you leave these values blank,
55
56
the Elasticsearch Operator sets default values that should be sufficient for most deployments. The default values are `16Gi` for the memory request and `1` for the CPU request.
56
57
<2> Specify the CPU and memory requests for the Elasticsearch proxy as needed. If you leave these values blank, the Elasticsearch Operator sets default values that should be sufficient for most deployments. The default values are `256Mi` for the memory request and `100m` for the CPU request.
57
58
58
-
If you adjust the amount of Elasticsearch memory, you must change both the request value and the limit value.
59
+
If you adjust the amount of Elasticsearch memory, you must change both the request value and the limit value.
59
60
60
61
For example:
61
62
@@ -69,5 +70,5 @@ For example:
69
70
memory: "32Gi"
70
71
----
71
72
72
-
Kubernetes generally adheres the node configuration and does not allow Elasticsearch to use the specified limits.
73
+
Kubernetes generally adheres the node configuration and does not allow Elasticsearch to use the specified limits.
73
74
Setting the same value for the `requests` and `limits` ensures that Elasticsearch can use the memory you want, assuming the node has the memory available.
0 commit comments