neondatabase / autoscaling

Postgres vertical autoscaling in k8s
Apache License 2.0
166 stars 21 forks source link

Support disk quotas #1062

Closed petuhovskiy closed 2 months ago

petuhovskiy commented 2 months ago

This PR adds initial support for disk quotas into NeonVM:

It also enables CONFIG_QFMT_V2=y kernel option, because it's required for quotas support.

ref https://github.com/neondatabase/autoscaling/issues/1071

petuhovskiy commented 2 months ago

Added e2e test for disk quotas. It may help understanding usage and outputs of some binaries.

Here is a log of e2e test run: https://gist.github.com/petuhovskiy/26d90cb55d1cb866ce8e882b487b139c

github-actions[bot] commented 2 months ago

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ :robot:
github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1 0.56% (ø)
github.com/neondatabase/autoscaling/neonvm/runner 0.00% (ø)
github.com/neondatabase/autoscaling/neonvm/tools/vm-builder 0.00% (ø)

Coverage by file ### Changed files (no unit tests) | Changed File | Coverage Δ | Total | Covered | Missed | :robot: | |--------------|------------|-------|---------|--------|---------| | github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1/virtualmachine_types.go | 1.92% (ø) | 52 | 1 | 51 | | | github.com/neondatabase/autoscaling/neonvm/runner/main.go | 0.00% (ø) | 787 (+3) | 0 | 787 (+3) | | | github.com/neondatabase/autoscaling/neonvm/tools/vm-builder/main.go | 0.00% (ø) | 208 | 0 | 208 | | _Please note that the "Total", "Covered", and "Missed" counts above refer to ***code statements*** instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code._

HTML Report

Click to open