opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.85k stars 1.83k forks source link

[META] Multi-tenancy support in OpenSearch #13516

Open ansjcy opened 6 months ago

ansjcy commented 6 months ago

Please describe the end goal of this project

Introduce and enable multi-tenancy as a first class citizen in OpenSearch by associating request traffic with specific users or workloads. This will allow better categorization, management, troubleshooting and analysis of subsets of traffic hitting an OpenSearch cluster.

We can start from the search queries use cases by attaching customized and rule-based labels and building a generic framework/solution for labeling, which can be later extend it to other workflow like indexing and bulk requests.

Note: We are not trying to achieve "full-multitenancy" in OpenSearch with this META issue :), but this could be a good first step towards that.

Supporting References

Related RFC

Potential downstream consumers

Issues/PRs

Client-side labeling:

Rule-based labeling

POCs:

Related component

Search

andrross commented 6 months ago

[Triage - attendees 1 2 3 4] @ansjcy Thanks for filing. Looking forward to seeing progress here.

kaushalmahi12 commented 6 months ago

Hi @ansjcy thanks for opening this issue. I have an open PR for this for QSB use case(search workloads): https://github.com/opensearch-project/OpenSearch/pull/13713

getsaurabh02 commented 5 months ago

this looks like a good plan. Thanks @ansjcy