After enabling the Metrics plugin in the endpoints, they take around the time of ‘MetricsInterval’ until the shutdown is complete. The endpoints are running as windows services.
Configuration is as follows.
var metrics = endpointConfiguration.EnableMetrics();
When I set MetricsInterval to 10 minutes, shutdown takes around this time. When I set it to 1 second, the shutdown is more or less immediately.
Is this the expected behavior? Interestingly the slow shutdown doesn’t happen when running the process in console (for graceful shutdown, not killing the process).
Expected production settings for MetricsInterval would be expected to be around 30" to 1’.
This would slow down the deployment process significantly for us