User Tools

Site Tools


opensearch

**This is an old revision of the document!**

Installing OpenSearch

Prerequisites and Setup

  • uses Docker; which is why i installed Docker and wrote the Docker wiki yesterday
  • sudo swapoff -a
    • disables memory-paging and swapping
  • sudo vi etc/sysctl.conf (leading / removed because mod_security is stupid)
    • actually it's etc/sysctl.d/10-map-count.conf
    • vm.max_map_count=262144
      • Set max map count to 262144
  • sudo sysctl -p
    • reload kernel parameters

Install Steps

  • curl -O https://raw.githubusercontent.com/opensearch-project/documentation-website/2.19/assets/examples/docker-compose.yml
    • download the example docker-compose (which is a functional OpenSearch cluster)
  • export OPENSEARCH_INITIAL_ADMIN_PASSWORD=<admin-password>
    * docker compose up -d
    • start the docker-compose cluster as background process (-d = detached)
    • will download about 12 containers (two of which are 968MB and 350MB); takes a while first time

Testing Steps

  • curl https://localhost:9200 -ku admin:<admin-password>
    • response should confirm that the install worked
  • http://localhost:5601/ should respond with dashboards and such
    • change admin-password if you like at this point
opensearch.1742739934.txt.gz ยท Last modified: 2025/03/23 14:25 by ron

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki