Description
We are adding angular service deployment support to Jazz Platform. For this process, Jazz platform have to take angular build to generate html,css & js files & deploy it to cloud. But before that Jazz have to install/update library packages from node package manager(NPM). This npm install or npm update requires sufficient cpu units and memory to properly build cache and pull packages and install it to the service. This is getting failed sometimes because of the Jenkins container hardware limits.
Observations
- During jenkins build
website buildpack failed. Reason: npm ERR! nospc ENOSPC: no space left on device
- In AWS, the
CPUUtilization of the service ecs_cluster_jenkins hits 100% during npm process.
Suggestions
- Increase the value of
Task CPU which is part of the Jenkins Task Definition (ecs_task_definition_jenkins).
- Clear possible temp files & workspace directories of Jenkins at the initial stage of the Jenkins build process.
- reduce
disk free space threshold & temp free space threshold in the Jenkins master node configuration.
Description
We are adding angular service deployment support to Jazz Platform. For this process, Jazz platform have to take angular build to generate html,css & js files & deploy it to cloud. But before that Jazz have to install/update library packages from node package manager(NPM). This
npm installornpm updaterequires sufficient cpu units and memory to properly build cache and pull packages and install it to the service. This is getting failed sometimes because of the Jenkins container hardware limits.Observations
website buildpack failed. Reason:npm ERR! nospc ENOSPC: no space left on deviceCPUUtilizationof the serviceecs_cluster_jenkinshits 100% during npm process.Suggestions
Task CPUwhich is part of the Jenkins Task Definition (ecs_task_definition_jenkins).disk free space threshold&temp free space thresholdin theJenkins master nodeconfiguration.