Skip to main content

etcd의 member확인

k8s의 DB성격인 etcd의 상태 점검시 확인할 수 있는 몇가지 포인트들

  1. member list
    $>  /usr/local/bin/etcdctl.sh -w table member list
    +------+---------+---------+-----------+------------+
    |  ID  | TATUS | PEER ADDRS | CLIENT ADDRESS | IS LEARNER |
    +------+---------+---------+-----------+------------+
    | abcd |  3.4.13 |   11 MB |     true  |      false |
    | 1234 |  3.4.13 |   11 MB |     false |      false |
    | efgh |  3.4.13 |   11 MB |     false |      false |
    +------+---------+---------+-----------+------------+

  2. endpoint (데이터 상태 크기 확인)
    $>  /usr/local/bin/etcdctl.sh -w table endpoint status --cluster=true
    +---------------------------+------+---------+---------+-----------+------------+
    |       ENDPOINT            |  ID  | VERSION | DB SIZE | IS LEADER | IS LEARNER |
    +---------------------------+------+---------+---------+-----------+------------+
    | https://192.168.0.10:2379 | abcd |  3.4.13 |   11 MB |     true  |      false |
    | https://192.168.0.11:2379 | 1234 |  3.4.13 |   11 MB |     false |      false |
    | https://192.168.0.12:2379 | efgh |  3.4.13 |   11 MB |     false |      false |
    +---------------------------+------+---------+---------+-----------+------------+