[fix] Full disk when db down#630
Conversation
|
!testme |
|
Discussed today at PRLanta, and the issue currently with this PR is that we need to ensure that fail2ban still work after this change. The different possibility to go forward on this would be:
|
|
We could add
|
|
I think what we need here is to ensure that synapse don't start or is running if postgresql is not running. But in my opinion having a relations in the sense that synapse start when postgresql start is not really what we would like. For instance when we are upgrading synapse and we stop synapse, we don't what that synapse is started just because postgresql is restarted. But I agree that finding the good setting here might be not so easy. |
|
OK so I think would solve our issue on sans-nuage.fr : shut down synapse when postgresql fails |

Problem
When db is down (for example due to oem_killer), synapse write a tons of stacktrace about not being able to join database, this fill quickly the disk.
Solution
Reduce logs level
PR Status
Tested on a prod, but need to be validated...
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)