-
Notifications
You must be signed in to change notification settings - Fork 4
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
Multiple processes of the same service (auto-spawning) #26
Comments
In order of increasing complexity:
or
Maybe both or something else? In systemd the @ works a bit like templates so the processes can vary slightly. Perhaps we could have something like:
And in the |
Terraform uses the
It really seems that we should come up with a proper language to handle these things? @drystone thoughts? |
That seems a good solution - this config would sit well in the
Currently |
@drystone the latest suggestion seems to be too enclosed, perhaps we can replace it with "relational" objects like this? application-group "foo" {
applications [
"${application.baz}",
"${application.bar}",
]
}
application "baz" {
instance "1" {
# per-instance overrides
env {
"ID" = "1"
}
pidfile = "/var/run/baz.1.pid"
}
instance "2" {
# ...
}
}
}
application "bar" {
instances = 4
}
|
@ronaldtse, with the current nereon syntax we can do the following (except
Do you think would be sufficient to close this issue? |
Some processes can be started more than once independently, such as worker processes.
systemd can do this with a minor "hack", where you specify a
foo.target
and a[email protected]
. When you enable 3foo
s, do this:Example below.
foo.target
[email protected]
The text was updated successfully, but these errors were encountered: