DC/OS applications lose their state when they terminate and are relaunched. In some contexts, for instance, if your application uses MySQL, or if you are using a stateful service like Kafka or Cassandra, you’ll want your application to preserve its state.
Mount disk resources to enable tasks that can be restarted without data loss.
Mount Disk Resources
With DC/OS you can configure Mesos Mount disk resources across your cluster simply by mounting storage resources on agents using a well-known path.…Read More
For some stateful services, such as Jenkins/Velocity, it can be convenient to mount a shared network drive to every node. A shared network drive makes it possible to launch the task on a new node if the node in use becomes unavailable.…Read More
Local Persistent Volumes
When you specify a local volume or volumes, tasks and their associated data are “pinned” to the node they are first launched on and will be relaunched on that node if they terminate. The resources the application requires are also reserved. Marathon will implicitly reserve an appropriate amount of disk space (as declared in the volume via persistent.size) in addition to the sandbox disk size you specify as part of your application definition.…Read More
External Persistent Volumes
Warning: Volume size is specified in GiB.…Read More