Este conteúdo não está disponível no idioma selecionado.
Chapter 7. Troubleshoot etcd
To troubleshoot etcd and improve performance, configure the memory allowance for the service.
7.1. Configuring the memoryLimitMB value to set parameters for the etcd server
By default, etcd uses as much memory as necessary to handle the load on the system. In memory-constrained systems, you might need to limit the amount of memory etcd uses.
Procedure
- Edit the - /etc/microshift/config.yamlfile to set the- memoryLimitMBvalue.- etcd: memoryLimitMB: 128 - etcd: memoryLimitMB: 128- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow Note- The minimum required value for - memoryLimitMBon 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 - memoryLimitMBvalue 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 - memoryLimitMBvalue 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