Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy activation for jobs #19

Merged

Conversation

martin-helmich
Copy link
Member

This PR adds a set of new configuration options for the Job directive that allow a process to be only started on-demand when the first client connects to it.

To accomplish this, mittnite will itself listen for connections (TCP/IP only, at the moment); when the first connection is established, the actual process will be started. The connection will be held until startup is complete, and packets will be forwarded from the client to the process and the other way around. After a configurable period of inactivity, the process will be terminated again.

pkg/proc/job.go Show resolved Hide resolved
pkg/proc/job.go Show resolved Hide resolved
pkg/proc/job.go Show resolved Hide resolved
pkg/proc/job.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@martin-helmich martin-helmich merged commit d2ba37e into mittwald:master Mar 19, 2020
@martin-helmich martin-helmich deleted the feature/lazy-activation branch March 19, 2020 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants