amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Provide settings to increase the build instance capacity

Open shide1989 opened this issue 4 years ago • 60 comments

Is your feature request related to a problem? Please describe. For now the build instances are hosts with 4 vCPU, and 7GB memory.

Describe the solution you'd like I'd like to be able to increase the CPU, Memory, and maybe other settings to decrease the build time of my project.

Additional context I'm working on a +1 year project, and so far the build time has increased since we added additional features/settings to our project. The build configuration has already been optimised, but the provisionning time and build time still takes 7 to 10 minutes.

shide1989 avatar May 07 '20 09:05 shide1989

Would also love to see this, would be happy to pay more for larger build instance sizes. In CI our build runs in ~1 minute on a powerful server, in Amplify it runs in ~5 minutes. Being able to customize this would substantially speed up our deploys.

ryanwilsonperkin avatar May 29 '20 22:05 ryanwilsonperkin

My Cypress tests in some cases are using too much memory when I launch more than one visit in a test function. I'm really needing more memory to run my tests how I'd like them to run.

kevcam4891 avatar Oct 20 '20 13:10 kevcam4891

It seems like the build environment could be CodeBuild behind the scenes - it would be nice if some of these other instance types were available:

mwarkentin avatar May 13 '21 17:05 mwarkentin

If only. I really hope they will improve on this front soon!

On Thu, May 13, 2021 at 1:43 PM Michael Warkentin @.***> wrote:

It seems like the build environment could be CodeBuild behind the scenes - it would be nice if some of these other instance types were available:

https://camo.githubusercontent.com/e129b62b72b350d94f631fd922ba440fc677374e6e70ca16d80650733797af43/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6d7761726b656e74696e2d736e6170732f4275696c645f656e7669726f6e6d656e745f636f6d707574655f74797065735f2d5f4157535f436f64654275696c645f323032312d30352d31335f31312d35322d30362e706e67

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-console/issues/654#issuecomment-840720028, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDPO5QGH7QSUZOEGNOLBZTTNQFTJANCNFSM4M3FWF2Q .

kevcam4891 avatar May 13 '21 17:05 kevcam4891

@kevcam4891 yes, we'd also be happy to pay more for more CPU (ARM could be really interesting too..) to throw at our big webpack builds.

image

mwarkentin avatar May 14 '21 14:05 mwarkentin

Yes, would definitely like this feature to be supported. Currently, some of the webpack builds take 10+ minutes, and adding the ability to offload heavier builds to a compute-optimized machine would be really nice.

ShrutiC-git avatar Sep 08 '21 14:09 ShrutiC-git

+1 I suppose the alternative is to eject and manage this elsewhere? Github actions maybe.

Mentioum avatar Oct 27 '21 02:10 Mentioum

+1 my deploy time is 30 minutes

mitchconquer avatar Nov 08 '21 18:11 mitchconquer

+1 My deployments are failing because it consume all the memory on the machine.

eric-zhu-uw avatar Nov 21 '21 00:11 eric-zhu-uw

+1 would love to control build instance size to speed up our build times

wgins avatar Nov 21 '21 17:11 wgins

@mauerbac can you help with this one?

wgins avatar Nov 24 '21 21:11 wgins

+1 We'd be happy to pay for extra resources to get things built quicker.

neoplastic avatar Nov 28 '21 23:11 neoplastic

+1 We would love to have control in instance type configuration. It takes a minute on my local, but 15mins on the pipeline.

quangdatpham avatar Dec 23 '21 07:12 quangdatpham

Has there been any official word on this? Our builds now take over 30 minutes.

Leandros avatar Jan 28 '22 15:01 Leandros

Same for us. This would be much appreciated ! E2E tests take more than 30 minutes to run on amplify compared to about 15 minutes locally.

danitul avatar Feb 03 '22 13:02 danitul

  • 1

hnajera avatar Feb 13 '22 15:02 hnajera

At this point I'd settle for paying $$$ just to get a response from AWS.

kevcam4891 avatar Feb 14 '22 13:02 kevcam4891

+1 would love faster deploys

tjohnwu avatar Feb 19 '22 02:02 tjohnwu

+1 here. What I have done now is not to auto-update amplify CLI to latest version during deploy which is default behavior. This gives us 3 minutes back of build time.

soplan avatar Feb 26 '22 19:02 soplan

How do you do that?

mwarkentin avatar Feb 28 '22 00:02 mwarkentin

Yeah we're seeing 40-minute deployment times and it just keeps going up 😭

https://github.com/aws-amplify/amplify-cli/issues/9851

mitchconquer avatar Feb 28 '22 02:02 mitchconquer

How do you do that?

  1. Amplify console
  2. Select project
  3. Build Settings
  4. scroll down "Build Image Settings"
  5. Delete Amplify CLI from "live update packages"

soplan avatar Feb 28 '22 07:02 soplan

Yeah we're seeing 40-minute deployment times and it just keeps going up 😭

aws-amplify/amplify-cli#9851

Damn... and for that reason we stayed away from using Amplify to manage our backend deployments. We had long debates about to include backend in Amplify or not.. After 1 week of trialing we already entered in to some bumps and we felt this was not mature enough so we used serverless framework and CDK. We only use Amplify for CI/CD our frontend and that is going good 9 out of 10 times.

soplan avatar Feb 28 '22 07:02 soplan

+1 I got such a error to build java Lambda function with graalVM for native-image. looks memory is not enough. now I gave up to use useful Amplify CI/CD flow and need to deploy it via Cloud9 manually for backend part.😢
I really hope this improvement.

2022-02-18T08:46:31.696Z [INFO]: Error: Command failed with exit code 1: gradle build
                                 ...
                                 Note: Creating bean classes for 1 type elements
                                 OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006e9d00000, 1088946176, 0) failed; error='Not enough space' (errno=12)
                                 Error: Image build request failed with exit status 1

Thanks.

kondo-to avatar Mar 03 '22 15:03 kondo-to

We will be prioritizing this feature this year. Stay tuned..

swaminator avatar Mar 18 '22 23:03 swaminator

Thank goodness! Hoping at the very least for this to be an update by the next re:invent!!

kevcam4891 avatar Mar 19 '22 14:03 kevcam4891

+1 would love to control build instance size

ymsrk avatar May 13 '22 05:05 ymsrk

+1 Any update on this since Mar 2019?

mylawacad avatar Jun 19 '22 14:06 mylawacad

@swaminator, any update on this enhancement and when we might expect it? Is this still a priority?

kevcam4891 avatar Sep 07 '22 06:09 kevcam4891

@swaminator, I am experiencing 100 mins build time, is this feature on cards, my project have gone massive and need to increase the provisions asap!

SamiHK avatar Sep 28 '22 07:09 SamiHK