OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

[META] Multi-tenancy support in OpenSearch

Open ansjcy opened this issue 9 months ago • 1 comments

Please describe the end goal of this project

Introduce and enable multi-tenancy as a first class citizen in OpenSearch by associating 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 use cases and build a generic framework/solution, which can be extend it to other workflow like indexing.

Supporting References

Related RFC

  • [ ] https://github.com/opensearch-project/OpenSearch/issues/13341

Potential downstream consumers

  • [ ] https://github.com/opensearch-project/OpenSearch/issues/11429
  • [ ] https://github.com/opensearch-project/OpenSearch/issues/11173
  • [ ] https://github.com/opensearch-project/OpenSearch/issues/10938
  • [ ] https://github.com/opensearch-project/OpenSearch/issues/12084
  • [ ] Slow logs, we haven't created an issue as mentioned in the RFC, but if we add the labels in the source field slow log will automagically have the labels.

Issues/PRs

MVP version:

  • [x] POC: https://github.com/opensearch-project/OpenSearch/pull/13374
  • [ ] Add the ability to attach tenancy labels in a SearchRequest, allowing clients to provide tenancy information in search requests.
  • [ ] Develop a rule-based labeling system where a component on the cluster assigns labels to incoming search requests.

Related component

Search

ansjcy avatar May 02 '24 21:05 ansjcy

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

andrross avatar May 08 '24 15:05 andrross

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

kaushalmahi12 avatar May 16 '24 18:05 kaushalmahi12

this looks like a good plan. Thanks @ansjcy

getsaurabh02 avatar Jun 25 '24 20:06 getsaurabh02