[Swift-devel] Running a command on all coasters

Tim Armstrong tim.g.armstrong at gmail.com
Tue Jan 25 20:47:53 CST 2011


Cool, thanks everyone - that was helpful

- Tim

On Tue, Jan 25, 2011 at 6:13 PM, Mihael Hategan <hategan at mcs.anl.gov> wrote:

> Right. I don't think it would be very difficult to have a broadcast of
> some command to all the workers. It would go along the lines of what
> Justin is saying.
>
> Mihael
>
> On Tue, 2011-01-25 at 17:06 -0600, Justin M Wozniak wrote:
> > Hello Tim
> >       I've looked into this a bit.
> >       First, there is the WORKERSHELLCMD RPC that is already in there.
> > You could call that from, say, an AllocationHook.
> >       Second, there is the WORKER_COPIES functionality (cf.
> > Settings.java and worker.pl).  This lets you perform arbitrary file
> copies
> > at worker start time.
> >       I was thinking the easiest thing might be to add a WORKER_SETUP
> > variable that would be similar to WORKER_COPIES and would execute right
> > after the WORKER_COPIES are done.  So, say, you could upload a script and
> > a tarball and perform a setup operation.
> >       We could also have a WORKER_SHUTDOWN variable.
> >       Justin
> >
> > On Tue, 25 Jan 2011, Tim Armstrong wrote:
> >
> > > Hi All,
> > >  Is there any mechanism in Swift where I could get swift to execute a
> > > command  on all of the worker machines that were currently attached to
> the
> > > coasters instance?  I basically want to stage some data out to all of
> the
> > > workers and run some setup scripts in preparation for running a whole
> bunch
> > > of tasks.
> > >
> > > I'm not sure I actually want to do this, just assessing the feasibility
> of
> > > the option.
> > >
> > > - Tim
> > >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110125/7a794fe3/attachment.html>


More information about the Swift-devel mailing list