⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

n8n в production: PostgreSQL, pruning и таймауты. Что я поменял, когда инстанс начал захлёбываться

habrahabr.ru ·Russian Federation · world
Words
84
Chars
526
AI summary
Yes
Full story

One n8n instance runs in Docker on a VPS and handles two production workflows. One workflow monitors job postings using RSS, Groq scoring, database deduplication, and Telegram notifications; the other receives website requests through a webhook. The setup began on the default SQLite configuration and worked at first. Problems appeared as more processes ran and overlapped in time, and the author describes changes involving PostgreSQL, pruning, and timeouts as the instance began to choke.

У меня на VPS в Docker живёт один инстанс n8n. На нём два боевых процесса: мониторинг вакансий (RSS, скоринг через Groq, дедупликация в базе, уведомление в Telegram) и приём заявок с сайта через вебхук. Стартовал я на дефолтной конфигурации, то есть на SQLite, и первое время всё работало. Проблемы начались, когда процессов стало больше и они начали пересекаться по времени. Разбираю по порядку: что ломается, что я поменял, и где предел этой схемы. Конфиги, которые упоминаю, лежат в репозитории в конце статьи. Читать далее

Open article