Configure the memoryLimitMB value to set parameters for the etcd server
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.
-
Edit the
/etc/microshift/config.yamlconfiguration file to set thememoryLimitMBvalue.etcd: memoryLimitMB: 128The minimum required value for
memoryLimitMBon MicroShift is 128 MB. Values close to the minimum value are more likely to impactetcdperformance. 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.
-
Restart MicroShift to apply the changes by running the following command:
$ sudo systemctl restart microshift -
Verify that the new
memoryLimitMBvalue is in use by running the following command:$ systemctl show --property=MemoryHigh microshift-etcd.scope