Verify CoreOS Cluster Functionality


In this case we are verifying cluster status and health for a CoreOS cluster that used a static bootstrap.

This will list each member using etcdctl


core1 ~ # etcdctl member list
ed0ea64cc5a9fb4: name=core1 peerURLs=http://192.168.1.201:2380 clientURLs=http://0.0.0.0:2379,http://0.0.0.0:4001 isLeader=false
7702260f206a68cf: name=core3 peerURLs=http://192.168.1.203:2380 clientURLs=http://0.0.0.0:2379,http://0.0.0.0:4001 isLeader=false
976e14baeafe02ec: name=core2 peerURLs=http://192.168.1.202:2380 clientURLs=http://0.0.0.0:2379,http://0.0.0.0:4001 isLeader=true

This can be used to verify overall cluster health

core1 ~ # etcdctl cluster-health
member ed0ea64cc5a9fb4 is healthy: got healthy result from http://0.0.0.0:2379
member 7702260f206a68cf is healthy: got healthy result from http://0.0.0.0:2379
member 976e14baeafe02ec is healthy: got healthy result from http://0.0.0.0:2379
cluster is healthy

Verify CoreOS logs using journalctl, you can tail it using the -f parameter

core1 ~ # journalctl -f