This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Current time in milliseconds | |
metric=load_value_test | |
host=127.0.0.1 | |
for i in {1..10000} | |
do | |
now=$(($(date +%s%N)/1000000)) | |
echo "put $metric $now $i name=A" | nc -w 30 $host 4242 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
confConsLevel.setDefaultReadConsistencyLevel(HConsistencyLevel.ONE); | |
confConsLevel.setDefaultWriteConsistencyLevel(HConsistencyLevel.ANY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Current time in milliseconds | |
metric=test_rest_metric | |
host=127.0.0.1:8080 | |
for i in {1..10000} | |
do | |
now=$(($(date +%s%N)/1000000)) | |
curl -X POST -H "Content-Type: application/json" -d "[{"name": "$metric", "datapoints": [[$now, $i]], "tags": {"hostname": 'foo'}}]" $host/api/v1/datapoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Overview", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Doxyfile 1.7.6.1 | |
# This file describes the settings to be used by the documentation system | |
# doxygen (www.doxygen.org) for a project. | |
# | |
# All text after a hash (#) is considered a comment and will be ignored. | |
# The format is: | |
# TAG = value [value, ...] | |
# For lists items can also be appended using: | |
# TAG += value [value, ...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while(true) do out=$(./vendor/bin/phpunit); clear; echo -e "$(date)" "\n" "$out"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$4*10 alters the scale so if you set 10*100 each segment of a bar would be 1 100th of a second | |
tail -f /var/log/cassandra/gc.log.0 | while read line; do echo $line | head -c $(awk '{ print int($4*10) }') </dev/zero | tr '\0' '='; printf "|\n"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show the latency across keyspaces | |
nodetool cfstats | grep "Latency" | |
# Identify how many replicas have a row | |
# 1. use cassandra-cli to identify row key (connect <host>/<port>; use <keyspace>; list <table> limit 1;) | |
# 2. copy key into: nodetool getendpoints -- <keyspace> <table> <key> | |
#Node Exceptions | |
nodetool info | grep Exceptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do inotifywait -re modify [dirname] && echo "DO SOMETHING"; done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do inotifywait -qr --format '%w' *.go | while read FILE; do echo $FILE; gofmt -w $FILE; done; done; |
OlderNewer