Disable or modified watermark

Hello how are you?

Currently, I am using two versions of SonarQube:

Development environment: Community Edition Version 9.1 (build 47736)
Production environment: Developer Edition Version 9.9.1 (build 69595)
In both cases, I need to modify the SonarQube watermark. By default, these values are set to around 85-90% of the disk size, but I need to reduce the disk space even more without affecting the performance of the Sonar analysis.

To achieve this, I have performed tests that involve editing the elasticsearch.yml file and the properties.sonar file, as well as disabling the threshold_enabled option. For example:

In the sonar.properties file:

yaml
Copy code
cluster.routing.allocation.disk.threshold_enabled: false
cluster.routing.allocation.disk.watermark.low: 5%
cluster.routing.allocation.disk.watermark.high: 5%
cluster.routing.allocation.disk.watermark.flood_stage: 10%
I have also consulted the following forums for additional information:

I thank you in advance for your attention and I hope I have clearly explained my query.

Kind regards.

Hi,

Welcome to the community!

Sorry, but this just isn’t up for grabs, and we can’t / don’t support modifying the embedded Elasticsearch’s settings.

 
Ann