Key-value pairs in application.properties are mainly divided into the following two types:
System Configurations: Key-value pairs defined by the SOFABoot framework that control framework behavior.
Custom Configurations: Key-value pairs defined and used by developers in application code. These configurations do not affect the SOFABoot framework; their semantics and usage are entirely determined by users.
This article lists all the system configuration items that support configuration in config/application.properties.
SOFABoot system configuration items
Default configuration items
The following table lists the default system configuration items:
Configuration Items | Type | Description | Default value | Valid value |
| STRING | The application name. | No | This parameter is required. A string that consists of a to z lowercase letters and "-". It does not contain any other symbols. such as helloworld and hello-world. |
| STRING | The log output directory of the SOFA framework and each middleware. |
| A string that represents the directory.
|
| STRING | The log level of the business application created using the engineering prototype. | INFO | Indicates the log printing level of the business application. The following values can be configured:
|
RPC configuration items
The following table lists the system configuration items related to RPC:
configuration items | Type | configuration items description | Default Value | Value Range |
| STRING | The RPC routing mode. | Empty |
|
| BOOLEAN | Specifies whether to enable SOFARouter. | true (version 1.0.0); false(1.1.0 to 2.1.4). |
|
| INTEGER | Threshold at which an exception is thrown if RPC references the same service more than once. | 3 | A positive integer, such as 5. |
| INTEGER | The minimum number of threads in the server thread pool. | 20 | A positive integer, such as 100. |
| INTEGER | The maximum number of threads in the thread pool of the TR server. | 200 | A positive integer, such as 600. |
| INTEGER | TR server thread pool queue size. | 0 | A positive integer, such as 2000. |
| INTEGER | TR port number | 12200 | A positive integer, such as 12201. |
| INTEGER | The timeout period of the warm-up call. Unit: milliseconds. | 10000 | A positive integer, such as 10000. |
| INTEGER | The interval at which the TR client automatically reconnects to the disconnected server. Unit: milliseconds. | 10000 | A positive integer, such as 20000. |
In addition, you must set the following RPC system configuration items together with JVM parameters. For more information, see Technology stack usage guide.
configuration items | Type | Description | Default Value | Value Range |
| STRING | The server is bound to a fixed network interface controller. | Empty. In this case, the first one is taken from the list of available network interface controller. | The name of the network interface controller obtained by |
| STRING | The server is bound to a local IP range. | Empty. In this case, the first one is taken from the list of available network interface controller. | Format: |
| STRING | Warm-up forwarding and weight configuration. | Empty |
|
| STRING | This parameter is used only to identify the target cluster for preload forwarding. | Empty | A custom string, such as abc. |
Tracer configuration items
The following table lists the system configuration items related to Tracer:
configuration items | Type | Description | Default Value | Value Range |
| STRING | The log output directory. | Tracer will preferentially output to the | The correct log path. |
| STRING | The scrolling policy of tracer logs. | By default, scrolling by day is not configured. |
|
| INTEGER | The retention period of tracer logs. | 7 days by default | A positive integer, such as 8 and 9. |
| INTEGER | The interval at which logs are collected. | By default, statistical logs are output once every 60 seconds. | A positive integer. Unit: seconds. |
| INTEGER | The maximum length of passthrough data that can be stored. | 1024 | A positive integer. |
| BOOLEAN | Specifies whether to disable summary log printing for all integrated tracer components. | false |
|
| BOOLEAN | Specifies whether to disable the printing of SOFATracer component summary logs for the specified | false |
|
SOFABoot health check configuration items
configuration items | Type | Description | Default Value | Value Range |
| BOOLEAN | Whether to skip the entire self-test phase. | false |
|
| BOOLEAN | Whether to skip the self-test of the component. | false |
|
| BOOLEAN | Whether to skip the health check self-test of the HealthIndicator. | false |
|
| INTEGER | The number of failed retries for the self-check of the traffic ingress component. If the number of retries exceeds this value, the health check is no longer performed and the service cannot be started. | 20 | A positive integer, such as 12. |
| BOOLEAN | Specifies whether to perform a strict component self-test on the traffic inlet component. | true |
|
Java startup parameter settings (configured with the -D parameter at startup):
configuration items | Default Value | Description |
| 3000 | The waiting time for the configuration center to return the address. Unit: milliseconds. |
| 27 | The heartbeat gap of the TR. Unit: seconds. |