Skip to content

Commit f546ff5

Browse files
authored
Merge pull request #58605 from opayne1/OSDOCS-5675
OSDOCS#5675: Adds etcd configuration options
2 parents 8e49dce + 3e95464 commit f546ff5

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

microshift_support/microshift-etcd.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ toc::[]
1212
:FeatureName: MicroShift
1313
include::snippets/microshift-tech-preview-snip.adoc[leveloffset=+1]
1414

15-
include::modules/microshift-observe-debug-etcd-server.adoc[leveloffset=+1]
15+
include::modules/microshift-observe-debug-etcd-server.adoc[leveloffset=+1]
16+
include::modules/microshift-configuration.adoc[leveloffset=+1]

modules/microshift-configuration.adoc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Module included in the following assemblies:
2+
//
3+
//* microshift_support/microshift-etcd.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="microshift-configuration_{context}"]
7+
= Configuring the `memoryLimitMB` value to set parameters for the {product-title} etcd server
8+
9+
By default, etcd will use as much memory as necessary to handle the load on the system. In some memory constrained systems, it might be necessary to limit the amount of memory etcd is allowed to use at a given time.
10+
11+
.Procedure
12+
13+
* Edit the `/etc/microshift/config.yaml` file to set the `memoryLimitMB` value.
14+
+
15+
[source,yaml]
16+
----
17+
etcd:
18+
memoryLimitMB: 128
19+
----
20+
+
21+
[NOTE]
22+
====
23+
128mb is the minimum permissible value for memoryLimitMB on {product-title}. Values close to the minimum value are more likely to impact etcd performance. The lower the limit, the longer it will take to respond to queries. In addition, if the limit is low or the etcd usage is high, queries will time request out.
24+
====
25+
26+
.Verification
27+
28+
. After modifying the `memoryLimitMB` value in `/etc/microshift/config.yaml`, restart {product-title} by running the following command:
29+
----
30+
$ sudo systemctl restart microshift
31+
----
32+
33+
. Verify the new `memoryLimitMB` value is in use by running the following command:
34+
----
35+
$ systemctl status microshift
36+
----

0 commit comments

Comments
 (0)