gitlab-ci-pipelines-exporter icon indicating copy to clipboard operation
gitlab-ci-pipelines-exporter copied to clipboard

Queue buffer size exhausted

Open ceprateek opened this issue 1 year ago • 5 comments

I keep seeing this in the logs for the exporter: {"level":"warning","msg":"queue buffer size exhausted, skipping scheduling of task..","task_type":"PullRefMetrics","task_unique_id":"1760622161","time":"2023-05-23T20:29:32Z"}

Can you please let me know what is the impact. I see in the code that the size is set to 1000 and there is no option to change it without forking the repo

ceprateek avatar May 23 '23 20:05 ceprateek

I guess the workaround is multiple exporters and targetting smaller subgroups of projects, but seeing this as well.

Routhinator avatar Nov 08 '23 14:11 Routhinator

Well I found the implication @ceprateek - the agent is effectively dead and produces zero metrics. The only way out of this seems to be to manually restart the process....

This needs some fixing it would seem...

Routhinator avatar Nov 09 '23 01:11 Routhinator

@mvisonneau I am guessing the only workaround for now that is stable is to deploy multiple exporters scoped to smaller project groups and it removes the ability to use the wildcard "all projects" setting...

Do you have any explanation on why the 1000 setting was hardcoded? Could this be changed without harming the application?

Routhinator avatar Nov 09 '23 01:11 Routhinator

We have the same issue with a maximum_jobs_queue_size of 5000. Any news or tips how to scale the exporter for big GitLab instances?

@ceprateek I think you can change the setting: https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/blob/0687efd1075d33283c3762a135aa24de94ffe21c/docs/configuration_syntax.md?plain=1#L106C21-L106C21

R-Studio avatar Jan 12 '24 09:01 R-Studio

There's also an explanation what can be configured to mitigate this here

ehonda avatar Mar 26 '24 06:03 ehonda