Supports reconfiguration when instance count changed.