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?
#Nest.js sudden slowdown in Kubernetes
6 messages · Page 1 of 1 (latest)
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
I noticed it needs kind of a lot of mem/cpu, how much do you give to each of your app btw?
And @sly furnace Would be interesting to see some stats, maybe installl https://github.com/siimon/prom-client to get some metrics about node itself?
I found out that it was a memory issue. I had to add 1Gb of memory to all pods
1GB? No way.....