// Module included in the following assemblies:
//
//* microshift_support/microshift-etcd.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-config-etcd_{context}"]
= Configuring the memoryLimitMB value to set parameters for the etcd server

[role="_abstract"]
By default, etcd uses as much memory as necessary to handle the system load. On memory-constrained systems, limiting the amount of memory etcd uses might be necessary. Configure the `memoryLimitMB` parameter to restrict the memory consumption of the etcd server.

.Procedure

* Edit the `/etc/microshift/config.yaml` configuration file to set the `memoryLimitMB` value.
+
[source,yaml]
----
etcd:
  memoryLimitMB: 128
----
+
[NOTE]
====
The minimum required value for `memoryLimitMB` on {microshift-short} is 128 MB. Values close to the minimum value are more likely to impact `etcd` performance. Lower limits increase the time etcd takes to respond to queries. If the limit is too low or etcd usage is high, queries might time out.
====

.Verification

. Restart {microshift-short} to apply the changes by running the following command:
+
[source,terminal]
----
$ sudo systemctl restart microshift
----

. Verify that the new `memoryLimitMB` value is in use by running the following command:
+
[source,terminal]
----
$ systemctl show --property=MemoryHigh microshift-etcd.scope
----