SPARK: a smart parametric online RWA algorithm