How to share the cache between different nodes

sonarqube license: * Data Center Edition

  • Version 9.9.4 (build 87374)

For cpp projects we are facing some issues with the cache. Sometimes the analysis last 3 min but other times it last for 70-90 minutes.

We have detected that the issue is the cache. For some reason is invalidated at some point.

We are working with branching analysis, and following the documentation for every single new branch, if there is no cache, it should use the master one. It works like that sometimes. We are doing more and more test, but something that is not helping at all is the fact that there are two nodes, and maybe it is cached in one of them, but not in the other. There is a way to synch the cache between both nodes?

We are using this config:

sonar.cfamily.analysisCache.mode=server

sonar.cfamily.threads not defined.

Hey there.

If you have access to the Data Center Edition, it means that your organization definitely has access to Sonar Commercial Support. This will connect you with experts (who you’re paying for) and also let you share things like logs confidentially. I suggest reaching out to your SonarQube admins to make sure you can get in touch.