We have cluster of 4 nodes, where 2 nodes are master and data and other 2 nodes are data nodes, the configuration was working fine since 2 yrs, today we have to restart the cluster and since then we are getting master not discovered exception

The problem is here: your storage is so slow that it appears to be broken. You need to work out why it's so slow.