• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question elasticsearch Docker

Miller

Basic Pleskian
Does anyone have the settings to get an elasticsearch Docker working with Magento 2.4, I am struggling to find any instructions anywhere

Thanks
 
I have Elasticsearch Docker working with Magento 2.4. No Issues.

#docker run --name=elasticsearch -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 "elasticsearch:7.6.2"

If the docker is running correctly, You should get a output as below when you run "curl http://localhost:9200/_cluster/health?pretty" as the M2 users.

-bash-4.2$ curl http://localhost:9200/_cluster/health?pretty
{
"cluster_name" : "docker-cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 20,
"active_shards" : 20,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 20,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 50.0
}

You might have to increase the vm.max_map_count=262144 to Elasticsearch Docker to start. Please check the Elasticsearch Docker log first.

You can check the log Plesk > Dockers > "Elasticsearch Docker" > Details. This will tell you exactly what is the issue is.

As Root,

#sysctl -w vm.max_map_count=262144
 
Last edited:
Assuming that you want to run a single node but Elasticsearch 7...... want to start in a cluster but cannot find one so shuts down again.

Add a mapping: discovery.type single-node

That worked for me with Magento 2.4.
 

Attachments

  • Screenshot 2020-08-25 at 08.55.32.png
    Screenshot 2020-08-25 at 08.55.32.png
    74.1 KB · Views: 467
Back
Top