feat: add opensearch search backend module#275
Open
dschmidt wants to merge 2 commits intoopencloud-eu:mainfrom
Open
feat: add opensearch search backend module#275dschmidt wants to merge 2 commits intoopencloud-eu:mainfrom
dschmidt wants to merge 2 commits intoopencloud-eu:mainfrom
Conversation
Adds search/opensearch.yml — a single-node OpenSearch deployment wired up as the opencloud search engine backend via SEARCH_ENGINE_TYPE=open-search. The security plugin is disabled because the service is only reachable on the internal opencloud-net bridge (no published port). Do not publish or proxy this without enabling the security plugin first. The disk-based shard allocation watermarks are disabled so the index does not flip to read-only on modest disks, which otherwise silently turns bulk upserts into no-ops.
df7b6d6 to
c814f08
Compare
There was a problem hiding this comment.
Pull request overview
Adds a Docker Compose module to run OpenSearch as the OpenCloud search backend for local/dev deployments.
Changes:
- Introduces
search/opensearch.ymlto deploy a single-node OpenSearch service. - Wires the
opencloudservice to use OpenSearch viaSEARCH_ENGINE_TYPE=open-searchand related env vars. - Adds a healthcheck and
depends_on: condition: service_healthygating for startup ordering.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search/opensearch.yml— a single-node OpenSearch deployment wired up as the opencloud search engine backend (SEARCH_ENGINE_TYPE=open-search).-f search/opensearch.ymlor by adding the file toCOMPOSE_FILEin.env.Notes
opencloud-netbridge (no published port). Do not publish or reverse-proxy this without first enabling the security plugin and providing real credentials.yellow(single-node clusters can't go green — replicas have nowhere to land).opencloudwaits on that viadepends_on: service_healthy.Test plan
docker compose -f docker-compose.yml -f search/tika.yml -f search/opensearch.yml up -dcurl http://opensearch:9200/opencloud-resources/_countgrows