sonar.web.http.keepAliveTimeout in helm deployment

Hello,

We have a sonarqube version 10.0 deployed using official helm chart and recently we see the below error during some scans.

Fail to download plugin [kotlin] into /opt/sonar-scanner/.sonar/_tmp/fileCache6481425250541836962.tmp

From a previous post ( Need ability to configure Tomcat KeepAliveTimeout ) , It looks like we need to change the default keepAlivetimeout of 60s to some higher values. But not seeing any keys in the helm chart for that. Could you please let me know where exactly in the vaules.yaml file I should be adding this.

Regards,
Sarath

1 Like

Hey there.

Good job finding that existing thread!

For your helm deployment you’ll want to handle configuration via environment variables, in this case SONAR_WEB_HTTP_KEEPALIVETIMEOUT

This part of the README of the helm chart should help you: https://github.com/SonarSource/helm-chart-sonarqube/tree/master/charts/sonarqube#extra-config

1 Like

Hi…Could you please confirm that the value of KEEPALIVETIMEOUT is to be set in milliseconds. If we wanted to set it for 3 minutes the value should be 180000 right ?

As documented:

The number of milliseconds this Connector will wait for another HTTP request before closing the connection.