• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs Docker ElasticSearch

elink

New Pleskian
User name: elink

TITLE

Docker ElasticSearch

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk obsidian

PROBLEM DESCRIPTION

impossible to install official elasticsearch 7.6 in docker

ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

discovery.seed_hosts,
discovery.seed_providers,
cluster.initial_master_nodes

it is impossible to specify a parameter with a dot,plesk does not allow. This prevents the use of the elasticsearch in the docker.

You can start the docker with these parameters from the console and the parameter will appear in the plesk, but it will also be impossible to change the settings in the panel

STEPS TO REPRODUCE

run elastcisearch 7.6 in docker

ACTUAL RESULT

does not work

EXPECTED RESULT

support for points in the parameter name

ANY ADDITIONAL INFORMATION

how to solve?

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Answer the question
 
you must mount (Volume-Mapping) a config file for els. for example

Volume-Mapping:
/usr/share/elasticsearch/config/elasticsearch.yml => /var/www/vhosts/xml/es/elasticsearch.yml

This is only a example:
YAML:
---
## Default Elasticsearch configuration from Elasticsearch base image.
## https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml
#
cluster.name: "docker-cluster"
network.host: 0.0.0.0


discovery.seed_hosts:
   - localhost:9300
   - localhost:9200
   - elasticsearch:9200
   - elasticsearch:9300
cluster.initial_master_nodes:
   - master-node-a

## X-Pack settings
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html
#
# xpack.security.enabled: true
# xpack.monitoring.collection.enabled: true

node.store.allow_mmap: false
 
Back
Top