Magento and Amazon RDS - timeouts

不问归期 提交于 2019-12-23 04:53:05

问题


I have a Magento CE 1.7 installation on an Amazon EC2 instance with the Magento database on an Amazon RDS Large database instance. Generally things seems to be configured ok.

However, when performing bulk import operations I am hitting some sort of 120 second failure. I kick off the import process and exactly 120 seconds in Chrome tells me:

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data

Sure enough the import has failed.

I have tried the often given advice of the php.ini settings:

memory_limit = 256M

max_execution_time = 1800

But they don't fix it. I have tuned a number of RDS Parameter Group settings as well:

innodb_lock_wait_timeout=120

for example - but again no success.

It is clear that there is some hard-coded 120 second limit somewhere (i've timed it many times!) but i cannot work out what parameter is causing the issue.

I have tried cutting up the import file into small sections and it runs just fine when i do that. So its not input data related either

Any help much appreciated - have pushed 2 days into this issue already :(

TIA!


回答1:


I believe that there's a hard limit for timeouts on ELB load balancers.




回答2:


as suggested by sarcksoft the issue was to do with load balancer. The ELB drop connections that are idle for 60 seconds. Had to work around by doing batch jobs direct to EIP on separate sub-domain.



来源:https://stackoverflow.com/questions/12060181/magento-and-amazon-rds-timeouts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!