To make changing the gunicorn configuration more easily let's move
configuration values from systemd service to separate configuration
file.
The file will live in /etc/mailman3/gunicorn.conf.py.
The database log is really big even on info level, let' set it manually to
warning to save space and don't generate GB of logs.
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
There was a typo in logging section of mailman configuration, which caused that
only default log files were created.
Also there is separate logging for gunicorn now, let's use that.
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is setting both mailman and hyperkitty to devmode and doesn't allow
them to sent mails anywhere.
I tested that from web UI and using `mail` command on the machine.
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
Use the recommended CPU*2+1 amount of workers and limit max requests done. After
that the gunicorn reloads itself and free up all the memory.
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
Mailman hourly job is making the web unresponsive, let's try if increasing the
amount of gunicorn workers improves the situation.
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
It seems that the mailman update is more complicated than I originally thought. So I
decided to start with clean role and will slowly start adding new changes.
Signed-off-by: Michal Konecny <mkonecny@redhat.com>