Skip to content

Instantly share code, notes, and snippets.

View aliesbelik's full-sized avatar

Aliaksandr Belik aliesbelik

View GitHub Profile
@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
@stephen-puiszis
stephen-puiszis / elasticsearch-cheatsheet.txt
Last active June 7, 2024 11:53
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
@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+
@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

Git Cheat Sheet

Commands

Getting Started

git init

or

@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"
},
@Nimrod007
Nimrod007 / gatlingClusterRun.sh
Last active May 17, 2022 13:53
Gatling - running on multiple machines and aggregating the results
#!/bin/bash
##################################################################################################################
#Gatling scale out/cluster run script:
#Before running this script some assumptions are made:
#1) Public keys were exchange inorder to ssh with no password promot (ssh-copy-id on all remotes)
#2) Check read/write permissions on all folders declared in this script.
#3) Gatling installation (GATLING_HOME variable) is the same on all hosts
#4) Assuming all hosts has the same user name (if not change in script)
##################################################################################################################
@ipmb
ipmb / ratelimit.nginxconf
Last active May 26, 2024 13:57
Nginx reverse proxy with rate limiting
upstream myapp {
server 127.0.0.1:8081;
}
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s;
server {
listen 443 ssl spdy;
server_name _;
@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