gpt4 book ai didi

azure - Windows Azure Web App - 安排应用程序池回收

转载 作者:行者123 更新时间:2023-12-03 05:59:51 25 4
gpt4 key购买 nike

我有一个 Windows Azure Web 应用程序。

我需要调整应用程序池回收,以便它在英国时间每天 03:00 发生,而不是默认的 29 小时。

我怎样才能实现这个目标?

最佳答案

1) 创建名为:applicationHost.xdt

的文件

2) 插入池回收时间的覆盖,即:

<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.applicationHost>
<applicationPools>
<add name="yourappname" xdt:Locator="Match(name)">
<recycling xdt:Transform="Insert" >
<periodicRestart>
<schedule>
<clear />
<add value="03:00:00" /> // + adjust for server time/ UTC
</schedule>
</periodicRestart>
</recycling>
</add>
</applicationPools>
</system.applicationHost>
</configuration>

3) 将文件上传到您的应用程序/站点根目录:

enter image description here

4)硬停止并启动您的服务/应用程序(重启不会生效!)

5) 您可以check this resource有关 .xdt 文件的更多信息

关于azure - Windows Azure Web App - 安排应用程序池回收,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34017197/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com