joystream icon indicating copy to clipboard operation
joystream copied to clipboard

Enable query tracing & limits in Query Node

Open kdembler opened this issue 11 months ago • 1 comments

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:

  1. 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.
  2. Ability to abort queries that take longer than X seconds

kdembler avatar Mar 01 '24 12:03 kdembler