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

Migrating plugin to work with OpenSearch #1

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

saratvemulapalli
Copy link
Member

Signed-off-by: Sarat Vemulapalli vemulapallisarat@gmail.com

Migrating plugin to OpenSearch

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
build.gradle Show resolved Hide resolved
build.gradle Show resolved Hide resolved
@weicongs-amazon
Copy link
Contributor

Thanks for the work. btw, have you checked why the building failed?

@@ -17,9 +17,9 @@

Copy link
Collaborator

Choose a reason for hiding this comment

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

Will we change the package name from "opendistroforelasticsearch" to "opensearch" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Renaming opendistro has lot more changes needed.
Example: 1. APIs, indices, etc.

So we are holding that off, and working on a plan to cleanly migrate opendistro to opensearch.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Got it. Make sense.

@saratvemulapalli
Copy link
Member Author

saratvemulapalli commented Apr 8, 2021

Thanks for the work. btw, have you checked why the building failed?

Yeah the build is failing because of artifacts are not reachable.
CI's are not in the scope yet, since opensearch artifacts are not published yet publicly.

What we could do is consume artifacts from the private repository.

@weicongs-amazon
Copy link
Contributor

Thanks for the work. btw, have you checked why the building failed?

Yeah the build is failing because of artifacts are not reachable.
CI's are not in the scope yet, since opensearch artifacts are not published yet publicly.

What we could do is consume artifacts from the private repository.

should we fix this before making it public? otherwise, the communities can't build it , right?

@saratvemulapalli
Copy link
Member Author

Thanks for the work. btw, have you checked why the building failed?

Yeah the build is failing because of artifacts are not reachable.
CI's are not in the scope yet, since opensearch artifacts are not published yet publicly.
What we could do is consume artifacts from the private repository.

should we fix this before making it public? otherwise, the communities can't build it , right?

Exactly, before we go public we will make sure the artifacts are public.
From ODFE infra team, looks like the artifacts can be ready by 4/9 which is tomorrow.
Lets see how it goes.

Copy link
Collaborator

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the change!

@saratvemulapalli saratvemulapalli merged commit b0ac813 into main Apr 8, 2021
@saratvemulapalli saratvemulapalli deleted the migrating-to-opensearch branch April 8, 2021 17:18
@ohltyler ohltyler added the version upgrade Upgrading OpenSearch compatibility label Apr 25, 2021
kaituo added a commit that referenced this pull request Aug 23, 2024
This commit addresses several issues and improvements in the inference logic and config index mapping:

1. Fixes in RealTimeInferencer:

* Previously, we checked if the last update time of the model state was within the current interval and skipped inference if it was. However, this led to excessive skipping of inference because the last update time was updated when retrieving the model state from the cache.
* Introduced lastSeenExecutionEndTime in the model state, which specifically tracks the last time a sample was processed during inference (not training). This ensures more accurate control over when inference should be skipped.

2. Consistent Naming in Config Index Mapping:

* To maintain consistency across the codebase, changed defaultFill to default_fill in the Config index mapping, following the underscore naming convention used elsewhere.

3. Additional Null Checks:

* Added more null checks for the defaultFill field in the Config constructor to improve robustness.

Testing:
* Added a smoke test to allow the job scheduler to trigger anomaly detection inferencing, successfully reproducing and verifying the fix for item #1.* added unit tests for item #3.

Signed-off-by: Kaituo Li <kaituo@amazon.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 23, 2024
This commit addresses several issues and improvements in the inference logic and config index mapping:

1. Fixes in RealTimeInferencer:

* Previously, we checked if the last update time of the model state was within the current interval and skipped inference if it was. However, this led to excessive skipping of inference because the last update time was updated when retrieving the model state from the cache.
* Introduced lastSeenExecutionEndTime in the model state, which specifically tracks the last time a sample was processed during inference (not training). This ensures more accurate control over when inference should be skipped.

2. Consistent Naming in Config Index Mapping:

* To maintain consistency across the codebase, changed defaultFill to default_fill in the Config index mapping, following the underscore naming convention used elsewhere.

3. Additional Null Checks:

* Added more null checks for the defaultFill field in the Config constructor to improve robustness.

Testing:
* Added a smoke test to allow the job scheduler to trigger anomaly detection inferencing, successfully reproducing and verifying the fix for item #1.* added unit tests for item #3.

Signed-off-by: Kaituo Li <kaituo@amazon.com>
(cherry picked from commit 2922bbd)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kaituo pushed a commit that referenced this pull request Aug 23, 2024
This commit addresses several issues and improvements in the inference logic and config index mapping:

1. Fixes in RealTimeInferencer:

* Previously, we checked if the last update time of the model state was within the current interval and skipped inference if it was. However, this led to excessive skipping of inference because the last update time was updated when retrieving the model state from the cache.
* Introduced lastSeenExecutionEndTime in the model state, which specifically tracks the last time a sample was processed during inference (not training). This ensures more accurate control over when inference should be skipped.

2. Consistent Naming in Config Index Mapping:

* To maintain consistency across the codebase, changed defaultFill to default_fill in the Config index mapping, following the underscore naming convention used elsewhere.

3. Additional Null Checks:

* Added more null checks for the defaultFill field in the Config constructor to improve robustness.

Testing:
* Added a smoke test to allow the job scheduler to trigger anomaly detection inferencing, successfully reproducing and verifying the fix for item #1.* added unit tests for item #3.

Signed-off-by: Kaituo Li <kaituo@amazon.com>
(cherry picked from commit 2922bbd)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kaituo pushed a commit that referenced this pull request Aug 26, 2024
This commit addresses several issues and improvements in the inference logic and config index mapping:

1. Fixes in RealTimeInferencer:

* Previously, we checked if the last update time of the model state was within the current interval and skipped inference if it was. However, this led to excessive skipping of inference because the last update time was updated when retrieving the model state from the cache.
* Introduced lastSeenExecutionEndTime in the model state, which specifically tracks the last time a sample was processed during inference (not training). This ensures more accurate control over when inference should be skipped.

2. Consistent Naming in Config Index Mapping:

* To maintain consistency across the codebase, changed defaultFill to default_fill in the Config index mapping, following the underscore naming convention used elsewhere.

3. Additional Null Checks:

* Added more null checks for the defaultFill field in the Config constructor to improve robustness.

Testing:
* Added a smoke test to allow the job scheduler to trigger anomaly detection inferencing, successfully reproducing and verifying the fix for item #1.* added unit tests for item #3.


(cherry picked from commit 2922bbd)

Signed-off-by: Kaituo Li <kaituo@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version upgrade Upgrading OpenSearch compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants