opensearch
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| opensearch [2025/03/23 14:37] – ron | opensearch [2025/04/13 16:21] (current) – removed ron | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # Installing OpenSearch | ||
| - | ## Prerequisites and Setup | ||
| - | * uses Docker; which is why i installed Docker and wrote the [[Docker]] wiki yesterday | ||
| - | * [source](https:// | ||
| - | * `sudo swapoff -a` | ||
| - | * disables memory-paging and swapping | ||
| - | * `sudo vi etc/ | ||
| - | * actually it's `etc/ | ||
| - | * `vm.max_map_count=262144` | ||
| - | * Set max map count to 262144 | ||
| - | * `sudo sysctl -p` | ||
| - | * reload kernel parameters | ||
| - | ## Install Steps | ||
| - | * `curl -O https:// | ||
| - | * download the example docker-compose (which is a functional OpenSearch cluster) | ||
| - | * `export OPENSEARCH_INITIAL_ADMIN_PASSWORD=< | ||
| - | * **NOTE** without this value the opensearch nodes will refuse to start! | ||
| - | * **ALSO NOTE** OpenSearch has requirements for this password :-/ | ||
| - | * minimum 8 character password | ||
| - | * must contain at least | ||
| - | * one uppercase letter | ||
| - | * one lowercase letter | ||
| - | * one digit | ||
| - | * one special character that is strong (whatever that means) | ||
| - | * and there are more undocumented rules; just use a password generator | ||
| - | * `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:// | ||
| - | * response should confirm that the install worked | ||
| - | * http:// | ||
| - | * change admin-password if you like at this point | ||
| - | |||
| - | ## Shooting Trouble | ||
| - | * `[ConnectionError]: | ||
| - | * | ||
opensearch.1742740644.txt.gz · Last modified: 2025/03/23 14:37 by ron
