我想将具有连接池的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
更多推荐
发布评论