-
Notifications
You must be signed in to change notification settings - Fork 94
Configuration Options
NetflixOSS java libraries allows extensive configuration using property files. Prana allows users to configure the libraries which are bundled by dropping appropriate configuration files.
Please consult the documentation of Eureka, Ribbon, Hystrix and Archaius to configure each of them.
The command line configuration that Prana supports was covered in the Getting Started section. Users could set any of the properties that Prana references internally and any other properties that is needed by any of the client libraries in a property file, which could be passed to Prana via the -c or the --config switch.
A sample property file is present here.
Prana could be invoked with the property file -
/opt/Prana/bin/Prana -c /etc/default/prana.properties
This methodology enables users to externalize configuration options from the Prana application itself. This works great if there is a single environment or configuration file is generated via a Configuration Management tool.
However passing reference of a single configuration file via the -c switch is not the only configuration option. Users could add a directory containing property files reflecting properties specific to different environments and Prana would load them via Archaius. Please see here for an example.