microsoft / IIS.ServiceMonitor

An entrypoint process for running IIS in Windows containers
MIT License
126 stars 42 forks source link

Make Start/stop timeout configurable #5

Closed fgather closed 6 years ago

fgather commented 6 years ago

Sometimes our IIS container does not start up since the timeout of 20 seconds is quite low for a large site spinned up on a machine with high load. Could you add an additional option to set the timeout as commandline parameter?

shirhatti commented 6 years ago

As far as I'm aware, there's no 20 seconds timeout in ServiceMonitor. What error are you seeing?

bariscaglar commented 6 years ago

Looks like we did not get the follow up answer here. Please reactivate if you are still having problems.

gitfool commented 1 year ago

I'm seeing with some windows services that take too long to start and have recently been containerized. SM waits for 20s: https://github.com/microsoft/IIS.ServiceMonitor/blob/1c4153056fd8ad8e61317af115153180dc10c2cc/src/ServiceMonitor/Main.cpp#L94 https://github.com/microsoft/IIS.ServiceMonitor/blob/1c4153056fd8ad8e61317af115153180dc10c2cc/src/ServiceMonitor/ServiceMonitor.h#L26 Please make this configurable from the command-line.