Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Limit maximum DB size #736

Merged
merged 4 commits into from
Oct 5, 2023
Merged

Limit maximum DB size #736

merged 4 commits into from
Oct 5, 2023

Conversation

MarinPostma
Copy link
Contributor

@MarinPostma MarinPostma commented Oct 4, 2023

This PR adds the ability to limit the maximum db size. This is done on a per-namespace basis, by sending a request to the /v1/namespaces/foo/config on the admin API. e.g:

{
    "block_reads": false,
    "block_writes": false,
    "block_reason": null,
    "max_db_size": "10gb",
}

it is also possible to set the maximum db size on namespace creation

Copy link
Contributor

@psarna psarna left a comment

Choose a reason for hiding this comment

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

looks good, one nitpick; also, let's get it rebased due to conflicts

@psarna psarna enabled auto-merge October 5, 2023 10:08
@psarna psarna added this pull request to the merge queue Oct 5, 2023
Merged via the queue into main with commit 0990645 Oct 5, 2023
@psarna psarna deleted the limit-db-size branch October 5, 2023 10:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants