Is there any way of running a service (single instance) on each deployed agent node? I need that because each agent needs to mount a storage from S3 using s3fs
DC/OS running a service on each agent
69 views Asked by Romeo Mihalcea At
1
Is there any way of running a service (single instance) on each deployed agent node? I need that because each agent needs to mount a storage from S3 using s3fs
The name of the feature you're looking for is "daemon tasks", but unfortunately, it's still in the planning phase for Mesos itself. Due to the fact that schedulers don't know the entire state of the cluster, Mesos needs to add a feature to enable this functionality. Once in Mesos it can be integrated with DC/OS.
The primary workaround is to use Marathon to deploy an app with the UNIQUE constraint (
"constraints": [["hostname", "UNIQUE"]]
) and set the appinstances
to the number of agent nodes. Unfortunately this means you have to adjust the instances number when you add new nodes.