Fast edge resource scaling with distributed DNN