2015-06-09 32 views
2

有沒有一種方法可以與動態變化的遠程主機列表並行運行gnu?動態不是間歇性的或不規則的 - 我正在尋找一種方法來使用Google計算引擎自動縮放功能,以平滑地擴展到最大數量的主機,並在這些主機活躍時擁有gnu並行調度作業。我想我可以創建一個虛假的作業來觸發自動縮放以啓動多個主機,並讓他們自己註冊到一些中央主機文件。任何想法如何最好地管理這個?gnu並行的自適應負載均衡

回答

2

man parallel

--slf filename 
      File with sshlogins. The file consists of sshlogins on 
      separate lines. 
      : 
      If the sshloginfile is changed it will be re-read when a 
      job finishes though at most once per second. This makes it 
      possible to add and remove hosts while running. 
+0

這是真棒!我想我的gnu parallel的本地安裝已經過時了,並且在manpages中沒有這個...讓我試試這個... – badkya

+0

在20150122中引入。 –