How to run the same script on several Linux systems concurrently

为君一笑 提交于 2019-12-25 17:44:23

问题


I have a question related to latency benchmark. I run Apache ZooKeeper in a cluster of 5 machines (one leader and the rest are followers). There is another machine (client) used to sequence send requests to the protocol.

I manage to run a benchmark program which lasts for pre-selected time, aims to send requests simultaneously and continuously to each ZooKeeper server. When the pre-selected time elapses, I can see the latency result.

However, the above benchmark uses only one client machine to run the benchmark code. Now, I want to increase the number of client machines to make more machines send requests simultaneously. Note that I want to use same code above to test the latency. The question is how to run the benchmark code from different machines simultaneously?

I guess it should be a Linux script which runs in different machines at the same time.

My experiments are runusing remote Linux cluster which is accessed with SSH.

I look forward to hearing from you

Cheers,


回答1:


Ansible is certainly the kind of tool you're searching for



来源:https://stackoverflow.com/questions/26178259/how-to-run-the-same-script-on-several-linux-systems-concurrently

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!