Skip to content

Commit

Permalink
proposal: daemon process (#769)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>

Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Aug 15, 2022
1 parent d06b878 commit 2f82fa5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/proposals/20220812-daemon-service.md
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"
])
```

0 comments on commit 2f82fa5

Please sign in to comment.