From 7bb9fdb97b209cf3dc4b1b8255c2fad8e6053d28 Mon Sep 17 00:00:00 2001 From: Janki Chhatbar Date: Mon, 24 Sep 2018 13:47:11 +0200 Subject: [PATCH] Add provision to specify java arguments to ODL Java options like heap size configuration needs tweaking for large scale deployments. Allow customizing those values from TripleO. puppet-opendaylight will configure these values in ODL. Corresponding puppet-opendaylight patch is https://git.opendaylight.org/gerrit/#/c/68491 Change-Id: I99e08314dedfcc71a776423ac3c6c282237cc0c2 Closes-Bug: #1794073 (cherry picked from commit 865e8b574c741c9027a07a08f7a77795f7f12544) --- puppet/services/opendaylight-api.yaml | 8 ++++++++ .../set_java_opts_from_tripleo-d969b1151ec244a0.yaml | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 releasenotes/notes/set_java_opts_from_tripleo-d969b1151ec244a0.yaml diff --git a/puppet/services/opendaylight-api.yaml b/puppet/services/opendaylight-api.yaml index a7f4761d93..54a816eafe 100644 --- a/puppet/services/opendaylight-api.yaml +++ b/puppet/services/opendaylight-api.yaml @@ -87,6 +87,13 @@ parameters: type: string description: Specifies the default CA cert to use if TLS is used for services in the internal network. + OpenDaylightJavaOpts: + default: '' + type: string + description: Specifies the Java options to run ODL with as a string. + Note, these options are in addition to the default Java + options set by the karaf/ODL boot scripts and IP version + based flag set by 'opendaylight' class. parameter_groups: - label: deprecated @@ -139,6 +146,7 @@ outputs: - 8185 opendaylight::snat_mechanism: {get_param: OpenDaylightSNATMechanism} opendaylight::log_mechanism: {get_param: OpenDaylightLogMechanism} + opendaylight::java_opts: {get_param: OpenDaylightJavaOpts} - if: - internal_tls_enabled diff --git a/releasenotes/notes/set_java_opts_from_tripleo-d969b1151ec244a0.yaml b/releasenotes/notes/set_java_opts_from_tripleo-d969b1151ec244a0.yaml new file mode 100644 index 0000000000..bdf8a73fd8 --- /dev/null +++ b/releasenotes/notes/set_java_opts_from_tripleo-d969b1151ec244a0.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Add provision to set java options like heap size configurations in ODL. \ No newline at end of file