Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 python重复这个问题。原因是我可以访问集群中的 10 个节点,并且每个节点都不相同。它们的性能范围很广,我想根据可用的内存和 cpu 速度/内核来找到最适合远程使用的计算机。
编辑:哎呀,即使只是一个命令行界面也会很有用。任何快速而肮脏的解决方案?
看看SIGAR库,它具有广泛的 API,用于跨平台收集系统数据。它还提供多种语言(Python、Java、Erlang、Ruby 等)的库。