add outer retry and reconnect (such as mysql, kafka, zookeeper)