Application Configurations - RIPE-NCC/rpki-validator-3 GitHub Wiki
There are two application properties files provided, applications-default.properties
and application.properties
.
A property in application.properties
overrides the same property from application-defaults.properties
. Your custom configuration needs to be placed in application.properties
(or it will be overwritten on upgrade).
For example, under /etc/rpki-validator-3:
-r--r--r--. 1 root root 4756 Jul 8 11:47 application-defaults.properties
-rw-r--r--. 1 root root 3292 Jul 20 08:51 application.properties
The first file provides defaults, that will be overwritten whenever there is upgrade of installation. We use this to provide defaults for (new) configuration variables. Meanwhile changes on the second file, which is meant for user configuration will be preserved.
The second file will take precedence, and overrides settings on the application-defaults.properties. For example, if application-defaults properties contains the following line:
jvm.mem.initial=1024m # -Xms jvm option -> initial memory claimed by the jvm
jvm.mem.maximum=1536m # -Xmx jvm option -> maximum memory for the jvm
And the application.properties contains the following line:
jvm.mem.initial=512m # -Xms jvm option -> initial memory claimed by the jvm
jvm.mem.maximum=1024m # -Xmx jvm option -> maximum memory for the jvm
RPKI validator will be running with the following options:
rpki 25839 1 80 09:03 ? 00:02:32 /usr/bin/java -Xms512m -Xmx1024m