The following procedure can be used:
Use the following script to read and update the config parameter that
specifies the target folder for ganglia rrd files.
https://git-wip-us.apache.org/repos/asf/incubator-ambari/repo?p=incubator-am
bari.git;a=blob;f=ambari-server/src/main/resources/scripts/configs.sh;h=9ac2
d9245b9401ee86014175fc24739eb0bd8218;hb=trunk
<https://git-wip-us.apache.org/repos/asf/incubator-ambari/repo?p=incubator-a
mbari.git;a=blob;f=ambari-server/src/main/resources/scripts/configs.sh;h=2aa
5250bde1d916e79fc08ecc2a6b00f292bc558;hb=HEAD>
Script name: configs.sh
Procedure:
* Decide on the new location for the rrd files (e.g.
/newlocation/ganglia/rrds)
* Stop Ganglia service and wait for it to stop completely
* Get the existing folder path for Ganglia rrd files using configs.sh
> * E.g. ./configs.sh get localhost c1 global | grep "rrdcached_base_dir"
> (example assume localhost for ambari-server host, c1 for the name of the
> cluster)
* Backup this folder and then remove it
* Use configs.sh to update the config property with the new location for the
rrd files
> * E.g. ./configs.sh -u admin ­p admin set localhost c1 global
> "rrdcached_base_dir" "/newlocation/ganglia/rrds" (example assume localhost for
> ambari­server host, c1 for the name of the cluster and admin/admin as
> username/password)
* Start Ganglia service
* You may need to wait for 5-10 minutes to see the metrics getting populated

Artem, in addition we can also modify the gmetad config template to reduce
number of data points stored for each metrics. Let me know if you need that
information.

Thanks
Sumit
From:  Artem Ervits <[email protected]>
Reply-To:  <[email protected]>
Date:  Friday, October 11, 2013 8:25 AM
To:  "[email protected]" <[email protected]>
Subject:  Ganglia gmetad conf

Hello all,
How can I change settings in Ganglia gmetad using Ambari? Do I need to use
the API? I need to change the location of the /var/lib/ganglia/rrds database
due to low space
 
Artem Ervits
New York Presbyterian Hospital
 

This electronic message is intended to be for the use only of the named
recipient, and may contain information that is confidential or privileged.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or use of the contents of this message is
strictly prohibited.  If you have received this message in error or are not
the named recipient, please notify us immediately by contacting the sender
at the electronic mail address noted above, and delete and destroy all
copies of this message.  Thank you.



-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to