【问题标题】:What is the performance impact of 'logging enabled: true' in IISNode on AzureAzure 上 IISNode 中“启用日志记录:true”的性能影响是什么
【发布时间】:2017-01-30 10:13:17
【问题描述】:

This article 表示可以将 StdOut 和 StdErr 流的输出记录到文件系统。

这样做对性能有何影响?我应该将其留在生产中吗?

【问题讨论】:

    标签: node.js performance azure logging iisnode


    【解决方案1】:

    由于 Azure Web 应用程序上的 node.js 应用程序是通过 iisnode 模块处理的。并且启用日志记录只是 iisnode 的一项功能,影响很小。这也应该是在生产环境中跟踪错误信息的好方法。

    同时,如果我们需要使用 iisnode 的故障排除配置,如 Best practices and troubleshooting guide for node applications on Azure Web Apps 中的文档所述,建议我们可以在您的 Web 应用程序中使用 set up staging environments,将生产和开发暂存槽分开。

    【讨论】:

      猜你喜欢
      • 2014-09-18
      • 1970-01-01
      • 2014-12-05
      • 1970-01-01
      • 2015-10-17
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      相关资源
      最近更新 更多