Apache Mesos如何处理自定义资源?(How custom resources are handled by Apache Mesos?)

编程入门 行业动态 更新时间:2024-10-27 06:20:00
Apache Mesos如何处理自定义资源?(How custom resources are handled by Apache Mesos?)

我想将具有连接池的mesos代理程序配置为具有10个连接的自定义资源。 在此之后,我假设连接将成为Mesos Offer的一部分。 我也明白,Mesos不关心自定义资源的隔离。

我的问题是

我提供了1个连接以及其他资源。 如果我接受这个提议,那么这个奴隶的连接数会减少到9。 只有在运行任务完成/死亡后,连接数才会再次变为10?

我提供了1个连接以及其他资源。 我接受了该提议,并且在TaskInfo中我没有将连接添加为资源。 这仍然会使我的连接数减少1或连接数是否相同?

I want to configure mesos agent with connection pool as custom resource with 10 connections. After this, I assume connection will be a part of Mesos Offer. I also understand that Mesos does not take care of isolation of custom resources.

My questions are

I am offered 1 connection along with other resources. If I accept the offer, will that reduce connection count to 9 for that slave. Will number of connections will be 10 again only after running task is finished/killed ?

I am offered 1 connection along with other resources. I accepted the offer and in TaskInfo I did not add connection as resource. Will that still make my connections reduce by 1 or number of connections will be same ?

最满意答案

是的,只有当您将连接指定为标量时才会减少。 如果您没有明确声明资源,则不会减去任何内容。

看看属性资源文档

Yes it will be reduced but only if you specify connections as a scalar. If you don't explicitly declare resources nothing will be subtracted.

Take a look at attributes-resources docs

更多推荐

本文发布于:2023-08-06 21:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1455436.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   如何处理   资源   Mesos   Apache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!