0
我正在玩群集来运行一些负载测试。我如何在所有人上运行命令?这工作得很好:如何使用capistrano针对多个服务器运行自定义任务?
role :lt1, "[email protected]"
role :lt2, "[email protected]"
role :lt3, "[email protected]"
role :lt4, "[email protected]"
role :lt5, "[email protected]"
role :lt6, "[email protected]"
role :lt7, "[email protected]"
role :lt8, "[email protected]"
role :lt9, "[email protected]"
role :lt10, "[email protected]"
task :date, :roles => [:lt1] do
run "date"
end
不过分钟,我试图改变:roles
到[:lt1, :lt2]
,它只是挂起,直到永远。
我也尝试了几乎完全相同的事情与具有命名地址(example.something.com
),并且它工作正常。
什么是正确的方法来做到这一点,我怎样才能避免它挂?
当我只做一:
* executing `date'
* executing "date"
servers: ["184.106.65.194"]
[[email protected]] executing command
** [out :: [email protected]] Wed Jan 26 19:56:16 UTC 2011
command finished
当我做两件
* executing `date'
* executing "date"
servers: ["184.106.65.194", "184.106.70.52"]