Søren Højsgaard
2011-Oct-13 04:34 UTC
[R] Package snow: is there any way to check if a cluster is "acticve"
Is there a 'proper' way of checking if cluster is active. For example, I create a cluster called .PBcluster> str(.PBcluster)List of 4 $ :List of 3 ..$ con :Classes 'sockconn', 'connection' atomic [1:1] 3 .. .. ..- attr(*, "conn_id")=<externalptr> ..$ host: chr "localhost" ..$ rank: int 1 ..- attr(*, "class")= chr "SOCKnode" $ :List of 3 .... Then I stop it with> stopCluster(.PBcluster) > .PBcluster[[1]] $con Error in summary.connection(x) : invalid connection> str(.PBcluster)List of 4 $ :List of 3 ..$ con :Classes 'sockconn', 'connection' atomic [1:1] 3 .. .. ..- attr(*, "conn_id")=<externalptr> ..$ host: chr "localhost" ..$ rank: int 1 ..- attr(*, "class")= chr "SOCKnode" - but is there a way in which I can check if the cluster is active?? Regards S?ren
Claudia Beleites
2011-Oct-13 13:06 UTC
[R] Package snow: is there any way to check if a cluster is "acticve"
S?ren, have a look at package snowfall which provides sfIsRunning. HTH Claudia Am 13.10.2011 06:34, schrieb S?ren H?jsgaard:> Is there a 'proper' way of checking if cluster is active. For example, I create a cluster called .PBcluster > >> str(.PBcluster) > List of 4 > $ :List of 3 > ..$ con :Classes 'sockconn', 'connection' atomic [1:1] 3 > .. .. ..- attr(*, "conn_id")=<externalptr> > ..$ host: chr "localhost" > ..$ rank: int 1 > ..- attr(*, "class")= chr "SOCKnode" > $ :List of 3 > .... > > Then I stop it with >> stopCluster(.PBcluster) >> .PBcluster > [[1]] > $con > Error in summary.connection(x) : invalid connection > >> str(.PBcluster) > List of 4 > $ :List of 3 > ..$ con :Classes 'sockconn', 'connection' atomic [1:1] 3 > .. .. ..- attr(*, "conn_id")=<externalptr> > ..$ host: chr "localhost" > ..$ rank: int 1 > ..- attr(*, "class")= chr "SOCKnode" > > - but is there a way in which I can check if the cluster is active?? > > Regards > S?ren > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.beleites at ipht-jena.de phone: +49 3641 206-133 fax: +49 2641 206-399