krateoplatformops / deployment-service

Apache License 2.0
0 stars 2 forks source link

Deployment service poor performances #2

Open MovieMaker93 opened 11 months ago

MovieMaker93 commented 11 months ago

Describe the bug When deploying a template multiple times (more than 1), the deployment service keeps crushing. I've enhanced the limit request to:

  1. Cpu --> 300mi
  2. Memory --> 1Gi But it's not enough when deploy two times the template..

To Reproduce Just deploy a template which uses the azuredevops-provider multiple times, and check the behaviour of the deployment-service pod in the krateo-system namespace.

Expected behavior I'd like to avoid a crashloopbackoff situation and have a clear, concise description on how to set a proper request limit.

Screenshots

image

MovieMaker93 commented 11 months ago

Below logs of the deployment service before crash:

carbon (30)

braghettos commented 11 months ago

Hi @MovieMaker93, could you please try adding the following environment variable to the Deployment of the deployment-service:

NODE_OPTIONS=--max_old_space_size=2048

2048 is an example, it must be aligned to the memory limit of the pod.