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

feature/opensearch #1114

Merged
merged 14 commits into from
Oct 22, 2024
Merged

feature/opensearch #1114

merged 14 commits into from
Oct 22, 2024

Conversation

gecBurton
Copy link
Collaborator

@gecBurton gecBurton commented Oct 19, 2024

Context

As an Infra Engineer I would like the option of being able to use OpenSearch instead of ElasticSearch as my vector database

Changes proposed in this pull request

Guidance to review

Note that this is POC only, and this is made clear in the README

This can be deployed and tested to dev

Relevant links

Things to check

  • I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed
  • I have run integration tests

@gecBurton gecBurton marked this pull request as draft October 19, 2024 09:08
@@ -49,8 +49,7 @@ locals {
}

django_app_secrets = {
"ELASTIC__API_KEY" : var.elastic_api_key,
"ELASTIC__CLOUD_ID" : var.cloud_id,
"ELASTIC__COLLECTION_ENDPOINT": module.opensearch.collection_enpdoint,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

v nasty abuse of terminology here, suggestions welcome

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

im not going to change this as this would introduce a breaking change to us, DBT and DSIT which isnt worth the effort for a non production feature

)
client = OpenSearch(
hosts=[{"host": self.collection_enpdoint, "port": 443}],
http_auth=auth,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not sure this is needed from within VPC, still investigating

"aoss:*",
"es:*",
]
resources = ["*"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok for testing, I will tighten

# statement {
# effect = "Allow"
# actions = ["aoss:*"]
# resources = ["*"] restrict this
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gecBurton gecBurton marked this pull request as ready for review October 22, 2024 11:03
README.md Outdated

We are currently using ElasticSearch as our vector database.

We have also successfully deployed Redbox to OpenSearch Serverless but this support shouldbe considered experimental
Copy link
Contributor

Choose a reason for hiding this comment

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

space in shouldbe

README.md Outdated Show resolved Hide resolved
@gecBurton gecBurton merged commit 3efcd8c into main Oct 22, 2024
5 checks passed
@gecBurton gecBurton deleted the feature/opensearch branch October 22, 2024 11:36
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.

2 participants