Properties
Some Aspire components must be configured before the settings.json is read like the NoSQL provider. This configuration is done using environment variables or JVM parameters.
Some components configured in the settings file like the Worker and Manager node allows configuration with environment variables or JVM parameters as an alternative
Format
All properties can be passed either as a environment variable or as a JVM parameter. The "." and "_" characters can be replaced with each other.
SET aspire.noSql.elastic.server=http://localhost:9200 //Setting a property as a environment variable
java -Daspire.noSql.elastic.server=http://localhost:9200 //Passing a property like JVM parameterIn the case of environment variables, property name should always use "_" instead of "."
Memory settings
In Linux based systems, the memory usage can be changed with the following environment variables
Parameter | Required | Default | Description |
|---|---|---|---|
| no | 2g | Maximum Heap the JVM will request and use from the host system |
| no | 256m | Maximum metaspace the JVM will request and use from the host system. |