我在 AWS 云上运行一个繁忙的 magento 2 负载平衡 Web 服务器,该服务器有 3 个后端 PHP-FPM 服务器和一个共享的 EFS 网络文件系统。有很多并发用户,一切运行正常,只是偶尔我会在错误日志中看到以下错误:
May 4 15:27:01 app-node php_fpm_error [04-May-2023 15:27:01] WARNING: [pool pool.name] child 135046 said into stderr: ERROR: scoreboard: failed to lock (already locked)
May 4 15:27:01 app-node php_fpm_error [04-May-2023 15:27:01] WARNING: [pool pool.name] child 135046 said into stderr: ERROR: status: unable to find or access status shared memory
在 Ubuntu 22 LTS 上使用的 PHP 版本是 8.1.18。PHP-FPM 池配置如下:
[pool.name]
pm.status_path = /status
;listen = 127.0.0.1:5001
listen = /run/php-fpm/pool.sock
listen.owner = wwwuser
listen.group = wwwgroup
listen.mode = 0660
user = wwwuser
group = wwwgroup
listen.backlog = 1024
pm = static
pm.max_children = 12
pm.max_requests = 1000
request_terminate_timeout = 0
rlimit_files = 4096
catch_workers_output = yes
security.limit_extensions = .php .phar
我在谷歌上搜索,但没有找到有关这两个错误的任何信息。
请帮忙。谢谢