Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
woo hoo!!

Geoffrey Anderson geoffreyanderson

😀
woo hoo!!
View GitHub Profile
View dba-me.coffee
# Description:
# Randomly selects a photo and caption from dbareactions.com and posts it to your chat
#
# Dependencies:
# string": "~1.8.1"
#
# Configuration:
# None
#
# Commands:
@srs81
srs81 / hbase_performance.py
Created Jul 10, 2012
HBase write performance testing: including batching and number of threads
View hbase_performance.py
from multiprocessing import Pool
import happybase, os, random, base64, time, sys
# Total number of rows to be inserted
TOTAL_PUTS = 100000000
# Number of inserts that are in one batch operation
BATCH_PUTS = 10000
# Output is displayed after how many iterations
OUTPUT_ITERATIONS = 50000
# Number of simultaneous threads (actually processes)