How to run the same script on several Linux system

2019-09-21 01:07发布

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条回答
相关推荐>>
2楼-- · 2019-09-21 01:53

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

查看更多
登录 后发表回答