これは、build.xml で定義されている再起動ターゲット コードです。
ターゲット名="再起動"
propertycopy name="remote.host" from="deploy.${target.env}.host.${remote.id}"
propertycopy name="remote.port" from="deploy.${target.env}.port.${remote.id}"
sshexec trust="true"
host="${remote.host}"
port="${remote.port}"
username="${scm.user}"
keyfile="${scm.user.key}"
command="sudo /usr/local/bin/bounce_jboss"
目標
サーバー情報は build.properties で定義されます。
上記のコードは正常に動作していますが、サーバー 1 を停止してから開始し、その後別のサーバーを停止して開始するため、再起動プロセスが非常に遅くなります。
45 秒の時間枠で両方のサーバーを並行して再起動する方法はありますか。