0
是否有任何方法可以重置Mesos中的所有从属预留资源,而无需逐个配置/ unreserve http端点?Mesos:Unreserve从属资源
在Mesos文档:
/取消保留(自0.25.0)
假设我们要取消保留我们动态以上预留的资源。我们可以发送一个HTTP POST请求到硕士/取消预留端点就像这样:
$ curl -i \
-u <operator_principal>:<password> \
-d slaveId=<slave_id> \
-d resources='[
{
"name": "cpus",
"type": "SCALAR",
"scalar": { "value": 8 },
"role": "ads",
"reservation": {
"principal": <reserver_principal>
}
},
{
"name": "mem",
"type": "SCALAR",
"scalar": { "value": 4096 },
"role": "ads",
"reservation": {
"principal": <reserver_principal>
}
}
]' \
-X POST http://<ip>:<port>/master/unreserve