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][BanyanDB] Support for Tags and Fields TTL #11987

Open
2 of 3 tasks
hanahmily opened this issue Mar 6, 2024 · 5 comments
Open
2 of 3 tasks

[Feature][BanyanDB] Support for Tags and Fields TTL #11987

hanahmily opened this issue Mar 6, 2024 · 5 comments
Assignees
Labels
database BanyanDB - SkyWalking native database feature New feature

Comments

@hanahmily
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

I suggest adding a new feature to BanyanDB that supports TTL (Time to Live) for tags and fields. This feature would enable BanyanDB to automatically remove specific tag or field data based on the TTL rules defined on a Group.

Currently, BanyanDB only supports TTL for the entire Group, which means that data can accumulate indefinitely, potentially causing storage issues. By implementing TTL for tags and fields, only relevant and recent data will be stored, which optimizes storage usage.

Furthermore, the proposed hot-warm-cold architecture could be utilized to set different TTL for cold, warm, or hot data, respectively.

Use case

No response

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@hanahmily hanahmily added feature New feature database BanyanDB - SkyWalking native database labels Mar 6, 2024
@sksDonni
Copy link

sksDonni commented Mar 6, 2024

I would like to take this up to get myself familiarised with the backend of banyandb. Might need some help along the way.

@hanahmily
Copy link
Contributor Author

I would like to take this up to get myself familiarised with the backend of banyandb. Might need some help along the way.

Go for it. When you are ready, I would like assign this task to you.

@sksDonni
Copy link

Hi @hanahmily, I am ready to take this up now.

@hanahmily
Copy link
Contributor Author

hanahmily commented Mar 14, 2024

@sksDonni If you have any questions about this task, please let me know. Before submitting a PR, it's important to write a design document detailing how you plan to implement this feature.

@wu-sheng
Copy link
Member

About this, I think we need to update the protocol to support this. The server side can't / shouldn't determine which fields could be removed with time, unless OAP told so. Because in some cases(mostly for streaming), fields and tags are required until TTL reached.

@wu-sheng wu-sheng added this to the BanyanDB - 1.0.0 milestone May 21, 2024
@wu-sheng wu-sheng assigned hanahmily and unassigned sksDonni May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database BanyanDB - SkyWalking native database feature New feature
Projects
None yet
Development

No branches or pull requests

3 participants