10.5 Enterprise only analyses one tasks at a time despite multiple workers configured

Hey,

We are using SonarQube Enterprise v10.5 deployed as a Helm chart to AKS cluster.
We configured 6 CE workers, but still only seeing one background job being processed at a time, with lots of pending tasks accumulating in the queue every day.

It looks like whatever worker count we select in the UI has absolutely no effect in how SonarQube processes the tasks.
The deployment itself is not resource constrainted, it has plently of room in both CPU and memory.
We currently gave it 2 CPU cores and 10GB ram, but it only uses 0.2 cores and 4.6GB RAM.

We’ve adjusted javaOptions for web, ce and search like so:
sonar.ce.javaOpts: -Xmx2G -Xms128m
sonar.web.javaOpts: -Xmx1G -Xms128m
sonar.search.javaOpts: -Xmx2G -Xms2G -XX:MaxDirectMemorySize=1G

How can we configure it to run mutiple jobs in parallel to speed up analysis?

Hey there.

Are these analyses of the same project, or of different projects that aren’t processing in parallel?

Hi Colin
It’s the same project with multiple PRs from dev teams.
We are also seeing huge variantions in these jobs - some taking 3.5 hours, some take 5 minutes.

Currently sitting at 27 pending jobs with 315 minutes pending time

CE parallelism is also enabled:

image

The background tasks page looks like this:

Note 6 CE workers configured, but just 1 task in progress.
All of the jobs in the queue are from the same project.

I’ve sent you a private message for some additional data.