System properties specific to the Data Center Edition
On this page
SonarQube utilizes system properties during startup, which are not stored in the database. This page lists the configurable system properties that are specific to the Data Center Edition.
General
All nodes
System property :
| Description | Required |
---|---|---|
| Enables the cluster mode. Must be set to true in each node. Default value: false | yes |
| The name of the cluster. Required if multiple clusters are present on the same network. For example, this prevents mixing Production and Preproduction clusters. Will be the name stored in the Hazelcast cluster and used as the name of the Elasticsearch cluster. Default value: sonarqube | Where appropriate |
| The name of the node that is used on Elasticsearch and stored in Hazelcast member attribute (NODE_NAME) for sonar-application. Default value: sonarqube-<UUID> | yes |
| Type of node. Possible values:
| yes |
Application nodes only
System property :
| Description | Required |
---|---|---|
| Comma-delimited list of all application nodes in the cluster. List item format (the same format for all items):
| yes |
| IP address of the current node used by Hazelcast to communicate with the node. | yes |
| Port of the current node used by Hazelcast to communicate with the node. Default value: 9003 | yes |
| Port of the current node used by Hazelcast to communicate with the WebServer process on the current node. | no |
| Port of the current node used by Hazelcast to communicate with the Compute Engine process on the current node. | no |
| Comma-delimited list of search nodes in the cluster. A search node is described through the IP address and port used for search requests. List item format (the same format for all items):
| yes |
| Required for authentication with multiple web servers. It is used to keep user sessions opened when they are redirected from one web server to another by the load balancer. You must generate a secret for the application nodes (it will be the same for all application nodes).1) | yes |
Search nodes only
System property :
| Description | Required |
---|---|---|
| Elasticsearch host of the current node used for HTTP communication between search and application nodes. IP must be accessible to all application nodes. | yes |
| Elasticsearch port of the current node used for HTTP communication between search and application nodes. Port must be accessible to all application nodes. | yes |
| Comma-delimited list of nodes in the Elasticsearch cluster. A node is described through the IP address and port used for internal communication within the Elasticsearch cluster. List item format (the same format for all items):
| yes |
| IP address of the current search node used for internal communication within the Elasticsearch cluster. The IP address must be accessible to all other search nodes. | yes |
| Port of the current search node used for internal communication within the Elasticsearch cluster. The port must be accessible to all other search nodes | yes |
| The timeout for the Elasticsearch nodes to elect a primary node. The default value will be fine in most cases, but in a situation where startup is failing because of a timeout, this may need to be adjusted. Value format:
| no |
Elasticsearch authentication
See also Setting up Elasticsearch authentication.
All nodes
System property :
| Description |
---|---|
| Password for Elasticsearch built-in user (elastic) which will be used on client side (for an application node) or set in Elasticsearch (for a search node). If provided, it enables authentication, and for a search node, the instance will require additional properties to be set. If this property is set, the same value must be used on all nodes of the cluster (application and search nodes). |
Search nodes
System property :
| Description |
---|---|
| File path to a keystore in PKCS#12 format1). The user running SonarQube must have READ permission to that file. Required if password provided. Can be the same PKCS#12 container as the |
| File path to a truststore in PKCS#12 format1). The user running SonarQube must have READ permission to that file. Required if password provided. Can be the same PKCS#12 container as the |
| Password to the keystore. |
| Password to the truststore. |
1) When creating the PKCS#12 container, make sure it is created with an algorithm that is readable by Java 17.
TLS encryption
See also Setting up TLS encryption.
All nodes
System property :
| Description |
---|---|
| File path to a keystore in PKCS#12 format1). The user running SonarQube must have READ permission to that file. If provided, it enables TLS encryption. |
| Password to the keystore. |
Related pages
Was this page helpful?