Feature
I want to serve a wasi:http/service component that I expect won't receive requests very frequently. So instead of keeping a wasmtime serve process running, I'd like to rely on systemd socket activation to start that process when a request comes in and shut it down after a while of inactivity.
#3729 originally added the --listenfd option, but that doesn't appear to do anything anymore. I think it would be a good option to allow wasmtime serve to inherit sockets from a service manager instead of creating and binding one itself.
Benefit
Since wasmtime can launch components quickly, I wouldn't have to keep a process around unless it's actively serving a request.
Implementation
I suppose we can re-use the approach from #3729 but only implement it for wasmtime serve .
FWIW I'm happy to open a PR for this if this sounds like a feature worth adding again.
Alternatives
Using something like systemd-socket-proxyd I guess?
Feature
I want to serve a
wasi:http/servicecomponent that I expect won't receive requests very frequently. So instead of keeping awasmtime serveprocess running, I'd like to rely on systemd socket activation to start that process when a request comes in and shut it down after a while of inactivity.#3729 originally added the
--listenfdoption, but that doesn't appear to do anything anymore. I think it would be a good option to allowwasmtime serveto inherit sockets from a service manager instead of creating and binding one itself.Benefit
Since
wasmtimecan launch components quickly, I wouldn't have to keep a process around unless it's actively serving a request.Implementation
I suppose we can re-use the approach from #3729 but only implement it for
wasmtime serve.FWIW I'm happy to open a PR for this if this sounds like a feature worth adding again.
Alternatives
Using something like
systemd-socket-proxydI guess?