Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remote Vector Index Build] Initial implementation of Index Build Service #2532

Conversation

rchitale7
Copy link
Member

Description

This PR contains changes for the Remote Index Build Service. It is being merged into a feature branch for now, as it does not include unit tests, and the final result will be merged into a separate repository. These changes are for the 'control flow' of the service - follow up PRs will be raised for the object store and faiss client implementations.

Related Issues

TODO: Create GitHub Issue for Index Build Service Control Flow Design.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

sam-herman and others added 9 commits February 10, 2025 13:32
…t#2442)

* move build to one directory, fix broken flag

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* fix make path

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* changelog update

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* add fix for classpath change and for cmake discovery on macos

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* fix make discovery for gradle

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* fix cmake path for macOS

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

---------

Signed-off-by: Samuel Herman <sherman8915@gmail.com>
* Update package name to fix compilation issue

Core renamed this package in opensearch-project/OpenSearch#17272
This commit renames package accordingly

Signed-off-by: Balasubramanian <balasvij@amazon.com>

* Update build.gradle and build.sh to separate x64 linux nmslib build with different gcc versions (opensearch-project#2506) (opensearch-project#2508)

* Update build gradle to separate nmslib / faiss generation

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Update scripts/build.sh to separate enable gcc switch

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Remove test comments

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Remove test comments

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Remove test comments

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Updating restart and rolling upgrade bwc test bundle.gradle

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Enforce gcc10 for nmslib to compile and avx512_spr have no-op

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

---------

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 107c4f1)

Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>

---------

Signed-off-by: Balasubramanian <balasvij@amazon.com>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
…pensearch-project#2470)

* Adds debug logs for KNNQuery and KNNWeight

Signed-off-by: Tejas Shah <shatejas@amazon.com>

* Adds check to see if log is enabled to start and stop StopWatch

Signed-off-by: Tejas Shah <shatejas@amazon.com>

* Addressing comments on the PR

Signed-off-by: Tejas Shah <shatejas@amazon.com>

* Adds shard and segment info in the logs

Signed-off-by: Tejas Shah <shatejas@amazon.com>

* Removes unnecessary segment name param from exact search

Signed-off-by: Tejas Shah <shatejas@amazon.com>

* Fixes the build

Signed-off-by: Tejas Shah <shatejas@amazon.com>

---------

Signed-off-by: Tejas Shah <shatejas@amazon.com>
(cherry picked from commit f322e27)

Co-authored-by: Tejas Shah <shatejas@amazon.com>
* clean JNI artifacts with ./gradlew clean

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* nest release under build directory

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* adjust all references to the old release path

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* remove irrelevant paths from gitignore, add jni/build

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

* fix logging on linux

Signed-off-by: Samuel Herman <sherman8915@gmail.com>

---------

Signed-off-by: Samuel Herman <sherman8915@gmail.com>
* Remove skip building graph check for quantization use case (opensearch-project#2430)

For quantization indices, we don't have to apply building graph check
since it is already faster, this is now only applied for fp32/16 indices
and where threshold is configured.

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>

* Update default to 0 to always build graph as default behavior (opensearch-project#2452)

Signed-off-by: Balasubramanian <balasvij@amazon.com>

* Update changelog

Signed-off-by: Balasubramanian <balasvij@amazon.com>

---------

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
Signed-off-by: Balasubramanian <balasvij@amazon.com>
* Add release notes for 2.19.0

Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>

* Fix links for release notes

Co-authored-by: John Mazanec <jmazane@amazon.com>
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>

---------

Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
Co-authored-by: John Mazanec <jmazane@amazon.com>
Signed-off-by: Rohan Chitale <r.chitale7@gmail.com>
@navneet1v navneet1v merged commit 91d66eb into opensearch-project:feature/remote-index-build-service Feb 17, 2025
16 of 47 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.

7 participants