Added a feature to update the number of active cores on the cluster