joystream
joystream copied to clipboard
Enable query tracing & limits in Query Node
Recently we've had a lot of issues with our QN instances being unavailable or very slow to respond. This is most likely caused by some expensive queries running for a long time basically blocking all the other queries. To fix this situation I think we should do 2 things:
- Add ability to track queries that took more than X seconds to execute - query body, request headers so we can see what apps are making those. Ideally we would save that to some log file so it's easy to inspect later.
- Ability to abort queries that take longer than X seconds