Bug #6191
closedImplement thread safety in eventstorage service module
100%
Description
While working on #4384 I have come across several peculiar issues that have led me to conclusion, that something is amiss in the implementation of eventstorage
service and generally with implementation of event database access from Flask application directly via psycopg2.
I have found out that it is indeed not implemented in thread-safe manner.
Related issues
Updated by Jan Mach almost 5 years ago
- Related to Bug #4384: Possibility of DoS by repeating long query added
Updated by Pavel Kácha almost 5 years ago
Let's solve by configuration+doc - if using Apache, use process based MPM, if WSGI, configure no threading.
If lack of threading bites us in the future, we'll go for more thorough solution.
Updated by Pavel Kácha almost 5 years ago
- To be discussed changed from Yes to No
Updated by Pavel Kácha over 4 years ago
- Target version changed from Backlog to Future
Updated by Rajmund Hruška over 2 years ago
- Blocks Bug #7590: /api/events/search sometimes crashes with TypeError: Expected 22 arguments, got 23 added
Updated by Rajmund Hruška over 2 years ago
- Status changed from New to In Progress
- Target version changed from Future to 2.10
So, the configuration was changed on mentat-hub
. The only thing to do is to write some information to the documentation, right?
Updated by Rajmund Hruška over 2 years ago
- Blocks Bug #7565: Timeline falls flat on certain query added
Updated by Pavel Kácha over 2 years ago
Rajmund Hruska wrote in #note-10:
So, the configuration was changed on
mentat-hub
. The only thing to do is to write some information to the documentation, right?
Right. And maybe explicitly fix this in our ansible roles (sigh).
Updated by Pavel Kácha over 2 years ago
And cuz I'm dork, I did set up mpm_worker instead of mpm_prefork. Sigh, corrected, let's watch it further.
Updated by Pavel Kácha over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset mentat-ng|538b7943556c3fc65ad61a75048677a1adff15de.