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
#!/usr/bin/env python | |
# Initial version - 24-Feb 2015 | |
# Monitor interesting Couchbase statistics over a period of time | |
# Stats are captured via calling the REST endpoint which provides individual | |
# stats for each node. These are then post-processed to provide cluster-wide | |
# totals before being output to the console. | |
import json | |
from collections import defaultdict | |
import sys |
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
#!/usr/bin/env - python | |
from couchbase.bucket import Bucket | |
import threading | |
import sys | |
from multiprocessing.dummy import Pool as ThreadPool | |
TIMEOUT=10 | |
if len(sys.argv) != 7: | |
print "Usage: " + sys.argv[0] + " <host> <bucket> <count> <size> <conns> <threads>" |