set max replicas