Hello everyone,
today I come to you with an interesting question: is it possible to assign servers to the pre-deployment step?
The short answer is most likely "no", because the roc assign servers action only allows to assign servers to the deployment and post-deploy phase and also you would assign servers to a process that is already running.
So, I know this might sound insane and you're asking yourself, why I am asking this here, when I already know the answer. Well, the thing is, we're facing a problem now, for which I need a solution and maybe some of you faced this as well and might have an answer.
The problem is the following:
we have two server types assigned to our pre-deployment, "utility" and "environemnt servers". Uitily only includes one server that is allowed to run in parallel, "Envirnment Servers" got all the target servers of one environment assigned and these servers are NOT allowed to run in parallel, because we might run into trouble during the installation. The Environment Servers are in the pre-deployment, because we're running pre-checks on the servers, to see if the deployment can succeed (permission checks etc.). So, for a small application this wouldn't really be a problem, but we have a big one with several sub-projects and if all sub-projects (or at least two) are being deployed at the same time, the deployments block each other, because the pre-deployment will run one after the other. I know this is because CA-RA checks what server types and so which servers are needed for the process to run and reserves those servers, so as long as they are not allowed to run in parallel other deployments, that use the same servers, will be blocked.
This wasn't as much of a problem up until now, I mean, it wasn't nice, to have to wait, but it was only because they deployed several projects of the same application to the same environment. But the problem now is, that one of these servers might be used in several environments, which means that someone is deploying to Env A he is blocking a deployment to Env B, although the server itself might not even be used for the deployment itself and it is only reservered for the pre-deployment, because the server is part of the environment servers server type.
If I allow this one server to run in parallel, the blocking shouldn't happen, right?
Nevertheless, I'm really curious about if there is any possible way to define/assign the servers for a server type for the pre-deployment
best regards
Michael