Skip to content

Instantly share code, notes, and snippets.

(8) 600GB 15K SAS RAID10
2gb x 128 w/ 8 threads rndwr (16K block - 16K block - 64K stripe)
Operations performed: 0 Read, 677711 Write, 844039 Other = 1521750 Total
Read 0b Written 10.341Gb Total transferred 10.341Gb (35.296Mb/sec)
2258.94 Requests/sec executed
2gb x 128 w/ 8 threads rndrw (16K block - 16K block - 64K stripe)
Operations performed: 821564 Read, 547710 Write, 1740204 Other = 3109478 Total
Read 12.536Gb Written 8.3574Gb Total transferred 20.893Gb (71.316Mb/sec)
@dctrwatson
dctrwatson / gist:948644
Created April 29, 2011 17:14
MySQL HAProxy replication check using mk-heartbeat
We couldn’t find that file to show.
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEArPcTGfenZSWmsDMe7Nm8+OXS8lFlB8SpZ3iW1BulONiWV+4lXTLSoPyeSJlD8XgJRs7iHYCvDarq81qutF9ZqTtrLzy1cXJY4fL3Zl2xGay1MVniJ8z8WZBVKHUQiLj5uYAzLXxhX68mQz85P8ZMwsQrJdK67OTPtP0grYhrzxBzhIAKsnN3b9sFJwLQcb3CUxavt5+e9CvnmlB5kPYbVhPL1Ny+fQhOkBYm35cINb5aJjKVZ6vWJozOJVTE6HsxCWLISb3bk+31sL1ljSNViKTYfX3PubQcfE63mKBK6OAiEGFnXXd9R0XEc4Oe7sVNPg0J0tb7/r4rjLEHK6LO/ilsIQpB2dtyBRP8A4w15V5snfxj+GUym+rOQGek/m4pchafQi5JkRmkHzeKIcs3ovY5HGwdC3k2ORjcJbkv6424f/Jlxof9XRaTKYP99sFUJ8sMOPs8MR1OcQfjCS56pK8oNLKOYDBef6HX+C6SQ4f1/oIhiYIQi34/p2CBo7ZyvpbJ/GMz9zRV0JSRARfoE7ZcMhzmumWx9SDWCJdpz40u4Un6fdZADeeemtFAMFCRekxkyQjGcgrXgLbbkLq2/nX93CGWpJl8/5fRQcJcjo6Hf8axdfxmxnLpSsqlJZZ+1bimYkLqw3FDWg5Yp9gmDPAKxFHAI2QL/Sjaq9vcWOs=
@dctrwatson
dctrwatson / format
Created November 11, 2011 07:43
Flatten uniform depth nested dicts
";" between domains
":" between domain and queues
"|" between queues
"?" between queue names and metrics
"," between metrics
@dctrwatson
dctrwatson / settings.json
Created February 13, 2012 20:20
multiple ElasticSearch analyzers
{
"settings": {
"analysis": {
"analyzer": {
"uax_url": {
"type": "custom",
"tokenizer": "uax_url_email",
"filter": ["standard", "lowercase", "stop"]
},
"uax_url_strip_html": {
@dctrwatson
dctrwatson / setup.py
Created August 11, 2012 06:50
Detect pip in setup.py
try:
using_pip = replacement_run
except NameError:
try:
import numpy
@dctrwatson
dctrwatson / etc.network.interfaces
Created September 14, 2012 09:11
Multi vip ucarp on single interface
auto eth0
iface eth0 inet static
address 10.0.1.2
netmask 255.255.255.0
up /../ucarp_up_down.sh
down /../ucarp_up_down.sh
ucarp-vid-0 3
ucarp-vip-0 10.0.1.3
ucarp-password-0 badpasswd
ucarp-vid-1 10
@dctrwatson
dctrwatson / commit_diff.sh
Last active April 9, 2024 20:50
Update Phabricator diff depending on build status
BASE_COMMIT=$(echo {\"diff_id\": ${DIFF_ID}} | arc call-conduit differential.getdiff | awk -v RS=',' -v FS=':' '$1~/\"sourceControlBaseRevision\"/ {print $2}' | tr -d \")
# Update repo (can be taken care of by jenkins too)
git fetch --all
git remote prune origin
# We only want to test the diff so reset to base
git reset --hard ${BASE_COMMIT}
git clean -fdx
@dctrwatson
dctrwatson / JenkinsDiffEventListener.php
Last active January 11, 2020 22:56
Jenkins Phabricator Inegration
<?php
/*
* Copyright 2013 Disqus, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dctrwatson
dctrwatson / info.pp
Created February 13, 2013 22:47
Has to be better way of gathering all names of a certain defined resources in Puppet
class info {
define iota() {}
Info::Iota<| |>
$info_template = '<% scope.compiler.catalog.vertices.each do |resource| -%>
<%- if resource.type == "Info::Iota" -%><%= resource.name %>,<% end -%>
<%- end -%>'
$all_iotas = unique(sort(split(chop(inline_template($info_template)),',')))