如何在多种Linux系统上运行同一个脚本同时 [英] How to run the same script on several Linux systems concurrently

查看:377
本文介绍了如何在多种Linux系统上运行同一个脚本同时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有关于延迟基准的问题。我在5台机器(一个领导者,其余都是追随者)的集群运行Apache ZooKeeper的。有用于测序请求发送到协议另一个机(客户端)。

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.

我管理运行一个基准程序,持续pre-选定的时间,目的是同时并连续请求发送到每个服务器的ZooKeeper。当pre-选择的时间后,我可以看到延迟的结果。

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.

但是,在上述基准仅使用一个客户机运行基准code。现在,我想增加客户机的数量,使更多的机器同时发送请求。请注意,我想用同上code测试延迟。现在的问题是如何运行同时从不同的机器上的标杆code?

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?

我想它应该是一个Linux脚本,它在同一时间运行在不同的机器。

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

我的实验runusing这与SSH访问的远程Linux集群。

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

我期待着您的回音。

干杯,

推荐答案

Ansible 肯定是那种工具您正在搜索

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

这篇关于如何在多种Linux系统上运行同一个脚本同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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