projectkudu / kudu

Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.
Apache License 2.0
3.12k stars 652 forks source link

PeriodicRestart not working for App Service configs #3485

Closed arvindsing closed 6 months ago

arvindsing commented 1 year ago

My customer is testing updates to applicationhost.config using XDT trasforms per this documentation: https://github.com/projectkudu/kudu/wiki/Xdt-transform-samples

and had some questions as it doesn’t appear to be working as expected. Here is the existing config for their test site:

  <add name="mgb-cps-test1-dev-e2-app" managedRuntimeVersion="v4.0">
    <processModel identityType="ApplicationPoolIdentity" />
    <recycling logEventOnRecycle="Schedule">
      <periodicRestart>
        <schedule>
          <clear />
          <add value="19:04:00" />
        </schedule>
      </periodicRestart>
    </recycling>
  </add>
  <add name="~1mgb-cps-test1-dev-e2-app" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated">
    <processModel identityType="ApplicationPoolIdentity" />
    <recycling logEventOnRecycle="Schedule">
      <periodicRestart>
        <schedule>
          <clear />
          <add value="19:04:00" />
        </schedule>
      </periodicRestart>
    </recycling>
  </add>
</applicationPools>

Questions: Does setting this periodicRestart actually work for App Service configs? How can we confirm? I was expecting to find something in Logfiles\eventlog.xml and there’s nothing.

jvano commented 6 months ago

Hi

If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

This way we can better track and assist you on this case

Thanks,

Joaquin Vano Azure App Service