Closed petuhovskiy closed 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
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% (ø) |
This PR adds initial support for disk quotas into NeonVM:
enableQuotas
field toEmptyDiskSource
struct. Setting it enables project quotas support on the ext4 filesystem./neonvm/bin/set-disk-quota
script to modify the quotas from inside the VMIt also enables
CONFIG_QFMT_V2=y
kernel option, because it's required for quotas support.ref https://github.com/neondatabase/autoscaling/issues/1071