1. Introduction
-
OpenSearch是从Elasti和Kibana V7.10.2分支而来;
-
https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker
2. Prerequisite
# disable memory paging and swapping performance
sudo swapoff -a
# edit sysctl config
sudo vi /etc/sysctl.conf
# add line to define desired value or change exist
vm.max_map_count=262144
# reload kernel parameter using sysctl
sudo sysctl -p
# verify change
cat /proc/sys/vm/max_map_count
3. OpenSearch Setup
docker pull opensearchproject/opensearch:1.3.16 && \
docker pull opensearchproject/opensearch-dashboards:1.3.16
version: '3.8'
services:
opensearch:
image: opensearchproject/opensearch:1.3.16
container_name: opensearch
environment:
discovery.type: single-node
plugins.security.disabled: true
compatibility.override_main_response_version: true
ports:
- "9200:9200"
- "9600:9600"
opensearch-dashboard:
image: opensearchproject/opensearch-dashboards:1.3.16
container_name: opensearch-dashboard
ports:
- "5601:5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
DISABLE_SECURITY_DASHBOARDS_PLUGIN: "true"