Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
Description of the Issue:*
I have several flows that schedule tasks in Cloud Tasks, send them to Cloud Run, which reads a spreadsheet, and then returns the data to my normalization and trigger flow in n8n.
However, I am encountering problems when scaling up. The n8n instance is not handling the scale as expected.
Infrastructure Setup:
-
We are running n8n on Kubernetes.
-
Our setup includes:
-
1 Redis instance.
-
1 PostgreSQL database.
-
Between 5 to 50 worker pods (auto-scaled).
-
2 main pods.
Issue Details:
After spending considerable time adjusting the resources of these pods and enabling automatic scaling, we have encountered the following error in the leader pod of the main instance:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 global:failed listeners added to [Queue]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
Information on your n8n setup
- n8n version: 1.66.0
- Database (default: SQLite): Postgress
- n8n EXECUTIONS_PROCESS setting (default: own, main): Main
- Running n8n via (Docker, npm, n8n cloud, desktop app): Kubernets: Docker
- Queue mode: on
helm-n8n: helm-n8n.zip - Google Drive