我正在尝试为 php-fpm v7.3 启用动态进程管理。这是我的php-pm.ini
[www]
pm = dynamic
pm.max_children = 25
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 498
问题是我似乎无法确认我的 fpm 看到了这些变化。我可以看到它正在解析ini文件:
$ docker-compose exec web php -i | grep "pm."
Additional .ini files parsed => /usr/local/etc/php/conf.d/docker-php-ext-gd.ini,
/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
/usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,
/usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini,
/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
/usr/local/etc/php/conf.d/php-pm.ini
通过 fpm查看phpinfo()
服务,我根本看不到任何pm.
设置。我如何验证这些设置是否被拾取?如果它们是但不会在这里显示,我该如何证明呢?