Kubernetes中占主导地位的资源的计算 [英] Calculation of dominant resources in Kubernetes

查看:102
本文介绍了Kubernetes中占主导地位的资源的计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据主导资源公平性(DRF)来计算Kubernetes中资源的主导份额.如何在Kubernetes中实现它?

I'm trying to calculate dominant shares of resources in Kubernetes based on what Dominant Resource Fairness(DRF) does. How can I implement it in Kubernetes?

推荐答案

Kubernetes中还没有针对DRF的特定设置模式或准则.与之最接近的是通过尝试在容器,以及 kube-scheduler 可以.如果您使用kubectl获取所有pod请求和节点容量,也可以开始.

There are no specific set patterns or guidelines for DRF in Kubernetes yet. The closest that you can get to it is by trying to manage compute resources in containers together with what the kube-scheduler does. You can also start if you fetch all the pod requests and node capacities using kubectl.

事实上, Kubernetes Spark 本机调度程序会执行类似的操作,您可以先查看

As a matter of fact, the Kubernetes Spark native scheduler does something similar to that, you can probably start by looking at the source code.

如果您不想使用Kubernetes,则可以使用 Mesos

If you don't want to use Kubernetes you can either use Mesos or YARN that implement DRF natively.

这篇关于Kubernetes中占主导地位的资源的计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆