Optimal resilient distributed data collection in mobile edge environments