forked from farshidce/pystatcollector
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ie364f11e3be418d2967656d2c2178f02f7bb28b2
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Example : | ||
python26 stats.py --ini=cluster.ini --frequency=10 --name=some_name --output=output_filename --duration=100 | ||
Or ( python26 -I cluster.ini -f 10 -n some_name -o output_filename –d 100 ) | ||
Frequency : how often collect stats from each node , duration , how long keep the script running. | ||
|
||
Once script completes it will create a *.json.gz file that contains all the stats. | ||
|
||
1- The requirement is that they must have "yum install sysstats" on all boxes. They also should check which /dev/sd??? Their database is actually installed and change line #283. | ||
|
||
2- They need to have python 2.6 installed only on the box where they want to run this script from | ||
yum install git python26 python26-setuptools gcc make g++ python26-devel | ||
easy_install-2.6 paramiko | ||
git clone git://github.com/farshidce/pystatcollector.git | ||
cd pystatcollector | ||
python26 stats.py -h | ||
|
||
3- cluster.ini file describes the cluster ssh/REST information. | ||
Ini file example : | ||
http://friendpaste.com/6hLNVrepFBiVFB8Ro5ZyVG | ||
|