[Graphite] whisper-resize.py : the easy way to change storage schemas retentions on carbon-cache

graphite_metrics

The default data retention policy in carbon-cache is 1 day, as we can see in the file /etc/carbon/storage-schemas.conf:


[default_1min_for_1day]
pattern = .*
retentions = 60s:1d

For my monitoring needs, I usually change the retentions setting to:


[default]
pattern = .*
retentions = 10s:6h,1min:7d,10min:1800d

On ubuntu 14.04, restarting carbon cache don’t change the retentions fast enough.

How change the retentions on carbon cache (the easy and fast way)

Download whisper from github:


wget --no-check-certificate https://github.com/graphite-project/whisper/archive/master.zip
unzip master.zip
cd whisper-master/bin

and then:


find /var/lib/graphite/whisper/Symmetrix/ -iname "*.wsp" | xargs -n 1 -I% sudo -u _graphite whisper-resize % 60s:7d 5m:60d 10m:1y 30m:5y

Now you check whatever directory inside /var/lib/graphite/whisper/Symmetrix/ and you can see:


ll -lrth /var/lib/graphite/whisper/Symmetrix/821/Director/FA-7H/Port/1/

total 7,0M

drwxr-xr-x 3 _graphite _graphite 4,0K oct 13 10:28 ../
-rw-r--r-- 1 _graphite _graphite 17K oct 16 11:46 IOPs.wsp.bak
-rw-r--r-- 1 _graphite _graphite 17K oct 16 11:49 KBsec.wsp.bak
drwxr-xr-x 2 _graphite _graphite 4,0K oct 16 11:50 ./
-rw-r--r-- 1 _graphite _graphite 2,0M oct 16 12:02 KBsec.wsp
-rw-r--r-- 1 _graphite _graphite 2,0M oct 16 12:02 IOPs.wsp

voila!

Advice for every day

“Assume positive intent. You will be amazed at how your whole approach to a person or problem becomes very different.”


Indra Nooyi [1]

Behavior change: Porn

Ubiquiti Aircam I2C

Ubiquiti Aircam

As far as I know, the Ubiquiti Aircam 720p 1 MB IP camera use a GMB 8126 SoC Board and as a I2C capability, breafly described on the following PDF: GM8126_I2C_User_Guide_V1.0.pdf.

Debian / Ubuntu en los HP Proliant G6

Como monitorear el hardware de un HP Proliant G6 en Debian/Ubuntu: Primero, agregamos el repo de HP para los Proliant.

Instalar la GPG de HP:


wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/GPG-KEY-ProLiantSupportPack -O - | apt-key add -

Luego Agregar en /etc/apt/sources.list


## HP

deb http://downloads.linux.hp.com/SDR/downloads/MCP precise/current non-free
deb http://downloads.linux.hp.com/SDR/downloads/MCP/Ubuntu precise/current non-free

apt-get install lsscsi hp-health hp-ams

Para obtener el RAID Status:


apt-get install hpacucli

Y luego:


$hpacucli

=> ctrl slot=0 logicaldrive all show detail

Smart Array P410i in Slot 0 (Embedded)

array A

Logical Drive: 1
Size: 546.8 GB
Fault Tolerance: RAID 50
Number of Parity Groups: 2
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 64 KB
Full Stripe Size: 128 KB
Status: Recovering, 31% complete
Caching: Enabled
Parity Initialization Status: Initialization Completed
Unique Identifier: 600508B1001030384532383833300500
Disk Name: /dev/sda
Mount Points: / 516.8 GB
OS Status: LOCKED
Logical Drive Label: A0002E885001438008E28830563B
Parity Group 0:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK)
physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 146 GB, Rebuilding)
Parity Group 1:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, OK)
physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 146 GB, OK)
Drive Type: Data

+Info sobre hpacucli

Para medir performance de raid recomiendo Bonnie++
Para obtener más info sobre performance test en los diferentes arreglos de RAID posibles, mira lo que Ken, de la Universidad de Florida tiene que decir: http://www.astro.ufl.edu/~ken/perf_tests.html

Buena Suerte!

+ info: http://downloads.linux.hp.com/SDR/faq.html

Parque eólico de canela.



Parque eólico de canela., originally uploaded by Ricardo Fuentes.

Places I wanna visit this year


Isla Del Sol, La Paz, Bolivia.



Content Under a Creative Commons License 2003-2008 Jirah . Thanks for visiting!