Тип сервиса
Сервис Elasticsearch
Самостоятельно размещаемый поисковый сервис Elasticsearch для индексации данных приложений, полнотекстового поиска и поисковой аналитики.
Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.
В StackMaster
Как Elasticsearch работает в StackMaster
How applications reach it
- URL:
http://<app service name>:9200. Security is on (xpack.security.enabled), TLS on the HTTP layer is off: use plainhttp://with HTTP Basic authentication. - User
elastic, the built-in superuser. Its password is generated by Wodby (tokenpassword) and is inELASTIC_PASSWORDinside this container. - A service linked to this one receives host, port and the password in variables named by the linking service; read them in code and do not copy the password into the repository.
- Port
9200is private: no public route is created. Port9300is the transport port and is not for applications.
What is configured
discovery.typeissingle-node; the service is not scalable. An index with replicas stays yellow because there is no second node: create indices with zero replicas.- The cluster name is built from the application and environment names.
node.store.allow_mmapisfalse.- The JVM heap comes from
ES_JAVA_OPTS(the manifest sets a fixed heap). The container memory limit must leave room above the heap. - A second password (token
kibana_password) is generated for the built-inkibana_systemuser. A start-up hook sets it through the security API once the node answers. A linked Kibana service connects with that user; do not usekibana_systemfrom applications and do not give Kibana theelasticpassword.
Changing configuration
Elasticsearch settings are environment variables on this service, named exactly like the setting (for example cluster.name). Do not mount an elasticsearch.yml. Turning security off or HTTP TLS on changes how every linked service must connect, Kibana included.
Data
Indices are in /usr/share/elasticsearch/data on the data volume. The manifest declares no backups, imports or actions; snapshots need a repository configured in Elasticsearch itself.
Check the result
From this service's container:
curl -s -u "elastic:$ELASTIC_PASSWORD" http://localhost:9200/_cluster/health?prettycurl -s -u "elastic:$ELASTIC_PASSWORD" http://localhost:9200/_cat/indices?v
Обзор
Технический профиль Elasticsearch
Версии
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Стеки
Стеки, в которые входит Elasticsearch
Конфигурация
Конфигурация сервиса Elasticsearch
Тома