question

ssujeshsasidharan-7673 avatar image
0 Votes"
ssujeshsasidharan-7673 asked BruceZhang-MSFT answered

IIS - Deployments unable to run multiple deployments parallely

Hi Team,
We are currently running multiple instances of our deployments using Octopus Deploy [Deployment Tool], and as part of the deployment we are accessing the application pools and virtual directories and our deployment step will Copy the Artifacts to Virtual Directory and also will update the Application Pool. Now we have some queries on this topic.

  1. Does IIS process one request at a time though it receives multiple requests. what happens when IIS Receives multiple requests to update Applicationhost.config file ?

  2. How can we monitor these requests which are being processed by IIS and if it fails or hangs how can we determine it. if we already have a tool which can do this then please let us know.


Thanks,
Sujesh Sasidharan



windows-server-iis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

BruceZhang-MSFT avatar image
0 Votes"
BruceZhang-MSFT answered

Hi @ssujeshsasidharan-7673 ,

I'm not sure how Octopus Deploy send deployment requests to IIS. It is not a deployment tool from Microsoft. So I want to discuss with you the situation when use WebDeploy or manual deploy.

Does IIS process one request at a time though it receives multiple requests. what happens when IIS Receives multiple requests to update Applicationhost.config file ?

Updating the applicationhost.config file is actually a process that opens it, writes to it and closes it. While the Windows system handles multiple processes to read and write the same file, only one process is allowed to read and write and lock the file state. No other process can read or write until the current process completely closes the file and releases the lock.

How can we monitor these requests which are being processed by IIS and if it fails or hangs how can we determine it. if we already have a tool which can do this then please let us know.

It is not IIS but the Windows system that handles the update deployment request. The Windows system copies and pastes the application files to the server's disk, and sets the physical path of the new site in the applicationhost.config file to point to this folder. So I think you should monitor modifications to the applicationhost.config file.
Set a basic audit policy on applicationhost.config file is a great way to monitor deployment.



If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Best regards,
Bruce Zhang


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.