Issue-2011 - Set configuration for readtimeout and set timeout on ES …#2018
Issue-2011 - Set configuration for readtimeout and set timeout on ES …#2018alin1918 wants to merge 2 commits intoSmile-SA:2.10.xfrom
Conversation
|
Sounds great ! |
| */ | ||
| public function getReadTimeout() | ||
| { | ||
| return (int) $this->getElasticsearchClientConfigParam('timeout'); |
There was a problem hiding this comment.
Change param name to 'read_timeout' here if we change it in the system.xml ?
|
Hello @alin1918, Thanks for the PR ! Feel free also to squash your commits and use the prefix "Fixes #2011 " in your commit message. Regards, |
Hi, the reason why I let it as "timeout" instead of "read_timeout", is because is already defined in etc/config.xml as "timeout" (but not used), the fact that the "timeout" name is being use in the library that creates the curl object, and also that the curl option is called being defined is CURLOPT_TIMEOUT. In etc/adminhtml/system.xml the label states that is "Read Timeout". Just let me know and I can change it. Thanks. |
|
@rbayet For example for frontend use: 2-3 seconds should be ok. We are using this patch in production, already |
|
I was thinking about that test case of reindexing on a huge catalog and also for some particular operations. Regards, |
|
@rbayet I will do some tests to see how will this work with a big reindexing and see if there is an easy fix for that. |
…client #2011