Merge "User guide updated with performance tuning details" into stable/3.0

This commit is contained in:
Jenkins 2016-04-20 10:02:55 +00:00 committed by Gerrit Code Review
commit a9e5a779d6
2 changed files with 22 additions and 0 deletions

View File

@ -17,4 +17,5 @@ Guide to the Contrail plugin version 3.0 for Fuel 7.0
using_network_templates
verification
contrail_ui_intro
tuning
appendix

21
doc/source/tuning.rst Normal file
View File

@ -0,0 +1,21 @@
Contrail Analytics Performance Tuning
=====================================
For large installations, the following changes are required to achieve better performance of contrail database.
By default, the analytics_ttl values are set to -1. We recommend changing the default number to ensure the best performance in highly scaled out environments. An example configuration is as follows:
#. /etc/cassandra/cassandra-env.sh
::
-JVM_OPTS="$JVM_OPTS -XX:MaxTenuringThreshold=1"
+JVM_OPTS="$JVM_OPTS -XX:MaxTenuringThreshold=30"
#. /etc/contrail/contrail-collector.conf
::
analytics_config_audit_ttl=2160
analytics_statistics_ttl=24
analytics_flow_ttl=2
Note: Please restart the supervisor services ( supervisor-­database, supervisor­-analytics) after making these changes.