【问题标题】:Azure Linux App Service MaxRequestWorkersAzure Linux 应用服务 MaxRequestWorkers
【发布时间】:2020-12-08 16:49:55
【问题描述】:

我们需要在带有 PHP 应用 (Moodle) 的 Azure Linux 应用服务上将 MaxRequestWorkers 从默认值 256 增加。ServerLimit 在 phpinfo.php 中显示为 1000,MaxRequestWorkers 保持在 256。

我们已经使用应用服务启动命令覆盖了 /etc/apache2/mods-enabled/mpm_prefork.conf 和 /etc/apache2/mods-available/mpm_prefork.conf, 但是没有效果。

我们也在/etc/apache2/mods-enabled/mpm_prefork.conf中插入了MaxRequestLimit 512,但还是没有效果。

我想知道在这种环境下是否可以增加 MaxRequestWorkers?

【问题讨论】:

    标签: azure-web-app-service


    【解决方案1】:

    我认为提供了root access,但看起来所做的更改并未保留。应用服务的默认 PHP 映像使用 Apache,它不允许您为应用自定义站点根目录。

    如果想让mpm_prefork.conf文件配置生效,建议改用自定义Docker镜像-https://docs.microsoft.com/en-us/azure/app-service/quickstart-custom- container?pivots=container-linux

    参考帖子:

    1. Microsoft Azure Web App - How to update apache vhost config?

    2. Change httpd.conf on Web App on Linux

    【讨论】:

      猜你喜欢
      • 2016-08-23
      • 1970-01-01
      • 2018-06-14
      • 2020-01-31
      • 2016-11-16
      • 1970-01-01
      • 2019-10-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多