7

In Magento 2.2.6 you can take advantage of Multi-threading for the indexers as stated in release notes here:

https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6EE.html

This states that I need to add a MAGE_INDEXER_THREADS_COUNT variable to env.php. I'm just not sure where to add the variable properly and would like an example of this variable within the env.php file?

Rafael Corrêa Gomes
13.9k15 gold badges92 silver badges190 bronze badges
asked Sep 19, 2018 at 15:24

2 Answers 2

6

You can try adding like 'MAGE_INDEXER_THREADS_COUNT'=>3 then the env.php will look something like following

return [
 'backend' => [
 'frontName' => 'magento226administrator'
 ],
 'crypt' => [
 'key' => '45625508600206a4c2d2f2bf406b23fb'
 ],
 'db' => [
 'table_prefix' => '',
 'connection' => [
 'default' => [
 'host' => 'localhost',
 'dbname' => 'localmagento226',
 'username' => 'magento226',
 'password' => 'magento226db',
 'active' => '1'
 ]
 ]
 ],
 'resource' => [
 'default_setup' => [
 'connection' => 'default'
 ]
 ],
 'x-frame-options' => 'SAMEORIGIN',
 'MAGE_MODE' => 'developer',
 'session' => [
 'save' => 'files'
 ],
 'cache_types' => [
 'config' => 1,
 'layout' => 1,
 'block_html' => 1,
 'collections' => 1,
 'reflection' => 1,
 'db_ddl' => 1,
 'eav' => 1,
 'customer_notification' => 1,
 'config_integration' => 1,
 'config_integration_api' => 1,
 'full_page' => 1,
 'config_webservice' => 1,
 'translate' => 1
 ],
 'install' => [
 'date' => 'Wed, 19 Sep 2018 05:55:55 +0000'
 ],
 'MAGE_INDEXER_THREADS_COUNT'=>3
];
answered Sep 19, 2018 at 15:55
3

Works if you insert below 'MAGE_MODE' with:

'x-frame-options' => 'SAMEORGIN',
'MAGE_MODE' => 'production',
'MAGE_INDEXER_THREADS_COUNT' => '3',
'session' => [
 'save' => 'memcache',
 'save_path' => 'tcp://memcache:11211'
],
Rama Chandran M
3,26515 gold badges24 silver badges38 bronze badges
answered Sep 24, 2018 at 6:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.