Skip to content

Instantly share code, notes, and snippets.

View vvuksan's full-sized avatar

Vladimir Vuksan vvuksan

View GitHub Profile
Run #1: ./tiotest -t 8 -f 2048 -r 500 -b 4096 -d /mnt/fio/test -TTT
Unit information
================
File size = megabytes
Blk Size = bytes
Rate = megabytes per second
CPU% = percentage of CPU used during the test
Latency = milliseconds
Lat% = percent of requests that took longer than X seconds
#!/usr/bin/ruby
require "rexml/document"
require 'socket'
ganglia_hostname = 'localhost'
ganglia_port = 8649
graphite_host = "localhost"
graphite_port = "2003"
begin
@vvuksan
vvuksan / Graphite Diff
Created October 26, 2010 01:28
Graphite Installation
--- webapp/graphite/storage.py 2009-12-07 05:58:32 +0000
+++ webapp/graphite/storage.py 2010-10-14 16:36:07 +0000
@@ -262,7 +262,8 @@
def getDataSources(self):
try:
info = rrdtool.info(self.fs_path)
- return [RRDDataSource(self, source) for source in info['ds']]
+ #return [RRDDataSource(self, source) for source in info['ds']]
+ return [RRDDataSource(self, source) for source in ["sum"]]
except:
@vvuksan
vvuksan / README.txt
Created April 6, 2011 21:09
Produce Rundeck compliant node list
Stick the PHP file in your Ganglia Web directory. Then in
$RUNDECK_HOME/projects/Default/etc/project.properties
add following lines
project.resources.file = /opt/rundeck/projects/Default/etc/resources.yaml
project.resources.url = http://ganglia.local/ganglia/rundeck.php
In Rundeck web UI there will be a link that says
@vvuksan
vvuksan / gist:988765
Created May 24, 2011 14:14
Logstash Init script
#! /bin/sh
#
# Logstash Start/Stop logstash
#
# chkconfig: 345 99 99
# description: Logstash
# processname: logstash
logstash_bin="/usr/java/latest/bin/java -jar /opt/logstash/logstash.jar"
logstash_conf="/etc/logstash/logstash.conf"
@vvuksan
vvuksan / gist:992206
Created May 25, 2011 23:03
URL Metrics
# Based on https://github.com/ripienaar/mcollective-plugins/blob/master/agent/urltest/urltest.rb
require 'net/http'
require 'socket'
req_url = "http://www.google.com"
url = URI.parse(req_url)
@vvuksan
vvuksan / gist:996051
Created May 27, 2011 20:04
ESC Conference abbrevation. What does it mean ?
For those who have wondered what ESC in ESC Conference stands for. Here is a short guide.
1. (15:50:22) nahamu: Extreme SCalability?
2. (15:50:29) whack: elastic synergy computing
3. (15:50:50) nahamu: "Eh, Something Cool"?
4. (15:51:47) devdas: Extremely Scalable Computing
5. (15:52:27) devdas: Explicitly Scalable Computing?
6. (15:53:03) lusis: eastern seaboard computing?
7. (15:53:15) Cope: Eloquent Sophistry Convention
8 (15:53:28) whack: Enterprise Synergism Combinatorics
@vvuksan
vvuksan / gist:1025952
Created June 14, 2011 21:31
Velocity 2011 links
@vvuksan
vvuksan / gist:1072046
Created July 8, 2011 15:10
Ganglia MonetDB integration
https://github.com/jmlowe/Ganglia-MonetDB-plugin
(16:07:47) jmlowe: monetdb's performance is still very flat 3400 rows, 4.3 msec
(16:11:03) bernardl: jmlowe: this is with gmetad-python constantly updating stuff?
(16:11:13) jmlowe: yes, it's banging away
(16:11:19) bernardl: jmlowe: cool -- host many hosts?
(16:11:24) jmlowe: just one
(16:11:27) bernardl: ok
(16:11:41) bernardl: how easy is it to setup monetdb? is it readily packaged up in Linux?
@vvuksan
vvuksan / gist:1079081
Created July 12, 2011 22:00
PHP Spec file
%define contentdir /var/www
%define apiver 20041225
%define zendver 20050922
%define pdover 20060409
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
Name: php
Version: 5.3.0
Release: 1%{?dist}
License: The PHP License v3.01