16 Sep
2020
16 Sep
'20
3:25 p.m.
Hi,
We want to create thousand of lists. We use a simple curl command
curl --user restadmin:restpass -X POST http://localhost:8001/3.1/lists -d fqdn_listname=nameOfTheList@example.com
After creating ~2k of them we started getting errors in Mailman logs:
[2020-09-16 17:11:10 +0200] [4564] [DEBUG] POST /3.1/lists
[2020-09-16 17:11:41 +0200] [1339] [CRITICAL] WORKER TIMEOUT (pid:4564)
[2020-09-16 17:11:41 +0200] [4564] [INFO] Worker exiting (pid: 4564)
[2020-09-16 17:11:41 +0200] [5019] [INFO] Booting worker with pid: 5019
Since then creation fails in most cases.
We increased timeout in mailman.cfg
[gunicorn]
workers: 4
timeout: 900
And we increased timeout in nginx
http {
# MODIF UNICORN
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
# MODIF UNICORN
Where might be the problem? How to start investigating and fix it?
Thanks, Paweł