SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingUsing the Subversion Diff Command Free Subversion TrainingSubversion Administration Best Practices Free Subversion TrainingAll About Subversion Hook Scripts
 
Parallel Restarts with a time frame

 
Post new topic   Reply to topic    SVNForum.org Forum Index -> Scripts/Contributions
View previous topic :: View next topic  
Author Message
phanik



Joined: 08 Jun 2009
Posts: 3

PostPosted: Tue Jan 05, 2010 10:55 am    Post subject: Parallel Restarts with a time frame Reply with quote

Hi Team,
I have question on <parallel> ant task.
Currently i am using <parallel>task to bounce jobss server

<parallel>
<propertycopy name="remote.host" from="deploy.${target.env}.host.${remote.id}" />
<propertycopy name="remote.port" from="deploy.${target.env}.port.${remote.id}" />
<echo message="${remote.host} session .............. open"/>
<sshexec trust="true"
host="${remote.host}"
port="${remote.port}"
username="${user}"
keyfile="${user.key}"
command="sudo /usr/local/bin/bounce_jboss" />
<echo message="${remote.host} session ............. close"/>
</parallel>
servers information is defined in build.properties.

But the problem is , Since my Jboss Administrator is telling there is a cluster issue while doing a parallel restart, wanted to find out a time frame of 30 to 45 seconds for each server restart.

Is there a way where i can put some<sleep> command in between each server restart.

Please give me some inputs.

thanks
Back to top
View user's profile Send private message
JNiven



Joined: 17 Feb 2008
Posts: 1288
Location: Glasgow, Scotland

PostPosted: Tue Jan 05, 2010 11:08 am    Post subject: Reply with quote

Hi phanik

Uh, this is a Subversion forum, not an Ant forum - you'll almost certainly have more luck at the correct venue Wink

That said, the point of the parallel task is that it runs stuff concurrently. If you want a pause between each bounce, try the sequential task - sequential even allows a "sleep" period to be specified.

Cheers
John
_________________
John Niven
Back to top
View user's profile Send private message
phanik



Joined: 08 Jun 2009
Posts: 3

PostPosted: Tue Jan 05, 2010 12:40 pm    Post subject: problem with sequential Reply with quote

problem with sequential is, it cannot invoke another task until the first task finishes. This wont meet the requirement.
Any ways thanks for the inputs, will try in ant forums.
Back to top
View user's profile Send private message
JNiven



Joined: 17 Feb 2008
Posts: 1288
Location: Glasgow, Scotland

PostPosted: Tue Jan 05, 2010 1:07 pm    Post subject: Reply with quote

No worries. One final thought - could you create your own Ant task, inheriting from parallel, but with a "sleep" component? I've not looked at the source for parallel, but I'd imagine it'd be fairly straightforward code, without too much to add.

Good luck!
John
_________________
John Niven
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> Scripts/Contributions All times are GMT - 4 Hours
Page 1 of 1
Display posts from previous:   
Google
 
Web SVNForum.org