#Nest.js sudden slowdown in Kubernetes

6 messages · Page 1 of 1 (latest)

sly furnace
#

Hello guys! I recently started up a Nest.js app in Kubernetes. It has three pods and are all utilizing TypeORM for a Postgres database. It is going really well for some request and after that one or two request just slow down 10 to 100x. After those requests again everything is fine for a while. This is happening in all Pods and it is independent of the amount of people accessing them. Do you have any idea where the problem might be?

quiet scaffold
#

what is the amount of resources you are allocating for your pods
TBH I've a monorepo of 5 nest apps , all my pods seems running fine - HPA is scaling it up & down very nicely

I'm interested to know your fix in case you have found any

twin shuttle
#

I noticed it needs kind of a lot of mem/cpu, how much do you give to each of your app btw?

sly furnace
#

I found out that it was a memory issue. I had to add 1Gb of memory to all pods

vestal pollen
#

1GB? No way.....