Php 已安装的AWS NFS系统上的Magento映像保存/复制时间过长

Php 已安装的AWS NFS系统上的Magento映像保存/复制时间过长,php,amazon-web-services,magento,magento2,nfs,Php,Amazon Web Services,Magento,Magento2,Nfs,我有一个自动扩展AWS的服务器设置。为了共享源代码,我创建了一个小型NFS服务器来承载源代码并将其装载到服务器上 我现在面临的问题是Magento运行良好。但是,在将映像写入和复制到磁盘(已安装的nfs服务器)时,需要花费的时间太长,使应用程序响应时间急剧增加(超过10秒) 所有这些都可以在php fpm慢速日志中找到。即使是一个简单的magento检查是否可写也需要6秒钟以上才能返回结果 请问我该如何解决这个问题? 我应该使用什么样的系统,或者可以使用什么更好的体系结构 这是堆栈跟踪 [17-

我有一个自动扩展AWS的服务器设置。为了共享源代码,我创建了一个小型NFS服务器来承载源代码并将其装载到服务器上

我现在面临的问题是Magento运行良好。但是,在将映像写入和复制到磁盘(已安装的nfs服务器)时,需要花费的时间太长,使应用程序响应时间急剧增加(超过10秒)

所有这些都可以在php fpm慢速日志中找到。即使是一个简单的magento检查是否可写也需要6秒钟以上才能返回结果

请问我该如何解决这个问题? 我应该使用什么样的系统,或者可以使用什么更好的体系结构

这是堆栈跟踪

[17-Nov-2020 06:49:18]  [pool www] pid 1534
script_filename = /var/www/html/magento2/pub/get.php
[0x00007f04a5214640] imagejpeg() /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:208
[0x00007f04a52145d0] call_user_func_array() /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:208
[0x00007f04a52144d0] save() /var/www/html/magento2/vendor/magento/framework/Image.php:79
[0x00007f04a5214450] save() /var/www/html/magento2/vendor/magento/module-media-storage/Service/ImageResize.php:338
[0x00007f04a5214380] resize() /var/www/html/magento2/vendor/magento/module-media-storage/Service/ImageResize.php:170
[0x00007f04a52142d0] resizeFromImageName() /var/www/html/magento2/vendor/magento/module-media-storage/App/Media.php:161
[0x00007f04a5214200] launch() /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php:261
[0x00007f04a5214170] run() /var/www/html/magento2/pub/get.php:84

[17-Nov-2020 06:49:18]  [pool www] pid 1483
script_filename = /var/www/html/magento2/pub/get.php
[0x00007f04a52137e0] imagecopy() /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:867
[0x00007f04a5213690] imagecopymergeWithAlphaFix() /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:573
[0x00007f04a5213530] watermark() /var/www/html/magento2/vendor/magento/framework/Image.php:210
[0x00007f04a5213450] watermark() /var/www/html/magento2/vendor/magento/module-media-storage/Service/ImageResize.php:335
[0x00007f04a5213380] resize() /var/www/html/magento2/vendor/magento/module-media-storage/Service/ImageResize.php:170
[0x00007f04a52132d0] resizeFromImageName() /var/www/html/magento2/vendor/magento/module-media-storage/App/Media.php:161
[0x00007f04a5213200] launch() /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php:261
[0x00007f04a5213170] run() /var/www/html/magento2/pub/get.php:84

[17-Nov-2020 06:49:18]  [pool www] pid 1528
script_filename = /var/www/html/magento2/pub/get.php
[0x00007f04a5214640] imagejpeg() /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:208
[0x00007f04a52145d0] call_user_func_array() /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:208
[0x00007f04a52144d0] save() /var/www/html/magento2/vendor/magento/framework/Image.php:79
[0x00007f04a5214450] save() /var/www/html/magento2/vendor/magento/module-media-storage/Service/ImageResize.php:338
[0x00007f04a5214380] resize() /var/www/html/magento2/vendor/magento/module-media-storage/Service/ImageResize.php:170
[0x00007f04a52142d0] resizeFromImageName() /var/www/html/magento2/vendor/magento/module-media-storage/App/Media.php:161
[0x00007f04a5214200] launch() /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php:261
[0x00007f04a5214170] run() /var/www/html/magento2/pub/get.php:84