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

[BanyanDB] Implement Read-Only Mode When Disk Usage Exceeds Watermark #12555

Open
2 of 3 tasks
hanahmily opened this issue Aug 22, 2024 · 1 comment
Open
2 of 3 tasks
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

As disk usage approaches full capacity, data corruption and system failure risk increases. BanyanDB can enter read-only mode by setting a threshold to maintain data integrity and allow for administrative intervention.

  1. Define a Disk Usage Watermark:

    • Allow users to configure a disk usage percentage (e.g., 80%) as a watermark.
  2. Monitoring Mechanism:

    • Implement a background process to monitor disk usage metrics at regular intervals.
    • When the watermark is exceeded, the process triggers a switch to read-only mode.
  3. Read-Only Mode Activation:

    • Disable all write operations while allowing read queries.
    • Logs and metrics will record this transition to alarm users.
  4. Recovery and Normalization:

    • Once disk usage falls below a safe threshold, allow the system to return to normal operations.
    • Provide manual override options for administrators.

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 the feature New feature label Aug 22, 2024
@hanahmily hanahmily added this to the BanyanDB - 0.8.0 milestone Aug 22, 2024
@wu-sheng
Copy link
Member

Read-Only Mode Activation:

Besides you added, we need this as a new response code to notify OAP to affect OAP self-obs metrics as well.

@wu-sheng wu-sheng added the database BanyanDB - SkyWalking native database label Aug 24, 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

2 participants