You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2014/07/07 14:30:27 UTC
git commit: AMBARI-6383 Customize start options for rrdcached (dsen)
Repository: ambari
Updated Branches:
refs/heads/trunk 81ccf73a9 -> 35ae35971
AMBARI-6383 Customize start options for rrdcached (dsen)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/35ae3597
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/35ae3597
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/35ae3597
Branch: refs/heads/trunk
Commit: 35ae35971733e85216446b218b484d7e6b3e89fb
Parents: 81ccf73
Author: Dmytro Sen <ds...@hortonworks.com>
Authored: Mon Jul 7 15:00:18 2014 +0300
Committer: Dmytro Sen <ds...@hortonworks.com>
Committed: Mon Jul 7 15:29:58 2014 +0300
----------------------------------------------------------------------
.../HDP/1.3.2/services/GANGLIA/configuration/global.xml | 7 ++++++-
.../1.3.2/services/GANGLIA/package/files/startRrdcached.sh | 2 +-
.../HDP/1.3.2/services/GANGLIA/package/scripts/params.py | 3 ++-
.../1.3.2/services/GANGLIA/package/templates/gangliaLib.sh.j2 | 1 +
.../HDP/2.0.6/services/GANGLIA/configuration/global.xml | 7 ++++++-
.../2.0.6/services/GANGLIA/package/files/startRrdcached.sh | 2 +-
.../HDP/2.0.6/services/GANGLIA/package/scripts/params.py | 3 ++-
.../2.0.6/services/GANGLIA/package/templates/gangliaLib.sh.j2 | 1 +
8 files changed, 20 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/configuration/global.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/configuration/global.xml b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/configuration/global.xml
index a1dd4bb..68d94f2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/configuration/global.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/configuration/global.xml
@@ -52,13 +52,18 @@
<description>(-w) Data is written to disk every timeout seconds. If this option is not specified the default interval of 300 seconds will be used.</description>
</property>
<property>
+ <name>rrdcached_flush_timeout</name>
+ <value>7200</value>
+ <description>(-f) Every timeout seconds the entire cache is searched for old values which are written to disk. This only concerns files to which updates have stopped, so setting this to a high value, such as 3600 seconds, is acceptable in most cases. This timeout defaults to 3600 seconds.</description>
+ </property>
+ <property>
<name>rrdcached_delay</name>
<value>1800</value>
<description>(-z) If specified, rrdcached will delay writing of each RRD for a random number of seconds in the range [0,delay). This will avoid too many writes being queued simultaneously. This value should be no greater than the value specified in -w. By default, there is no delay.</description>
</property>
<property>
<name>rrdcached_write_threads</name>
- <value>10</value>
+ <value>4</value>
<description>(-t) Specifies the number of threads used for writing RRD files. The default is 4. Increasing this number will allow rrdcached to have more simultaneous I/O requests into the kernel. This may allow the kernel to re-order disk writes, resulting in better disk throughput.</description>
</property>
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/files/startRrdcached.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/files/startRrdcached.sh b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/files/startRrdcached.sh
index 53ac8f8..ad24d65 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/files/startRrdcached.sh
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/files/startRrdcached.sh
@@ -35,7 +35,7 @@ then
-m 664 -l unix:${RRDCACHED_ALL_ACCESS_UNIX_SOCKET} \
-m 777 -P FLUSH,STATS,HELP -l unix:${RRDCACHED_LIMITED_ACCESS_UNIX_SOCKET} \
-b ${RRDCACHED_BASE_DIR} -B -t ${RRDCACHED_WRITE_THREADS} \
- -w ${RRDCACHED_TIMEOUT} -z ${RRDCACHED_DELAY} -F"
+ -w ${RRDCACHED_TIMEOUT} -f ${RRDCACHED_FLUSH_TIMEOUT} -z ${RRDCACHED_DELAY} -F"
# Ideally, we'd use ${RRDCACHED_BIN}'s -s ${WEBSERVER_GROUP} option for
# this, but it doesn't take sometimes due to a lack of permissions,
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/scripts/params.py b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/scripts/params.py
index 5f421b2..861aebb 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/scripts/params.py
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/scripts/params.py
@@ -34,8 +34,9 @@ gmond_user = config['configurations']['global']["gmond_user"]
webserver_group = "apache"
rrdcached_base_dir = config['configurations']['global']["rrdcached_base_dir"]
rrdcached_timeout = default("/configurations/global/rrdcached_timeout", 3600)
+rrdcached_flush_timeout = default("/configurations/global/rrdcached_flush_timeout", 7200)
rrdcached_delay = default("/configurations/global/rrdcached_delay", 1800)
-rrdcached_write_threads = default("/configurations/global/rrdcached_write_threads", 10)
+rrdcached_write_threads = default("/configurations/global/rrdcached_write_threads", 4)
ganglia_server_host = config["clusterHostInfo"]["ganglia_server_host"][0]
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/templates/gangliaLib.sh.j2
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/templates/gangliaLib.sh.j2 b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/templates/gangliaLib.sh.j2
index f066b57..9a676bb 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/templates/gangliaLib.sh.j2
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/GANGLIA/package/templates/gangliaLib.sh.j2
@@ -43,6 +43,7 @@ GANGLIA_RUNTIME_DIR={{ganglia_runtime_dir}};
RRDCACHED_BASE_DIR={{rrdcached_base_dir}};
RRDCACHED_WRITE_THREADS={{rrdcached_write_threads}}
RRDCACHED_TIMEOUT={{rrdcached_timeout}}
+RRDCACHED_FLUSH_TIMEOUT={{rrdcached_flush_timeout}}
RRDCACHED_DELAY={{rrdcached_delay}}
# This file contains all the info about each Ganglia Cluster in our Grid.
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/configuration/global.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/configuration/global.xml b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/configuration/global.xml
index a1dd4bb..d340a94 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/configuration/global.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/configuration/global.xml
@@ -52,13 +52,18 @@
<description>(-w) Data is written to disk every timeout seconds. If this option is not specified the default interval of 300 seconds will be used.</description>
</property>
<property>
+ <name>rrdcached_flush_timeout</name>
+ <value>7200</value>
+ <description>(-f) Every timeout seconds the entire cache is searched for old values which are written to disk. This only concerns files to which updates have stopped, so setting this to a high value, such as 3600 seconds, is acceptable in most cases. This timeout defaults to 3600 seconds.</description>
+ </property>
+ <property>
<name>rrdcached_delay</name>
<value>1800</value>
<description>(-z) If specified, rrdcached will delay writing of each RRD for a random number of seconds in the range [0,delay). This will avoid too many writes being queued simultaneously. This value should be no greater than the value specified in -w. By default, there is no delay.</description>
</property>
<property>
<name>rrdcached_write_threads</name>
- <value>10</value>
+ <value>4</value>
<description>(-t) Specifies the number of threads used for writing RRD files. The default is 4. Increasing this number will allow rrdcached to have more simultaneous I/O requests into the kernel. This may allow the kernel to re-order disk writes, resulting in better disk throughput.</description>
</property>
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/files/startRrdcached.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/files/startRrdcached.sh b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/files/startRrdcached.sh
index 18ef65a..dafc3e5 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/files/startRrdcached.sh
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/files/startRrdcached.sh
@@ -35,7 +35,7 @@ then
-m 664 -l unix:${RRDCACHED_ALL_ACCESS_UNIX_SOCKET} \
-m 777 -P FLUSH,STATS,HELP -l unix:${RRDCACHED_LIMITED_ACCESS_UNIX_SOCKET} \
-b ${RRDCACHED_BASE_DIR} -B -t ${RRDCACHED_WRITE_THREADS} \
- -w ${RRDCACHED_TIMEOUT} -z ${RRDCACHED_DELAY} -F"
+ -w ${RRDCACHED_TIMEOUT} -f ${RRDCACHED_FLUSH_TIMEOUT} -z ${RRDCACHED_DELAY} -F"
# Ideally, we'd use ${RRDCACHED_BIN}'s -s ${WEBSERVER_GROUP} option for
# this, but it doesn't take sometimes due to a lack of permissions,
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/params.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/params.py
index f27eda8..452f707 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/params.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/params.py
@@ -47,8 +47,9 @@ else:
webserver_group = "apache"
rrdcached_base_dir = config['configurations']['global']["rrdcached_base_dir"]
rrdcached_timeout = default("/configurations/global/rrdcached_timeout", 3600)
+rrdcached_flush_timeout = default("/configurations/global/rrdcached_flush_timeout", 7200)
rrdcached_delay = default("/configurations/global/rrdcached_delay", 1800)
-rrdcached_write_threads = default("/configurations/global/rrdcached_write_threads", 10)
+rrdcached_write_threads = default("/configurations/global/rrdcached_write_threads", 4)
ganglia_server_host = config["clusterHostInfo"]["ganglia_server_host"][0]
http://git-wip-us.apache.org/repos/asf/ambari/blob/35ae3597/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/templates/gangliaLib.sh.j2
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/templates/gangliaLib.sh.j2 b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/templates/gangliaLib.sh.j2
index 7d6bb98..6c24c7f 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/templates/gangliaLib.sh.j2
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/package/templates/gangliaLib.sh.j2
@@ -44,6 +44,7 @@ GANGLIA_RUNTIME_DIR={{ganglia_runtime_dir}};
RRDCACHED_BASE_DIR={{rrdcached_base_dir}};
RRDCACHED_WRITE_THREADS={{rrdcached_write_threads}}
RRDCACHED_TIMEOUT={{rrdcached_timeout}}
+RRDCACHED_FLUSH_TIMEOUT={{rrdcached_flush_timeout}}
RRDCACHED_DELAY={{rrdcached_delay}}
# This file contains all the info about each Ganglia Cluster in our Grid.