From 2f82fa5ab884671ba2a5058d38d205cbd20bce1f Mon Sep 17 00:00:00 2001 From: Keming Date: Mon, 15 Aug 2022 18:29:03 +0800 Subject: [PATCH] proposal: daemon process (#769) Signed-off-by: Keming Signed-off-by: Keming --- docs/proposals/20220812-daemon-service.md | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/proposals/20220812-daemon-service.md diff --git a/docs/proposals/20220812-daemon-service.md b/docs/proposals/20220812-daemon-service.md new file mode 100644 index 000000000..b507425aa --- /dev/null +++ b/docs/proposals/20220812-daemon-service.md @@ -0,0 +1,38 @@ +# Daemon Process Support + +Author: +- [kemingy](https://github.com/kemingy/) + + +## Summary + +This proposal is designed to support run daemon processes in the `envd` container. + +## Motivation + +There can be a general solution for several use cases: + +1. run a Jupyter notebook service +2. run a TensorBoard service +3. run a demo machine learning model serving service +4. run a metrics exporter + +This is related to the following: + +* https://github.com/tensorchord/envd/issues/527 +* https://github.com/tensorchord/envd/pull/568 +* https://github.com/tensorchord/envd/pull/708 +* https://github.com/tensorchord/envd/pull/497 + +## Goals + +* able to run multiple daemon processes controlled by `tini` + +## API + +```python +runtime.daemon(commands=[ + "python3 serving.py --port 8080", + "watch date > /dev/null" +]) +```