Skip to content

feat(oss-opensearch): Add replication type configuration option#627

Merged
alwayslove2013 merged 2 commits intozilliztech:mainfrom
Akhil-Pathivada:feature/opensearch-replication-type
Nov 7, 2025
Merged

feat(oss-opensearch): Add replication type configuration option#627
alwayslove2013 merged 2 commits intozilliztech:mainfrom
Akhil-Pathivada:feature/opensearch-replication-type

Conversation

@Akhil-Pathivada
Copy link
Copy Markdown
Contributor

@Akhil-Pathivada Akhil-Pathivada commented Nov 4, 2025

Summary

Add support for configuring OpenSearch replication type (DOCUMENT or SEGMENT) as a user-selectable option in the UI. This enables testing and comparison of different replication strategies for performance optimization.

Changes

  • Added replication_type field to OSSOpenSearchIndexConfig (default: DOCUMENT)
  • Updated index creation to apply replication type setting
  • Added UI dropdown for users to select DOCUMENT or SEGMENT replication
  • Applies to both AWSOpenSearch and OSSOpenSearch databases

Files Modified

  • vectordb_bench/backend/clients/oss_opensearch/config.py
  • vectordb_bench/backend/clients/oss_opensearch/oss_opensearch.py
  • vectordb_bench/models.py
  • vectordb_bench/frontend/config/dbCaseConfigs.py

Key Features

✅ Backward compatible (defaults to DOCUMENT)
✅ Works with Load, Performance, and Streaming tests

Screenshots

Screenshot 2025-11-05 at 02 30 58

@Akhil-Pathivada Akhil-Pathivada marked this pull request as ready for review November 4, 2025 21:07
@Akhil-Pathivada
Copy link
Copy Markdown
Contributor Author

/assign @alwayslove2013

@Akhil-Pathivada
Copy link
Copy Markdown
Contributor Author

@alwayslove2013 Can you help reviewing this?

Copy link
Copy Markdown
Contributor

@alwayslove2013 alwayslove2013 left a comment

Choose a reason for hiding this comment

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

Nice work~

@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Akhil-Pathivada, alwayslove2013
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@alwayslove2013
Copy link
Copy Markdown
Contributor

@Akhil-Pathivada, Nice work on this! Would you mind taking a look at the linting issues?

pip install black ruff --upgrade
make format
make lint

@Akhil-Pathivada
Copy link
Copy Markdown
Contributor Author

Fixed the lint issues @alwayslove2013

@alwayslove2013 alwayslove2013 merged commit 64fecb1 into zilliztech:main Nov 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants