简体   繁体   English

如何判断 vmware 上的 pyvmomi 造成了什么压力?

[英]How can I tell what strain is caused by pyvmomi on vmware?

I need to make a python script that gathers large amounts of information about vcenters.我需要制作一个 Python 脚本来收集大量有关 vCenter 的信息。 I basically call every single diagnostic possible, one after the other, gathering this info into a database daily for machine learning.我基本上一个接一个地调用每一个可能的诊断,每天将这些信息收集到数据库中以进行机器学习。 This logs into the vcenter via python's pyvmomi and then calls for information about all resource centers, calls for information about all clusters, calls for the hosts on each cluster and information about them, and calls for information about every vm on every host.这通过python的pyvmomi登录vcenter,然后调用所有资源中心的信息,调用所有集群的信息,调用每个集群上的主机及其信息,并调用每个主机上每个vm的信息。 Where can I see the strain on vcenter?我在哪里可以看到 vCenter 的压力? Where is it hosted?它在哪里托管? I guess the issue is I've been assigned a task, and I can gather documentation and get it done, but I dont want to cause strain on very important tools for our business.我想问题是我被分配了一项任务,我可以收集文档并完成它,但我不想对我们业务的非常重要的工具造成压力。 How can I be sure this does not cause issues with bandwidth or slow important processes like CPU sharing, memory allocation, and host switching.我如何确定这不会导致带宽问题或 CPU 共享、内存分配和主机切换等重要进程变慢。

You can see the overall stats of the vCenter in the VAMI (vCenter Appliance Management Interface), where you can monitor the CPU and RAM utilization.您可以在 VAMI(vCenter Appliance 管理界面)中查看 vCenter 的整体统计信息,您可以在其中监控 CPU 和 RAM 利用率。 If you want deeper, more precise, info, it would require logging into the vCenter locally, which is generally not recommended.如果您想要更深入、更精确的信息,则需要在本地登录 vCenter,通常不建议这样做。

vCenter will, in general, handle your queries sequentially.通常,vCenter 将按顺序处理您的查询。 They will queue up if the vCenter can't handle them immediately.如果 vCenter 不能立即处理它们,它们就会排队。 The issue is that it will also queue up the other tasks being processed and there's no real way to give tasks a priority.问题是它还会将其他正在处理的任务排队,并且没有真正的方法可以给任务一个优先级。

If you have vROps running in your environment, that might be a better place to pull all of those metrics... assuming they're available there.如果您的环境中运行 vROps,那么这可能是提取所有这些指标的更好地方……假设它们在那里可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM