神秘? Azure DaaS Web 作业
Mystery? Azure DaaS Webjob
本周我注意到我的团队 Azure 门户网站上有一个持续的网络作业。
团队中没有人说他们已经部署或熟悉它。我找到了这个博客:
https://azure.microsoft.com/en-ca/blog/daas/
指的是可能相关的内容,但此页面上的某些链接似乎已失效。其中之一会将您重定向到 Azure 'Diagnose and solve problems' blade。看起来它的 UI 已经改版了,虽然我从来没有真正需要使用这个功能所以我不习惯它的所有 previous/new?功能。
在这里我发现了一些看起来很有用的诊断工具和 Azure App Service 'Auto Healing'。我发现似乎没有任何东西依赖于此 webjob,并且 'DaaS' 不存在于 Azure 门户中的任何其他应用程序服务上。
我可以禁用或删除它吗?我对有一个持续的网络工作感觉不太好 运行,我们团队中没有人知道它在做什么,或者似乎出于任何原因需要它。
我们失去这些了吗?新的?诊断 blade 中的功能?这些功能似乎可用于应用程序服务,而无需为它们提供 webapp。
附上日志如下:
[11/02/2018 17:11:16 > 500837: SYS INFO] Status changed to Starting
[11/02/2018 17:11:16 > 500837: SYS INFO] WebJob singleton setting is False
[11/02/2018 17:11:16 > 500837: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/02/2018 17:11:16 > 500837: SYS INFO] Status changed to Running
[11/02/2018 18:11:16 > 500837: SYS INFO] WebJob is still running
[11/03/2018 06:11:18 > 500837: SYS INFO] WebJob is still running
[11/03/2018 09:47:19 > 88a4cd: SYS INFO] Status changed to Starting
[11/03/2018 09:47:20 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/03/2018 09:47:22 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/03/2018 09:47:23 > 88a4cd: SYS INFO] Status changed to Running
[11/03/2018 09:48:52 > 500837: SYS INFO] WebJob is stopping due to website shutting down
[11/03/2018 09:48:52 > 500837: SYS INFO] Status changed to Stopping
[11/03/2018 09:48:58 > 500837: ERR ] Thread was being aborted.
[11/03/2018 09:48:58 > 500837: SYS INFO] WebJob process was aborted
[11/03/2018 09:48:58 > 500837: SYS INFO] Status changed to Stopped
[11/03/2018 09:49:59 > 88a4cd: INFO] Deleting expired heartbeat from instance RD0004FF9C15A8. It last beat at 11/3/2018 9:49:55 AM while the current time is 11/3/2018 9:49:59 AM
[11/03/2018 10:47:20 > 88a4cd: SYS INFO] WebJob is still running
[11/03/2018 22:47:22 > 88a4cd: SYS INFO] WebJob is still running
[11/04/2018 02:47:33 > 88a4cd: SYS INFO] WebJob is stopping due to website shutting down
[11/04/2018 02:47:33 > 88a4cd: SYS INFO] Status changed to Stopping
[11/04/2018 02:47:38 > 88a4cd: ERR ] Thread was being aborted.
[11/04/2018 02:47:38 > 88a4cd: SYS INFO] WebJob process was aborted
[11/04/2018 02:47:38 > 88a4cd: SYS INFO] Status changed to Stopped
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] Status changed to Starting
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] Status changed to Running
[11/04/2018 03:47:54 > 88a4cd: SYS INFO] WebJob is still running
[11/04/2018 15:47:56 > 88a4cd: SYS INFO] WebJob is still running
[11/05/2018 03:47:57 > 88a4cd: SYS INFO] WebJob is still running
[11/05/2018 15:47:59 > 88a4cd: SYS INFO] WebJob is still running
[11/06/2018 03:48:01 > 88a4cd: SYS INFO] WebJob is still running
[11/06/2018 15:48:03 > 88a4cd: SYS INFO] WebJob is still running
[11/07/2018 03:48:04 > 88a4cd: SYS INFO] WebJob is still running
[11/07/2018 15:48:06 > 88a4cd: SYS INFO] WebJob is still running
[11/08/2018 03:48:08 > 88a4cd: SYS INFO] WebJob is still running
[11/08/2018 15:48:10 > 88a4cd: SYS INFO] WebJob is still running
[11/09/2018 02:03:23 > 88a4cd: SYS INFO] WebJob is stopping due to website shutting down
[11/09/2018 02:03:23 > 88a4cd: SYS INFO] Status changed to Stopping
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] Status changed to Starting
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] Status changed to Running
[11/09/2018 02:03:44 > 88a4cd: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob
[11/09/2018 02:03:44 > 88a4cd: SYS INFO] Status changed to Stopping
[11/09/2018 02:03:49 > 88a4cd: ERR ] Thread was being aborted.
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] WebJob process was aborted
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Status changed to Stopped
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Status changed to Starting
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Job directory change detected: Job file 'DaaS.dll' timestamp differs between source and working directories.
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Status changed to Running
[11/09/2018 03:03:49 > 88a4cd: SYS INFO] WebJob is still running
[11/09/2018 03:53:32 > 88a4cd: SYS INFO] Status changed to Starting
[11/09/2018 03:53:32 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/09/2018 03:53:33 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 03:53:33 > 88a4cd: SYS INFO] Status changed to Running
[11/09/2018 04:53:32 > 88a4cd: SYS INFO] WebJob is still running
[11/09/2018 04:56:49 > 522a7d: SYS INFO] Status changed to Starting
[11/09/2018 04:56:49 > 522a7d: SYS INFO] WebJob singleton setting is False
[11/09/2018 04:56:50 > 522a7d: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 04:56:51 > 522a7d: SYS INFO] Status changed to Running
[11/09/2018 04:58:23 > 88a4cd: SYS INFO] WebJob is stopping due to website shutting down
[11/09/2018 04:58:23 > 88a4cd: SYS INFO] Status changed to Stopping
[11/09/2018 04:58:28 > 88a4cd: ERR ] Thread was being aborted.
[11/09/2018 04:58:28 > 88a4cd: SYS INFO] WebJob process was aborted
[11/09/2018 04:58:28 > 88a4cd: SYS INFO] Status changed to Stopped
[11/09/2018 04:59:48 > 522a7d: INFO] Deleting expired heartbeat from instance RD0004FF9C349E. It last beat at 11/9/2018 4:59:20 AM while the current time is 11/9/2018 4:59:48 AM
[11/09/2018 05:56:50 > 522a7d: SYS INFO] WebJob is still running
[11/09/2018 13:00:14 > 60c00d: SYS INFO] Status changed to Starting
[11/09/2018 13:00:14 > 60c00d: SYS INFO] WebJob singleton setting is False
[11/09/2018 13:00:15 > 60c00d: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 13:00:15 > 60c00d: SYS INFO] Status changed to Running
[11/09/2018 13:01:01 > 522a7d: SYS INFO] WebJob is stopping due to website shutting down
[11/09/2018 13:01:01 > 522a7d: SYS INFO] Status changed to Stopping
[11/09/2018 13:01:06 > 522a7d: ERR ] Thread was being aborted.
[11/09/2018 13:01:06 > 522a7d: SYS INFO] WebJob process was aborted
[11/09/2018 13:01:06 > 522a7d: SYS INFO] Status changed to Stopped
[11/09/2018 13:02:41 > 60c00d: INFO] Deleting expired heartbeat from instance RD0004FF9C4287. It last beat at 11/9/2018 1:02:00 PM while the current time is 11/9/2018 1:02:41 PM
[11/09/2018 14:00:14 > 60c00d: SYS INFO] WebJob is still running
[11/10/2018 02:00:15 > 60c00d: SYS INFO] WebJob is still running
[11/10/2018 14:00:16 > 60c00d: SYS INFO] WebJob is still running
这并没有告诉我很多。如果这是一项新功能,或者我正在接受 ABTested,或者如果您认为这可以 disabled/removed,请告诉我。谢谢。
我尝试转到 DaaS
页面,但该功能已被 弃用 ,如 screenshot 中所示。该页面还建议使用 "Diagnose and Solve"。所以我相信 DaaS WebJob
可以删除。
现在它作为连续的 webjob
使用,您可以从 Kudu
中找到并删除它。您可以访问enter image description here https:// <YourSiteName>.scm.azurewebsites.net
then choose the Tools->Zip Push Deploy->App_Data->jobs->continuous. If the "DaaS" is there, you could click - to delete it like the pic.
如果您还有疑问,请告诉我。
在与 Microsoft 联系后,他们告诉我,因为我在 'Diagnose and Solve' blade 上浏览过,所以自动创建了这个 webjob 以允许那里预期的功能。
我目前不需要这些选项,所以我可以安全地禁用或删除它。它不应该干扰我的应用程序,但如果它没有做任何事情,我认为我至少应该禁用它。
禁用后,我和用户都没有遇到任何问题。
我遇到了同样的问题,在我的 Web 应用程序中只有一个 Web 作业,突然我看到另一个名为 "Daas" 的 Web 作业。
所以我很惊讶,并与 MS 团队讨论了同样的问题,然后我发现如果你已经为你的网络应用程序激活 "Dignosis tools",那么这个 "Daas" 网络作业将由 Azure 云自动创建。
基本上它会监控您当前的网络应用程序是否存在任何问题或威胁。
所以不用担心,它不会消耗您应用程序的内存。
这里是关于 DaaS 和 DaasRunner 的更多信息
应该注意的是,每当您通过 诊断和解决问题 blade 运行 任何诊断工具时,它们都会通过 DaaS 站点扩展收集数据并在那段时间里,他们依赖于 DaasRunner webjob。这适用于 Memory Dump、.NET Profiler、CPU 监控、Java Flight Recorder、Autohealing 等工具
如果您浏览到诊断和解决问题中的任何诊断工具 blade,DaasRunner webjob 可能 re-appear。以下文章中有更多详细信息
It should be noted that the DaaSRunner webjob is mostly sitting idle and doing nothing. Only when a diagnostic session (like CPU Monitoring session) or a manual data collection session (like Profiler, Memory dump, etc.) is invoked, the DaasRunner wakes up and starts collecting data required by that session so it is totally harmless to leave the DaasRunner Webjob in a running state.
本周我注意到我的团队 Azure 门户网站上有一个持续的网络作业。
https://azure.microsoft.com/en-ca/blog/daas/
指的是可能相关的内容,但此页面上的某些链接似乎已失效。其中之一会将您重定向到 Azure 'Diagnose and solve problems' blade。看起来它的 UI 已经改版了,虽然我从来没有真正需要使用这个功能所以我不习惯它的所有 previous/new?功能。
在这里我发现了一些看起来很有用的诊断工具和 Azure App Service 'Auto Healing'。我发现似乎没有任何东西依赖于此 webjob,并且 'DaaS' 不存在于 Azure 门户中的任何其他应用程序服务上。
我可以禁用或删除它吗?我对有一个持续的网络工作感觉不太好 运行,我们团队中没有人知道它在做什么,或者似乎出于任何原因需要它。
我们失去这些了吗?新的?诊断 blade 中的功能?这些功能似乎可用于应用程序服务,而无需为它们提供 webapp。
附上日志如下:
[11/02/2018 17:11:16 > 500837: SYS INFO] Status changed to Starting
[11/02/2018 17:11:16 > 500837: SYS INFO] WebJob singleton setting is False
[11/02/2018 17:11:16 > 500837: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/02/2018 17:11:16 > 500837: SYS INFO] Status changed to Running
[11/02/2018 18:11:16 > 500837: SYS INFO] WebJob is still running
[11/03/2018 06:11:18 > 500837: SYS INFO] WebJob is still running
[11/03/2018 09:47:19 > 88a4cd: SYS INFO] Status changed to Starting
[11/03/2018 09:47:20 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/03/2018 09:47:22 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/03/2018 09:47:23 > 88a4cd: SYS INFO] Status changed to Running
[11/03/2018 09:48:52 > 500837: SYS INFO] WebJob is stopping due to website shutting down
[11/03/2018 09:48:52 > 500837: SYS INFO] Status changed to Stopping
[11/03/2018 09:48:58 > 500837: ERR ] Thread was being aborted.
[11/03/2018 09:48:58 > 500837: SYS INFO] WebJob process was aborted
[11/03/2018 09:48:58 > 500837: SYS INFO] Status changed to Stopped
[11/03/2018 09:49:59 > 88a4cd: INFO] Deleting expired heartbeat from instance RD0004FF9C15A8. It last beat at 11/3/2018 9:49:55 AM while the current time is 11/3/2018 9:49:59 AM
[11/03/2018 10:47:20 > 88a4cd: SYS INFO] WebJob is still running
[11/03/2018 22:47:22 > 88a4cd: SYS INFO] WebJob is still running
[11/04/2018 02:47:33 > 88a4cd: SYS INFO] WebJob is stopping due to website shutting down
[11/04/2018 02:47:33 > 88a4cd: SYS INFO] Status changed to Stopping
[11/04/2018 02:47:38 > 88a4cd: ERR ] Thread was being aborted.
[11/04/2018 02:47:38 > 88a4cd: SYS INFO] WebJob process was aborted
[11/04/2018 02:47:38 > 88a4cd: SYS INFO] Status changed to Stopped
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] Status changed to Starting
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/04/2018 02:47:54 > 88a4cd: SYS INFO] Status changed to Running
[11/04/2018 03:47:54 > 88a4cd: SYS INFO] WebJob is still running
[11/04/2018 15:47:56 > 88a4cd: SYS INFO] WebJob is still running
[11/05/2018 03:47:57 > 88a4cd: SYS INFO] WebJob is still running
[11/05/2018 15:47:59 > 88a4cd: SYS INFO] WebJob is still running
[11/06/2018 03:48:01 > 88a4cd: SYS INFO] WebJob is still running
[11/06/2018 15:48:03 > 88a4cd: SYS INFO] WebJob is still running
[11/07/2018 03:48:04 > 88a4cd: SYS INFO] WebJob is still running
[11/07/2018 15:48:06 > 88a4cd: SYS INFO] WebJob is still running
[11/08/2018 03:48:08 > 88a4cd: SYS INFO] WebJob is still running
[11/08/2018 15:48:10 > 88a4cd: SYS INFO] WebJob is still running
[11/09/2018 02:03:23 > 88a4cd: SYS INFO] WebJob is stopping due to website shutting down
[11/09/2018 02:03:23 > 88a4cd: SYS INFO] Status changed to Stopping
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] Status changed to Starting
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 02:03:35 > 88a4cd: SYS INFO] Status changed to Running
[11/09/2018 02:03:44 > 88a4cd: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob
[11/09/2018 02:03:44 > 88a4cd: SYS INFO] Status changed to Stopping
[11/09/2018 02:03:49 > 88a4cd: ERR ] Thread was being aborted.
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] WebJob process was aborted
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Status changed to Stopped
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Status changed to Starting
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Job directory change detected: Job file 'DaaS.dll' timestamp differs between source and working directories.
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 02:03:49 > 88a4cd: SYS INFO] Status changed to Running
[11/09/2018 03:03:49 > 88a4cd: SYS INFO] WebJob is still running
[11/09/2018 03:53:32 > 88a4cd: SYS INFO] Status changed to Starting
[11/09/2018 03:53:32 > 88a4cd: SYS INFO] WebJob singleton setting is False
[11/09/2018 03:53:33 > 88a4cd: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 03:53:33 > 88a4cd: SYS INFO] Status changed to Running
[11/09/2018 04:53:32 > 88a4cd: SYS INFO] WebJob is still running
[11/09/2018 04:56:49 > 522a7d: SYS INFO] Status changed to Starting
[11/09/2018 04:56:49 > 522a7d: SYS INFO] WebJob singleton setting is False
[11/09/2018 04:56:50 > 522a7d: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 04:56:51 > 522a7d: SYS INFO] Status changed to Running
[11/09/2018 04:58:23 > 88a4cd: SYS INFO] WebJob is stopping due to website shutting down
[11/09/2018 04:58:23 > 88a4cd: SYS INFO] Status changed to Stopping
[11/09/2018 04:58:28 > 88a4cd: ERR ] Thread was being aborted.
[11/09/2018 04:58:28 > 88a4cd: SYS INFO] WebJob process was aborted
[11/09/2018 04:58:28 > 88a4cd: SYS INFO] Status changed to Stopped
[11/09/2018 04:59:48 > 522a7d: INFO] Deleting expired heartbeat from instance RD0004FF9C349E. It last beat at 11/9/2018 4:59:20 AM while the current time is 11/9/2018 4:59:48 AM
[11/09/2018 05:56:50 > 522a7d: SYS INFO] WebJob is still running
[11/09/2018 13:00:14 > 60c00d: SYS INFO] Status changed to Starting
[11/09/2018 13:00:14 > 60c00d: SYS INFO] WebJob singleton setting is False
[11/09/2018 13:00:15 > 60c00d: SYS INFO] Run script 'DaaSRunner.exe' with script host - 'WindowsScriptHost'
[11/09/2018 13:00:15 > 60c00d: SYS INFO] Status changed to Running
[11/09/2018 13:01:01 > 522a7d: SYS INFO] WebJob is stopping due to website shutting down
[11/09/2018 13:01:01 > 522a7d: SYS INFO] Status changed to Stopping
[11/09/2018 13:01:06 > 522a7d: ERR ] Thread was being aborted.
[11/09/2018 13:01:06 > 522a7d: SYS INFO] WebJob process was aborted
[11/09/2018 13:01:06 > 522a7d: SYS INFO] Status changed to Stopped
[11/09/2018 13:02:41 > 60c00d: INFO] Deleting expired heartbeat from instance RD0004FF9C4287. It last beat at 11/9/2018 1:02:00 PM while the current time is 11/9/2018 1:02:41 PM
[11/09/2018 14:00:14 > 60c00d: SYS INFO] WebJob is still running
[11/10/2018 02:00:15 > 60c00d: SYS INFO] WebJob is still running
[11/10/2018 14:00:16 > 60c00d: SYS INFO] WebJob is still running
这并没有告诉我很多。如果这是一项新功能,或者我正在接受 ABTested,或者如果您认为这可以 disabled/removed,请告诉我。谢谢。
我尝试转到 DaaS
页面,但该功能已被 弃用 ,如 screenshot 中所示。该页面还建议使用 "Diagnose and Solve"。所以我相信 DaaS WebJob
可以删除。
现在它作为连续的 webjob
使用,您可以从 Kudu
中找到并删除它。您可以访问enter image description here https:// <YourSiteName>.scm.azurewebsites.net
then choose the Tools->Zip Push Deploy->App_Data->jobs->continuous. If the "DaaS" is there, you could click - to delete it like the pic.
如果您还有疑问,请告诉我。
在与 Microsoft 联系后,他们告诉我,因为我在 'Diagnose and Solve' blade 上浏览过,所以自动创建了这个 webjob 以允许那里预期的功能。
我目前不需要这些选项,所以我可以安全地禁用或删除它。它不应该干扰我的应用程序,但如果它没有做任何事情,我认为我至少应该禁用它。
禁用后,我和用户都没有遇到任何问题。
我遇到了同样的问题,在我的 Web 应用程序中只有一个 Web 作业,突然我看到另一个名为 "Daas" 的 Web 作业。 所以我很惊讶,并与 MS 团队讨论了同样的问题,然后我发现如果你已经为你的网络应用程序激活 "Dignosis tools",那么这个 "Daas" 网络作业将由 Azure 云自动创建。 基本上它会监控您当前的网络应用程序是否存在任何问题或威胁。 所以不用担心,它不会消耗您应用程序的内存。
这里是关于 DaaS 和 DaasRunner 的更多信息
应该注意的是,每当您通过 诊断和解决问题 blade 运行 任何诊断工具时,它们都会通过 DaaS 站点扩展收集数据并在那段时间里,他们依赖于 DaasRunner webjob。这适用于 Memory Dump、.NET Profiler、CPU 监控、Java Flight Recorder、Autohealing 等工具
如果您浏览到诊断和解决问题中的任何诊断工具 blade,DaasRunner webjob 可能 re-appear。以下文章中有更多详细信息
It should be noted that the DaaSRunner webjob is mostly sitting idle and doing nothing. Only when a diagnostic session (like CPU Monitoring session) or a manual data collection session (like Profiler, Memory dump, etc.) is invoked, the DaasRunner wakes up and starts collecting data required by that session so it is totally harmless to leave the DaasRunner Webjob in a running state.