Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 494 Bytes

4.alarm.MD

File metadata and controls

35 lines (24 loc) · 494 Bytes

设置 etcd 存储大小

etcd --quota-backend-bytes=$((16*1024*1024))

写爆磁盘

while [ 1 ]; do dd if=/dev/urandom bs=1024 count=1024 | ETCDCTL_API=3 etcdctl put key || break; done

查看 endpoint 状态

ETCDCTL_API=3 etcdctl --write-out=table endpoint status

查看 alarm

ETCDCTL_API=3 etcdctl alarm list

清理碎片

ETCDCTL_API=3 etcdctl defrag

清理 alarm

ETCDCTL_API=3 etcdctl alarm disarm