WIRE: Resource-efficient Scaling with Online Prediction for DAG-based Workflows