Hi there,
I have an issue with workers committing harakiri.
My website behaves very well 99% of the time. None of my pages takes more than 1 sec to load and the browsing is smooth. However, every once in a while one page takes very long to load. It happened at least once on all my pages, even the simplest ones. It will load for around a minute, sometimes more and then proceed with the original request that was sent.
When I look at the server.log file it displays the following Harakiri message:
2021-06-30 08:57:10 Wed Jun 30 08:57:09 2021 - *** HARAKIRI ON WORKER 5 (pid: 45, try: 1) *
2021-06-30 08:57:10 Wed Jun 30 08:57:09 2021 - HARAKIRI !!! worker 5 status !!!
2021-06-30 08:57:10 Wed Jun 30 08:57:09 2021 - HARAKIRI [core 0] 10.0.0.224 - GET
2021-06-30 08:57:10 Wed Jun 30 08:57:09 2021 - HARAKIRI !!! end of worker 5 status !!!
2021-06-30 08:57:10 DAMN ! worker 5 (pid: 45) died, killed by signal 9 :( trying respawn ...
2021-06-30 08:57:10 Respawned uWSGI worker 5 (new pid: 48)
2021-06-30 08:57:10 spawned 2 offload threads for uWSGI worker 5
Looking at different response on this forum I saw that Harakiri happens when the server fails to respond after 5 mins.
This is weird because I have clocked Harakiri happening after much less than 5 minutes.
The good news is that the original request is most often successful in the end, therefore I was wondering if lowering the time before the Harakiris happen would solve at least the consequences of the problem I seem to have. The problem won't happen for a while after it has happened once.
If you have information about this issue it would really help me out.
Thank you very much!