I’ve been doing similar testing and have found the same issue with unavailable ranges, even though I have set the replication factor to be 5 for a 5-node cluster. This is against version v2.1.0-beta.20181008. I start a 5 node cluster and have 0 unavailable/under-replicated ranges. If I stop 2 nodes at the same time then I end up with unavailable ranges. Based on the solution I didn’t think this was supposed to happen?
The commands I used to set the replication factor are as below:
echo 'num_replicas: 5' | ./cockroach zone set .default --insecure -f -
echo 'num_replicas: 5' | ./cockroach zone set .liveness --insecure -f -
echo 'num_replicas: 5' | ./cockroach zone set .meta --insecure -f -
echo 'num_replicas: 5' | ./cockroach zone set system.jobs --insecure -f -
echo 'num_replicas: 5' | ./cockroach zone set evo --insecure -f -