fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Usage of parallel option in fabric


From: kracekumar
Subject: [Fab-user] Usage of parallel option in fabric
Date: Sun, 20 May 2012 21:01:59 +0530
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Hello

  I viewed the source code and documentation of fabric, found I need use @parallel decorator to run func in parallel mode. I have two thoughts here.
  1. I feel parallel(functions = {'host1': [func1, func2, func3], 'host2': [func4, func5]}, pool = 2) seems more pragrammatic.

         This gives me option to use same function with and without parallel mode.


    2. I couldn't see multiprocessing or gevent module getting called but Random.task(), is there any specific reason ?
-- 
Thanks & Regards
Kracekumar.R
"Talk is cheap, show me the code." -- Linus Torvalds

reply via email to

[Prev in Thread] Current Thread [Next in Thread]