Поисковый сервис
Сервисы/OpenSearch

Сервис OpenSearch

Самостоятельно размещаемый сервис OpenSearch для индексации данных приложений, полнотекстового поиска и поисковой аналитики.

Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.

В StackMaster

Как OpenSearch работает в StackMaster

What Wodby sets up for this OpenSearch service. It runs the official OpenSearch image as a single node, configured through environment variables set by the manifest.

How applications reach it

  • The manifest leaves the image's security plugin with its demo configuration on. The REST API on port 9200 is therefore served over HTTPS with the image's self-signed demo certificate: use https://<app service name>:9200, and the client must skip certificate verification or trust that certificate. Plain http:// requests are refused.
  • User admin. Its password is generated by Wodby (token password) and is in OPENSEARCH_INITIAL_ADMIN_PASSWORD inside this container. The image applies it when it first installs the security configuration.
  • 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.
  • The image's other demo accounts have public passwords, so they are removed each time the node starts. kibanaserver remains for OpenSearch Dashboards, with a generated password (token dashboards_password). Create your own users through the security API rather than reusing these names.
  • All ports are private: no public route is created. 9300 is the transport port and 9600 the performance analyzer; applications use 9200 only.

What is configured

  • discovery.type is single-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.
  • bootstrap.memory_lock is false.
  • The JVM heap comes from OPENSEARCH_JAVA_OPTS (the manifest sets a fixed heap). The container memory limit must leave room above the heap.

Changing configuration

OpenSearch settings are environment variables on this service, named exactly like the setting (for example cluster.name). Do not mount an opensearch.yml. Disabling the security plugin changes the scheme to http:// and removes authentication for every linked service.

Data

Indices are in /usr/share/opensearch/data on the data volume. The manifest declares no backups, imports or actions; snapshots need a repository configured in OpenSearch itself.

Check the result

From this service's container:

  • curl -sk -u "admin:$OPENSEARCH_INITIAL_ADMIN_PASSWORD" https://localhost:9200/_cluster/health?pretty
  • curl -sk -u "admin:$OPENSEARCH_INITIAL_ADMIN_PASSWORD" https://localhost:9200/_cat/indices?v

Обзор

Технический профиль OpenSearch

Здесь перечислены версии, которые можно выбрать для OpenSearch в стеке или окружении. Сам сервис публикуется ревизиями, и стек ссылается на конкретную ревизию.

Тип сервиса

Поисковый сервис

Версии

3.8

Постоянные тома

OpenSearch data

Стеки

Стеки, в которые входит OpenSearch

OpenSearch входит в этот публичный стек. Можно создать приложение из публичного стека как есть или добавить сервис в собственный стек.

Конфигурация

Конфигурация сервиса OpenSearch

Сервис OpenSearch объявляет следующее. Если значение можно изменить, его задаёт стек, а каждое окружение может его переопределить.

Тома

OpenSearch data