merge: allow setting restart_threshold in each configuration