JetBrains / teamcity-aws-codedeploy-plugin

Build runner for deploying application to AWS EC2 and on-premise instances using AWS CodeDeploy
https://confluence.jetbrains.com/display/TW/AWS+CodeDeploy+Runner
Apache License 2.0
11 stars 7 forks source link

Extremely slow to package application revision #20

Open amguichard opened 5 years ago

amguichard commented 5 years ago

The code that packages the application revision before uploading and registering to s3 runs really slow when the number of files in the application revision is large. We have one application with small number of files < 500 that runs fast enough, but we have a separate one with well above 5000 and it takes forever. I took a quick look at the code, and it looks like the slowness is because each file is being added to the zip file individually. You can see the area of concern here:

https://github.com/JetBrains/teamcity-aws-codedeploy-plugin/blob/master/aws-codedeploy-agent/src/main/java/jetbrains/buildServer/runner/codedeploy/ApplicationRevision.java#L125

Let me know if you need any more information. I'm going to try to hack my way around it for now, but I'd prefer to use the plugin in the long run.

pauladler commented 4 years ago

We are affected by this issue too (5000 files). It's taking more than 10 minutes just to package the files into a zip file. Has anything been done to solve this problem in the 18 months since it was reported?