Skip to content

fix: added number_of_replicas as 0 to not create unused nodes in OpenSearch#1318

Merged
lucaseduoli merged 7 commits into
release-0.4.1from
fix/opensearch_yellow
Apr 1, 2026
Merged

fix: added number_of_replicas as 0 to not create unused nodes in OpenSearch#1318
lucaseduoli merged 7 commits into
release-0.4.1from
fix/opensearch_yellow

Conversation

@lucaseduoli
Copy link
Copy Markdown
Collaborator

This pull request focuses on optimizing OpenSearch index configurations by reducing the number of replicas to zero, which can improve indexing speed and reduce resource usage in development or single-node environments. The changes affect both the knowledge filters index and dynamically created embedding indices.

OpenSearch index configuration improvements:

  • Set "number_of_replicas": 0 in the knowledge filters index settings in src/main.py to ensure no replicas are created for this index.
  • Set "number_of_replicas": 0 (and remove the previous default of 1) for dynamically created embedding indices in src/utils/embeddings.py, further optimizing resource usage.

@lucaseduoli lucaseduoli requested a review from mpawlow April 1, 2026 18:02
@github-actions github-actions Bot added backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working. labels Apr 1, 2026
Copy link
Copy Markdown
Collaborator

@mpawlow mpawlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review 1

  • ✅ LGTM / Approved
  • Approval based on changes already reviewed & approved for release-0.4.1

@github-actions github-actions Bot added the lgtm label Apr 1, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Apr 1, 2026
@lucaseduoli lucaseduoli merged commit ff9b717 into release-0.4.1 Apr 1, 2026
6 checks passed
@github-actions github-actions Bot deleted the fix/opensearch_yellow branch April 1, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working. lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TransportError(503,'search_phase_execution_exception') while uploading documents

2 participants