-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Keming <[email protected]> Signed-off-by: Keming <[email protected]>
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
]) | ||
``` |