Use a CTE instead of healthy_storages view
Right now we have a healthy_storages
database view that has hard-coded thresholds. We break this out into a common table expression (CTE) in preparation for making the node failure thresholds
configurable and possibly replaced with a Gossip-based protocol.
Edited by Stan Hu