I have intalled magento2.4 with elasticsearch version 7.. Resources are 4 core and 8gb ram , startup web application. Elastic search is consuming more then half of the memory , which is making the server down and elasticsearch getting turned off automatically very often.. Can you please help me in configuring memory consumption of elastic search...
Hello, you may try this module to disable elasticsearch properly:
Hey, as far as I know elasticsearch is free to use and open source.
You can save value for 'mysql'
php -f bin/magento config:set catalog/search/engine 'mysql'
and it'll work but you won't be able to search anything on your storefront. So shortly, magento has completely removed mysql , we won't be able to run searches on mysql
use this module and disable elasticsearch by default in the install command
and set the 'catalog/search/engine' as 'lmysql' using command line and then it will work
We can disable the Elastic search and eventually installed the Magento 2.But it will throw errors while working in admin later. Its better advised to keep turn it on.
To check the status
php -f bin/magento config:show catalog/search/engine
Not a solution. As janky as Magento is, a collection of poorly written, inefficient scripts that require constant twiddling with, adding another requirement that is also Janky and inefficient (ElasticSearch) makes Magento no longer a reasonable choice for the majority of small eCommerce vendors.
To remove elastic search and get it to complete setup - just open config.xml and put 0 to all elastic search modules
After some research I found a solution for this. Magento stores all credentials in
magento\vendor\magento\module-elasticsearch-7 in config.xml. Please add your cred here and restart your installation - you should be OK, Replace XXXXX by your generated password for default user (elastic)
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">