set {max,min}_cores in resource hash