Sometimes BuildQueueWorker executes tons of database queries
Concerns
It seems, sometimes BuildQueueWorker
executes tons of database queries. It was revealed when I was looking at the https://gitlab.com/gitlab-org/gitlab-ce/issues/49703#note_94708776 metrices. This might be legitimate behavior after we introduced Group-level runners, however, it's better to confirm with other engineers.
Here are the screenshots of BuildQueueWorker between 2018-08-15 17:04 - 2018-08-15 23:04
SQL query counts
At the peak point, it recorded 4.6K of queries.
Method call count