just looking for some clarification here I have a 2 node etcd cluster:
master01=http://10.1.1.21:2379,master02=http://10.1.1.22:2379
all running fine. If I login to master01 and do the following:
etcdctl --cluster=true endpoint health
i get a good response:
http://10.1.1.21:2379 is healthy: successfully committed proposal: took = 25.628392ms
http://10.1.1.22:2379 is healthy: successfully committed proposal: took = 42.98645ms
all operations get, put are running as expected.
ETCDCTL_API=3 etcdctl --endpoints=http://10.1.1.21:2379,http://10.1.1.22:2379 get date
The trouble starts when I drop one of the nodes, so if i kill one node I am now getting errors instead of results for example:
ETCDCTL_API=3 etcdctl --endpoints=http://10.1.1.21:2379,http://10.1.1.22:2379 get date
{"level":"warn","ts":"2021-09-09T08:58:22.175Z","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0000e0a80/#initially=[http://10.1.1.21:2379;http://10.1.1.22:2379]","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
Error: context deadline exceeded
in this case i killed off master01, am i doing something wrong?