Skip to main content

OpenSearch (opensearch)

Search and analytics engine for full text search, hybrid retrieval and logs. Single node or cluster with dedicated cluster manager and data nodes.

Generated from catalog/services/opensearch.yaml: do not edit by hand.

Summary​

Version2.19.2
Useinstall and configure, configure and connect
Layerfunctional (AI catalog)
CategoryData platforms
Installation methodsbinary, podman
External connectionopensearch
Sandbox onlyno

Licence​

SPDX identifierApache-2.0
Licence policycore licence (MIT or Apache-2.0)
Licence exception-
Platform componentopensearch

Packages and artifacts​

A package the project of the service publishes (its image, its binary archive, its Python or OS package) carries the licence of the service; a third-party package carries the licence written on its row, read from the official upstream metadata.

KindPackageVersionLicenceDetails
container imagedocker.io/opensearchproject/opensearch2.19.2Apache-2.0image key opensearch, used by manager, node, digest sha256:69588c664014fa3d3260ed5dd337f8538fec94790dad00bfbe92301eaaaac240
binary archiveopensearch-2.19.2-linux-x64.tar.gz2.19.2Apache-2.0https://artifacts.opensearch.org/releases/bundle/opensearch/2.19.2/opensearch-2.19.2-linux-x64.tar.gz, x86_64, checksum sha256

Images are pinned by tag in the descriptor, and by digest when the descriptor declares one (the offline bundle then refuses a pulled image that does not carry it); the digest is recorded in the mirror of the Manager when the offline bundle is imported, and every pull or load is checked against it.

Supported systems and architectures​

MethodOperating systemsArchitectures
binaryRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64 (architecture of the artifacts of the descriptor)
podmanRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64, aarch64 (not restricted by the descriptor)

Certified host systems: RHEL 8/9/10, Rocky Linux 8/9/10, AlmaLinux 8/9/10, Oracle Linux 8/9, CentOS Stream 9/10, Ubuntu 22.04/24.04, Debian 12, Arch Linux (rolling). The host preflight accepts these systems (other releases of a known family give a warning, end of life releases are refused) and the x86_64 and aarch64 architectures.

Prerequisites​

Host​

  • at least 4096 MB of memory (blocking, memory).
  • kernel parameter vm.max_map_count at least 262144 (warning, max_map_count).

Programs the commands and checks of the service start on the host, outside the managed roots: add them to allowed_commands of the agent (see Security of the Navin agent), else the agent refuses them with command_not_allowed: /usr/bin/curl.

Network and ports​

ComponentPort namePortOpened in the host firewall
managerhttp9200/tcpyes
managertransport9300/tcpyes
nodehttp9200/tcpyes
nodetransport9300/tcpyes

Kernel parameters​

ParameterValue
vm.max_map_count262144
vm.swappiness1
Process limits: memlockunlimited
Process limits: nofile65536
Process limits: nproc4096

Services and connections needed​

This service has no dependency.

Installation methods and modes​

MethodDefaultWhat the method uses
binaryyesthe binary archives of the descriptor, unpacked under the service directory
podman-the container images of the descriptor, run by Podman under systemd

Components​

ComponentKindInstallation methodsPorts
Cluster manager (manager)masterbinary, podman9200/tcp, 9300/tcp
Data node (node)workerbinary, podman9200/tcp, 9300/tcp

Single node (single-node) (default)​

One node holding every role.

What the mode deploys:

ComponentPlacement
managernot used
nodemin 1, max 1

Cluster (cluster)​

An odd number (3 or more) of cluster manager eligible nodes and data nodes.

What the mode deploys:

ComponentPlacement
managermin 3, odd number, recommended 3
nodemin 2, recommended 3

Install this service​

The install wizard of the Navin Manager plans, validates and runs the installation; you need the services:install permission on the cluster.

  1. Open the wizard. In Clusters, choose the row action Install services of the target cluster. The wizard opens on its first step, Service.

  2. Choose the service. On the Service step, select OpenSearch. The card shows the licence Apache-2.0. Pick the Method among binary, podman (default binary). To register an existing opensearch service of your organisation instead, turn on Use an existing external service.

  3. Choose the hosts and the mode. On the Hosts step, tick the hosts, then choose the Mode: single-node (default), cluster. Each mode deploys the components listed in Installation methods and modes. With several components, place each one on its hosts in Component placement (Suggest placement proposes a placement that respects the cardinalities).

  4. Bindings. This service has no dependency: the Bindings step has nothing to bind.

  5. Configure. On the Configure step, review the parameters (see Configuration parameters). Passwords left empty with a generated default are generated and sealed by the Manager.

  6. Review and install. On the Install step the Manager validates the plan and shows the installation order; when it says "The plan is valid. Ready to install.", choose Install. A highly available mode is installed only when its HA checks pass.

  7. Verify. The operation ends when the health checks of every instance pass (see Health checks); the service then shows as running in Services.

Connect an existing service​

Schemeshttps
Default port9200
Authenticationrequired
Health check/_cluster/health
Authentication methodFieldsDescription
basicusername, passwordUser of the security plugin (internal users or LDAP); Jaeger, OpenSearch Dashboards and the collector connect with it.

Official documentation: https://docs.opensearch.org/latest/security/

FieldTypeDefaultDescriptionNotes
Security Analytics index prefix (security_analytics_index)stringnavin-siemSecurity Analytics index prefix used by the platform.-

High availability​

Clusternative (native)
High availabilitynative (native)
Failovernative (native)
Replicationnative (native)
QuorumRaft (raft)
Discoverystatic (static)
Entry pointany node (any-node)
Official documentationhttps://docs.opensearch.org/latest/tuning-your-cluster/discovery-cluster-formation/settings/
Peer TLS parametertls_enabled
Cluster status commandcluster_health

Topology per mode​

ModesHighest catalog levelDistributionQuorum componentFault domainsDescription
single-nodestandalone (standalone)single (single)-1One node holding every role.
clustercluster (cluster)active-active (active-active)manager3An odd number of cluster manager eligible nodes and data nodes holding primary and replica shards.

Notes​

  • The election of the cluster manager uses a voting configuration (majority of the eligible nodes), listed here as raft; an index survives a node loss only with at least one replica shard.

Configuration parameters​

Network​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
HTTP port (http_port)port9200-nononoPort of the REST API.
Transport port (transport_port)port9300-nononoPort of the traffic between nodes.
Cluster name (cluster_name)stringnavin-search^[a-z][a-z0-9-]{1,40}$nononoName shared by the nodes of the cluster.

Memory​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
JVM heap (heap_mb)int2048min 512, max 31744, MBnonoyesHeap of the JVM: half of the host memory, at most 31 GB (compressed pointers). (recommended clamp(round(host.memory_mb * 0.5), 512, 31744))

Security​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
Security and TLS (tls_enabled)booltrue-nononoTLS on HTTP and transport with certificates of the manager CA. The security plugin is never disabled (P5C-006): it needs the transport certificates, so turning this off is refused when the configuration is rendered.
Administrator password (admin_password)passwordgenerated-noyesnoInitial password of the admin user, hashed into internal_users.yml at the first start (the security index keeps it afterwards).

Endpoints​

EndpointSchemeComponentPortPathTLS parameterBinding parametersBinding secretsProvisioning command
httphttpnode9200 (http_port)-tls_enabledusername, tlspassword-

Commands​

CommandComponentTargetDescription
Cluster health (cluster_health)nodefirst hostReads _cluster/health (status, nodes, unassigned shards).
List nodes (cat_nodes)nodefirst hostReads _cat/nodes (roles, heap, load, elected manager).

Health checks​

Liveness (per instance)​

ComponentCheckDetails
managerTCP {{ host.ip or '127.0.0.1' }}:{{ config.http_port }}90 retries; interval 2 s
nodeTCP {{ host.ip or '127.0.0.1' }}:{{ config.http_port }}90 retries; interval 2 s

Readiness (service check)​

CheckDetails
TCP {{ host.ip or '127.0.0.1' }}:{{ config.http_port }}-

Preflight checks​

CheckTypeMeaningSeverityComponents
memorymemory_mb {"min": 4096}at least 4096 MB of memoryblockingevery component
max_map_countsysctl_min {"key": "vm.max_map_count", "min": 262144}kernel parameter vm.max_map_count at least 262144warningevery component
http_port_freeport_free {"param": "http_port"}port 9200 free on the hostblockingevery component

Backup and restore​

Snapshot of every index (security index excepted) into a filesystem repository of path.repo, archived (P5C-008, engine opensearch_snapshot). Mode single-node only: a cluster needs a repository shared by every node and is refused by the script with an explicit message.

Formatopensearch-snapshot
Componentnode
Files{{ backup.dir }}/snapshot.tar.gz
Restore testno
Instances stopped for the restoreno

Uninstall​

Paths removed when the data is purged: {{ paths.data }}, {{ paths.log }}.

Upstream documentation​