Common Configuration
The tables in each of the tabs below document configuration properties that are common to all services in the EdgeX Foundry platform. Service-specific properties can be found on the respective documentation page for each service.
Configuration Properties
Edgex 2.0
For EdgeX 2.0 the Logging
and Startup
sections have been removed. Startup
has been replaced with the EDGEX_STARTUP_DURATION
(default is 60 secs) and EDGEX_STARTUP_INTERVAL
(default is 1 sec) environment variables.
Property | Default Value | Description |
---|---|---|
entries in the Writable section of the configuration can be changed on the fly while the service is running if the service is running with the -cp/--configProvider flag |
||
LogLevel | INFO | log entry severity level. Log entries not of the default level or higher are ignored. |
InsecureSecrets | --- | This section a map of secrets which simulates the SecretStore for accessing secrets when running in non-secure mode. All services have a default entry for Redis DB credentials called redisdb |
Edgex 2.0
For EdgeX 2.0 the For EdgeX 2.0 the Writable.InsecureSecrets
configuration section is new.
Property | Default Value | Description |
---|---|---|
HealthCheckInterval | 10s | The interval in seconds at which the service registry(Consul) will conduct a health check of this service. |
Host | localhost | Micro service host name |
Port | --- | Micro service port number (specific for each service) |
ServerBindAddr | '' (empty string) | The interface on which the service's REST server should listen. By default the server is to listen on the interface to which the Host option resolves (leaving it blank). A value of 0.0.0.0 means listen on all available interfaces. |
StartupMsg | --- | Message logged when service completes bootstrap start-up |
MaxResultCount | 50000 | Read data limit per invocation |
MaxRequestSize | 0 | Defines the maximum size of http request body in bytes. 0 represents default to system max. Not all services actual implement this setting. Those that do not have a comment stating this fact. |
RequestTimeout | 5s | Specifies a timeout duration for handling requests |
Edgex 2.0
For EdgeX 2.0 Protocol
and BootTimeout
have been removed. CheckInterval
and Timeout
have been renamed to HealthCheckInterval
and RequestTimeout
respectively. MaxRequestSize
was added for all services.
Property | Default Value | Description |
---|---|---|
configuration that govern database connectivity and the type of database to use. While not all services require DB connectivity, most do and so this has been included in the common configuration docs. | ||
Host | localhost | DB host name |
Port | 6379 | DB port number |
Name | ---- | Database or document store name (Specific to the service) |
Timeout | 5000 | DB connection timeout |
Type | redisdb | DB type. Redis is the only supported DB |
Edgex 2.0
For EdgeX 2.0 mongodb
has been remove as a supported DB. The credentials username
and password
have been removed and are now in the Writable.InsecureSecrets.DB
section.
Property | Default Value | Description |
---|---|---|
this configuration only takes effect when connecting to the registry for configuration info | ||
Host | localhost | Registry host name |
Port | 8500 | Registry port number |
Type | consul | Registry implementation type |
Property | Default Value | Description |
---|---|---|
Each service has it own collect of Clients that it uses | ||
Protocol | http | The protocol to use when building a URI to local the service endpoint |
Host | localhost | The host name or IP address where the service is hosted |
Port | 598xx | The port exposed by the target service |
Edgex 2.0
For EdgeX 2.0 the map keys have changed to be the service's service-key, i.e. Metadata
changed to core-metadata
Property | Default Value | Description |
---|---|---|
these config values are used when security is enabled and SecretStore service access is required for obtaining secrets, such as database credentials |
||
Type | vault | The type of the SecretStore service to use. Currenly only vault is supported. |
Host | localhost | The host name or IP address associated with the SecretStore service |
Port | 8200 | The configured port on which the SecretStore service is listening |
Path | <service-key> / |
The service-specific path where the secrets are kept. This path will differ according to the given service. |
Protocol | http | The protocol to be used when communicating with the SecretStore service |
RootCaCertPath | blank | Default is to not use HTTPS |
ServerName | blank | Not needed for HTTP |
TokenFile | /tmp/edgex/secrets/<service-key> /secrets-token.json |
Fully-qualified path to the location of the service's SecretStore access token. This path will differ according to the given service. |
Authentication AuthType | X-Vault-Token | A header used to indicate how the given service will authenticate with the SecretStore service |
Edgex 2.0
For EdgeX 2.0 the Protocol
default has changed to HTTP
which no longer requires RootCaCertPath
and ServerName
to be set. Path
has been reduce to the sub-path for the service since the based path is fixed. TokenFile
default value has changed and requires the service-key
be used in the path.
Writable vs Readable Settings
Within a given service's configuration, there are keys whose values can be edited and change the behavior of the service while it is running versus those that are effectively read-only. These writable settings are grouped under a given service key. For example, the top-level groupings for edgex-core-data are:
- /edgex/core/2.0/edgex-core-data/Writable
- /edgex/core/2.0/edgex-core-data/Service
- /edgex/core/2.0/edgex-core-data/Clients
- /edgex/core/2.0/edgex-core-data/Databases
- /edgex/core/2.0/edgex-core-data/MessageQueue
- /edgex/core/2.0/edgex-core-data/Registry
- /edgex/core/2.0/edgex-core-data/SecretStore
Any configuration settings found in a service's Writable
section may be changed and affect a service's behavior without a restart. Any
modifications to the other settings (read-only configuration) would require a restart.