Skip to content

Instantly share code, notes, and snippets.

View tamale's full-sized avatar

tamale tamale

View GitHub Profile
@tamale
tamale / delete_instance.sh
Last active December 17, 2015 13:49
Safely remove all references to an instance from openstack nova database
#!/bin/bash
DBHOST=node1
DBUSER=novauser
DBPASS=novapass
VMNAME=$1
if [ -z "$1" ]; then echo "VM Name not given"; exit 1; fi
@tamale
tamale / gist:8046077
Last active December 31, 2015 21:19
kairosclient.py
#!/usr/bin/env python
# Inserts quasi-random sawtooth data into kairosdb over the telnet protocol
import random
import socket
import time
hostname = socket.gethostname()
@tamale
tamale / gist:8511784
Created January 19, 2014 22:22
KairosDB Cassandra yaml
cluster_name: stats
key_cache_size_in_mb: 100
key_cache_save_period: 14400
row_cache_size_in_mb: 500
row_cache_save_period: 3600
num_tokens: 256
start_native_transport: true
native_transport_port: 9042
hinted_handoff_enabled: true
max_hint_window_in_ms: 8
@tamale
tamale / gist:8511841
Created January 19, 2014 22:25
kairosdb conf
kairosdb.telnetserver.port=4242
kairosdb.service.telnet=org.kairosdb.core.telnet.TelnetServerModule
kairosdb.service.http=org.kairosdb.core.http.WebServletModule
kairosdb.service.reporter=org.kairosdb.core.reporting.MetricReportingModule
#===============================================================================
# Uses Quartz Cron syntax - default is to run every minute
kairosdb.reporter.schedule=0 */1 * * * ?
@tamale
tamale / gist:8511854
Created January 19, 2014 22:26
kairosdb cfstats
Keyspace: kairosdb
Read Count: 61
Read Latency: 0.5502295081967213 ms.
Write Count: 596450
Write Latency: 0.017370728476821192 ms.
Pending Tasks: 0
Column Family: data_points
SSTable count: 0
Space used (live): 0
Space used (total): 0