You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc Roos <M....@f1-outsourcing.eu> on 2020/08/25 21:16:01 UTC
FW: How to configure a pre-existing slrp volume/disk
On this dcos manual[1] there is only listed how to use a profile from an
slrp. Any one know how to change this to a pre-existing (lvm) volume?
(mesos example is also welcome ;)
cat > app2.json <<EOF
{
"cmd": "echo $(date) >> data/foo && cat data/foo && sleep 5000",
"container": {
"docker": {
"image": "alpine"
},
"type": "MESOS",
"volumes": [
{
"containerPath": "data",
"mode": "RW",
"persistent": {
"size": 100,
"profileName": "fast",
"type": "mount"
}
}
]
},
"cpus": 0.1,
"id": "/app-persistent-stable-good-profile-2",
"instances": 1,
"mem": 128,
"residency": {
"taskLostBehavior": "WAIT_FOREVER",
"relaunchEscalationTimeoutSeconds": 3600
},
"unreachableStrategy": "disabled",
"upgradeStrategy": {
"maximumOverCapacity": 0,
"minimumHealthCapacity": 0
}
}
EOF
[1]
https://docs.d2iq.com/mesosphere/dcos/services/storage/1.0.0/tutorials/manage-local-disks/