Questo contenuto non è disponibile nella lingua selezionata.
Chapter 1. The etcd service
The Red Hat build of MicroShift RPM includes the etcd service. The etcd service runs as a separate process. MicroShift automatically manages the etcd lifecycle.
1.1. Observe and debug the MicroShift etcd server Copia collegamentoCollegamento copiato negli appunti!
You can gather journalctl
logs to observe and debug the etcd server logs.
Prerequisites
- The MicroShift service is running.
Procedure
To get the logs for etcd, run the following command:
sudo journalctl -u microshift-etcd.scope
$ sudo journalctl -u microshift-etcd.scope
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteMicroShift logs can be accessed separately from etcd logs using the
journalctl -u microshift
command.
1.2. Configuring the memoryLimitMB value to set parameters for the etcd server Copia collegamentoCollegamento copiato negli appunti!
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.
Procedure
Edit the
/etc/microshift/config.yaml
file to set thememoryLimitMB
value.etcd: memoryLimitMB: 128
etcd: memoryLimitMB: 128
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe minimum permissible value for
memoryLimitMB
on MicroShift is 128 MB. Values close to the minimum value are more likely to impact etcd performance. The lower the limit, the longer etcd takes to respond to queries. If the limit is too low or the etcd usage is high, queries time out.
Verification
After modifying the
memoryLimitMB
value in/etc/microshift/config.yaml
, restart MicroShift by running the following command:sudo systemctl restart microshift
$ sudo systemctl restart microshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the new
memoryLimitMB
value is in use by running the following command:systemctl show --property=MemoryHigh microshift-etcd.scope
$ systemctl show --property=MemoryHigh microshift-etcd.scope
Copy to Clipboard Copied! Toggle word wrap Toggle overflow