I saw strange behavior that the CPU load was around 50% when GitLab was idle (without any activity)
I see this in running tasks MergeRequestCleanupRefsWorker
Tell me, what is MergeRequestCleanupRefsWorker job, where I can read the doc about it? And I think that it is precisely these tasks that load the CPU, how to deal with this? Is it possible to optimize it somehow?
I have the same problem. Yesterday evening I updated the gitlab version 16.3.5 to 16.5.1. I checked all the configs according to the official documentation and found no errors. But within 2 hours the MergeRequestCleanupRefsWorker jobs are running and the overall CPU usage is around 80-85%. Stopping the jobs helps for about one minute, after which the jobs start again.
As a result, in 2 hours in the history of background jobs, over 70 thousand jobs were processed. Which is 2.5 times more per day on our server.
In earlier versions the CPU load was about 15%
GitLab CE version 16.5.1
Centos 7
4 cpu cores, 16 gb ram
@Antom91 , ัan you tell me if you solved this problem?
Hi, @Antom91
Thanks for the answer.
Yes, the tasks have ended, but the number of tasks in the Background Jobs is growing. Now 60-70 thousand entries per day, previously there were about 10 thousand