简体   繁体   English

Cloudcontrol - 覆盖PHP-FPM设置,服务器到达pm.max_children

[英]Cloudcontrol - overriding PHP-FPM settings, server reached pm.max_children

I am quite often receiving 'WARNING: [pool www] server reached pm.max_children setting (1), consider raising it' in my error logs for my containers on Cloudcontrol, and I am therefore looking for a way to raise this setting. 我经常收到'警告:[池www]服务器达到pm.max_children设置(1),考虑在Cloudcontrol上我的容器的错误日志中提高它,因此我正在寻找提高此设置的方法。

I have managed to adjust the php.ini and Apache config settings using the buildpack for PHP provided by Cloudcontrol in a GitHub repo . 我已经设法使用Cloudcontrol在GitHub仓库中提供的buildpack for PHP来调整php.ini和Apache配置设置。 However, no luck for the PHP-FPM settings (any changes made in the provided php-fpm.ini are ignored). 但是,PHP-FPM设置没有运气(忽略了提供的php-fpm.ini中所做的任何更改)。

I have tried... 我努力了...

  • to make changes in the existing php-fpm.ini file, located in the conf/ folder 在位于conf /文件夹中的现有php-fpm.ini文件中进行更改
  • creating my own php-fpm.ini, placing it in the php/conf/ folder 创建我自己的php-fpm.ini,将其放在php / conf /文件夹中
  • creating my own php-fpm.conf, placing it in the php/conf/ folder, and in the conf/ folder 创建我自己的php-fpm.conf,将其放在php / conf /文件夹中,以及conf /文件夹中

I am defining the variables as pm = static, and max_children = 3 for the [www] pool and have tried to both include the default variables in my files, as well as just including the variables that I wish to override. 我将变量定义为pm = static,并为[www]池定义max_children = 3,并尝试在我的文件中包含默认变量,以及仅包含我希望覆盖的变量。

Am I overlooking something, or am I doing this wrong? 我忽略了什么,还是我做错了? Is there any better way to deal with this? 有没有更好的方法来处理这个?

Thanks in advance! 提前致谢!

You currently can't override the php-fpm settings with this buildpack. 您目前无法使用此buildpack覆盖php-fpm设置。 You could clone it, change the value in conf/php-fpm.ini and provide it as a custom buildpack . 您可以克隆它,更改conf / php-fpm.ini中的值并将其作为自定义buildpack提供 In this specific case though, I think it's a bug of the buildpack and the value pm.max_children should be raised. 在这种特定情况下,我认为这是buildpack的一个错误,应该引发pm.max_children的值。 I opened a issue on github for you. 在github上为你打开了一个问题

We added support for overriding the default php-fpm configuration by creating a php-fpm.ini file under the .buildpack/php-fpm/conf/ directory of your project. 我们通过在项目的.buildpack/php-fpm/conf/目录下创建一个php-fpm.ini文件,添加了对覆盖默认php-fpm配置的支持。

Make sure you have a look at the default configuration at https://github.com/cloudControl/buildpack-php/blob/master/conf/php-fpm.ini . 请确保您在https://github.com/cloudControl/buildpack-php/blob/master/conf/php-fpm.ini上查看默认配置。 For info check the buildpack-php documentation. 有关信息,请查看buildpack-php文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM