aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

Switch to use s3 multipart download when fetching artifacts #382

Open AdamXiaotCao opened 10 months ago

AdamXiaotCao commented 10 months ago

Our code deploy agent is running too long to download artifacts from S3. Our artifact is around 25GB but it's taking over an hour to download into an EC2 instance which should provide GBs bandwidth.

We ran s3 cp command locally and it's only taking us ~10 mintues to download the same object. Can we use S3 multipart download?

https://github.com/aws/aws-codedeploy-agent/blob/main/lib/instance_agent/plugins/codedeploy/command_executor.rb#L334-L336