Skip to content

Instantly share code, notes, and snippets.

View aliesbelik's full-sized avatar

Aliaksandr Belik aliesbelik

View GitHub Profile
@rewinfrey
rewinfrey / rails_application_tuning.md
Last active August 29, 2015 14:04
Rails Large Application Tuning

Notes from Tuning Legacy Rails App: How to Make an Elephant Sprint

###Measuring performance

  • Monitor the values of specific code paths and graph them to see performance over time (response times as one example metric)
  • Automated tests that measure performance can fail based on a set threshold
    • If a given code path exceeds 20% of the existing response time, then the automated test fails, alerting ops and devs that a recent code change has negatively impacted performance beyond an pre-defined SLA or threshold
  • Need a production like environment
  • Make that performance test environment exclusive to performance testing (don't let regular usage or QA usage affect the test results)
  • Using NewRelic to compare boxes against each other
@Nimrod007
Nimrod007 / gatling-packer-image
Last active August 29, 2015 14:15
gatling packer digitalocean + amazon example
{
"builders": [
{
"type": "digitalocean",
"api_token": "XXXX",
"image": "ubuntu-14-04-x64",
"region" : "nyc3",
"size" : "1gb",
"droplet_name" : "gatlingNode"
},
@alexclear
alexclear / tsung-filter.pl
Created March 24, 2013 15:42
Tsung recorded sessions filtering script
#!/usr/bin/perl
use strict;
use warnings;
print "Processing ${ARGV[0]}, filtering domain ${ARGV[1]}\n";
open INPUT, ${ARGV[0]} or die $!;
open OUTPUT, ">${ARGV[0]}.filtered.xml" or die $!;
my $skip = 0;
while (my $line = <INPUT>) {
#!/bin/sh
TSUNG=/usr/local/tsung/bin/tsung
CONF=/data/httpd/tsung/etc/test.d.xml
LOG=/data/httpd/tsung/log
/usr/bin/screen -d -m $TSUNG -f $CONF -l $LOG start
#!/usr/bin/env python
"""summarize: Given Tsung's HTTP Return Code table saved in a file, outputs:
===================
Summary: % of Total
===================
{200: 0.03223020521177586,
201: 0.6133764139909427,
204: 0.3496694087548634,
@aviafelix
aviafelix / tsung-centos-install.txt
Created April 10, 2015 08:46
installing tsung in centos
yum -y install erlang perl perl-RRD-Simple.noarch perl-Log-Log4perl-RRDs.noarch gnuplot perl-Template-Toolkit firefox
wget http://tsung.erlang-projects.org/dist/tsung-x.x.x.tar.gz
tar zxfv tsung-1.4.2.tar.gz
cd tsung-1.4.2
./configure && make && make install
cp /usr/share/doc/tsung/examples/http_simple.xml /root/.tsung/tsung.xml
@cmalard
cmalard / subl
Last active February 13, 2019 20:23 — forked from versedi/.sh
Cygwin + Sublime Text 3 : works with files and Git
#!/bin/bash
# To create in [.babun/]cygwin/usr/local/bin/subl with chmod +x
ARGS=""
while test $# -gt 0
do
ARGS="$ARGS ${1#/cygdrive/[a-zA-Z]}"; # Remove /cygdrive and disk letter from the path
shift
done
@aviafelix
aviafelix / configure-load-testing-stand.md
Created April 14, 2015 08:33
Example: Setting up load testing stand with Yandex-Tank, JMeter and Tsung on CentOS 7+
@clasense4
clasense4 / tsung.md
Created November 17, 2015 08:52
Install tsung centos 7

Install tsung centos 7

yum -y install erlang perl perl-RRD-Simple.noarch perl-Log-Log4perl-RRDs.noarch gnuplot perl-Template-Toolkit
wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz
tar xfz tsung-1.6.0.tar.gz
cd tsung-1.6.0
./configure && make && make install

mkdir /root/.tsung
@hhcordero
hhcordero / 1_Dockerised_JMeter.md
Last active March 30, 2022 13:44
Dockerized JMeter - A Distributed Load Testing Workflow