Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute: Allow postgres user to power off the VM (#10710)
I plan to use this when launching a fast_import job in a VM. There's currently no good way for an executable running in a NeonVM to exit gracefully and have the VM shut down. The inittab we use always respawns the payload command. The idea is that the control plane can use "fast_import ... && poweroff" as the command, so that when fast_import completes successfully, the VM is terminated, and the k8s Pod and VirtualMachine object are marked as completed successfully. I'm working on bigger changes to how we launch VMs, and will try to come up with a nicer system for that, but in the meanwhile, this quick hack allows us to proceed with using VMs for one-off jobs like fast_import.
- Loading branch information
0abff59
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7576 tests run: 7208 passed, 0 failed, 368 skipped (full report)
Flaky tests (1)
Postgres 17
test_pageserver_chaos[None]
: release-arm64-without-lfcCode coverage* (full report)
functions
:33.2% (8583 of 25822 functions)
lines
:49.1% (72275 of 147231 lines)
* collected from Rust tests only
0abff59 at 2025-02-07T18:37:25.383Z :recycle: