neondatabase / autoscaling

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

neonvm: Fractional CPU limiting inside the VM #1052

Open sharnoff opened 1 month ago

sharnoff commented 1 month ago

Decided to push the branch I'd made, for discussion. Not necessarily going this route, pending a couple RFCs.

github-actions[bot] commented 1 week ago

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ :robot:
github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1 0.56% (-0.00%) :thumbsdown:
github.com/neondatabase/autoscaling/neonvm/controllers 12.26% (+0.16%) :thumbsup:
github.com/neondatabase/autoscaling/neonvm/daemon 0.00% (ø)
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/apis/neonvm/v1/zz_generated.deepcopy.go | 0.00% (ø) | 427 (+4) | 0 | 427 (+4) | | | github.com/neondatabase/autoscaling/neonvm/controllers/vm_controller.go | 26.05% (**+0.25%**) | 691 (+5) | 180 (+3) | 511 (+2) | :thumbsup: | | github.com/neondatabase/autoscaling/neonvm/daemon/main.go | 0.00% (ø) | 81 (+81) | 0 | 81 (+81) | | | github.com/neondatabase/autoscaling/neonvm/runner/main.go | 0.00% (ø) | 835 (+48) | 0 | 835 (+48) | | | github.com/neondatabase/autoscaling/neonvm/tools/vm-builder/main.go | 0.00% (ø) | 215 (+7) | 0 | 215 (+7) | | _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