Note that there are some explanatory texts on larger screens.

plurals
  1. POANT - speed improvements to existing script
    text
    copied!<p>I've built a set of generic deployment scripts which work great for the majority of our stuff. We've just however introduced our largest project to the setup and we're now finding times are far too varied and long for our liking.</p> <p>The project size as it stands is 33,226files at a size of 400Mb plus. Times are currently taking between 13mins &amp; 55mins (the last deployments time) depending on certain decisions made by ANT ( more below ).</p> <p>In terms of the steps we currently do the following on x2 servers:-</p> <p>1) ANT exports the project from SVN to both servers (made up of 3 parts).</p> <p>2) It begins to shutdown the Web Services on Server #1. This was the workaround we put in to stop Windows (2003) file locking failing the deployment.</p> <p>3) ANT runs a "move" task on the current version (all parts) into temporary folders &amp; moves the exported new version into its place.</p> <p>4) Customised deployment code is run - one part being to move permanant features from the temporary folder into the new (i.e system files / Web Server Admin tools).</p> <p>5) Delete the temporary folder.</p> <p>6) Bring the Web Services back online</p> <p>... rinse and repeat for the 2nd server steps 2 -> 6.</p> <p>7) Save the ANT logs.</p> <p>The main issue I'm having is that the ANT move task seems to make one of two decisions. It either:</p> <p>a) Very simply swaps the versions over and moves on - taking a minute or two to handling it or b) Goes through some kind of integrity check that it moves every file and folder from one place to the other. This floods the logs and takes a fair length of time to complete. Hence the 40+ minutes extra added on.</p> <p>I can't find anything online that explains what causes ANT/OS to make that decision. Option A would be the ideal full-time situation.</p> <p>I've tried copy, delete separately. I've tried the sync task. All seem to have this slow performance.</p> <p>So really I'm asking what others with more experienced than me do with deployments of this scale. Do you have any hints / tips on how I could improve / speed this process up? Any ideas what the move is doing and if there is maybe a better way of doing all this?</p> <p>Thanks a lot, James</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload