diff options
author | 2018-09-21 14:48:06 +0400 | |
---|---|---|
committer | 2018-09-21 14:57:21 +0400 | |
commit | cdf1395eb3b784b70e2e855429923e5b19edcda1 (patch) | |
tree | 6529c33cc1df651af71055fc9b3bcb2334eac4de /mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls | |
parent | bb08806ccec36590d326627bac6cee94d3eb1e9c (diff) |
[odl] Turn off OF statistics polling
OpenDaylight polls OF statistics (usually superfluous) by default
which could affect performance in large scale deployments.
Also mask service only if package is installed.
Change-Id: I2f7a1da85dd5e04502f08be146bcc2ba946a631e
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls')
-rw-r--r-- | mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls index 35ab35391..e0fb0912c 100644 --- a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls +++ b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls @@ -41,6 +41,8 @@ opendaylight_service_mask: service.masked: - name: opendaylight {%- endif %} + - prereq: + - pkg: opendaylight opendaylight: pkg.installed: @@ -56,6 +58,7 @@ opendaylight: - file: /opt/opendaylight/bin/setenv - ini: /opt/opendaylight/etc/org.apache.karaf.features.cfg - ini: /opt/opendaylight/etc/org.ops4j.pax.web.cfg + - ini: /opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg /opt/opendaylight/etc/jetty.xml: file.managed: @@ -88,6 +91,11 @@ opendaylight: org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }} org.osgi.service.http.port: {{ server.odl_rest_port }} +/opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg: + ini.options_present: + - sections: + is-statistics-polling-on: {{ server.stats_polling_enabled }} + {%- if server.get('router_enabled', false) %} /opt/opendaylight/etc/custom.properties: ini.options_present: |