From 83368f6b99d51cddac258674df0d8858514f30da Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Tue, 6 Aug 2019 13:00:22 +0200 Subject: [PATCH] Add disarm alarm on etcd troubleshooting --- .../kubernetes-components/_index.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/content/rancher/v2.x/en/troubleshooting/kubernetes-components/_index.md b/content/rancher/v2.x/en/troubleshooting/kubernetes-components/_index.md index e224efc44ce..5aa3f29d4c9 100644 --- a/content/rancher/v2.x/en/troubleshooting/kubernetes-components/_index.md +++ b/content/rancher/v2.x/en/troubleshooting/kubernetes-components/_index.md @@ -305,6 +305,34 @@ Example output: +-----------------+------------------+---------+---------+-----------+-----------+------------+ ``` +* Disarm alarm + +After verifying that the DB size went down after compaction and defragmenting, the alarm needs to be disarmed for etcd to allow writes again. + +Command when no internal address is configured on the host: +``` +docker exec etcd etcdctl alarm list +docker exec etcd etcdctl alarm disarm +docker exec etcd etcdctl alarm list +``` + +Command when internal address is configured on the host: +``` +docker exec etcd sh -c "etcdctl --endpoints=\$ETCDCTL_ENDPOINT alarm list" +docker exec etcd sh -c "etcdctl --endpoints=\$ETCDCTL_ENDPOINT alarm disarm" +docker exec etcd sh -c "etcdctl --endpoints=\$ETCDCTL_ENDPOINT alarm list" +``` + +Example output: +``` +docker exec etcd etcdctl alarm list +memberID:x alarm:NOSPACE +memberID:x alarm:NOSPACE +memberID:x alarm:NOSPACE +docker exec etcd etcdctl alarm disarm +docker exec etcd etcdctl alarm list +``` + ### Log level The log level of etcd can be changed dynamically via the API. You can configure debug logging using the commands below.