This file contains hidden or 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
from pymongo import MongoClient | |
import math | |
import datetime | |
from collections import namedtuple | |
import calendar | |
db = MongoClient()['mci'] | |
NUM_THRESHOLD = 30 | |
start = datetime.datetime(2014, 4, 1, 0, 0, 0, 0) | |
end = datetime.datetime(2014, 5, 1, 0, 0, 0, 0) |
This file contains hidden or 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
package main | |
import "flag" | |
import "labix.org/v2/mgo" | |
import "labix.org/v2/mgo/bson" | |
import "fmt" | |
import "time" | |
import "encoding/json" | |
type ProfileOp struct { |
This file contains hidden or 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
load('multi_rs.js') | |
//Set of sample users to create on each test run | |
users = [ | |
{user:"user1", roles: ["read"], pwd:"pwd"}, | |
{user:"user2", roles: ["readWrite"], pwd:"pwd"}, | |
{user:"user3", roles: ["dbAdmin"], pwd:"pwd"}, | |
{user:"user4", roles: ["userAdmin"], pwd:"pwd"}, | |
{user:"user5", roles: ["clusterAdmin"], pwd:"pwd"}, | |
{user:"user6", roles: ["readAnyDatabase"], pwd:"pwd"}, |
This file contains hidden or 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
pickaxe('jstests/replsets/auth_compact.js', {max_days:5}).toJiraTable(); | |
, 2014-02-01T03:47Z , 518cbb8 , fail , windows-64-debug , jstests\replsets\auth_compact.js , [MCI task,http://mci.10gen.com/ui/task/mongodb_mongo_master_windows_64_debug_518cbb85a00e4e9ac7dc419569aacc3216db45d2_14_02_01_00_39_06_replicasets_windows_64] , [logfile,http://buildlogs.mongodb.org/build/52ec5d6bd2a60f577a000aa4/test/52ec7096d2a60f6289000065/] , | |
, 2014-01-31T15:17Z , 994103b , fail , windows-64-debug , jstests\replsets\auth_compact.js , [MCI task,http://mci.10gen.com/ui/task/mongodb_mongo_master_windows_64_debug_994103b66cbd41ba9169d628422e496e8cbd24c9_14_01_31_14_01_05_replicasets_windows_64] , [logfile,http://buildlogs.mongodb.org/build/52ebc170d2a60f0a270003de/test/52ebc29ed2a60f0a2700082b/] , | |
, 2014-01-31T11:43Z , 5548dbb , fail , osx-108-debug , jstests/replsets/auth_compact.js , [MCI task,http://mci.10gen.com/ui/task/mongodb_mongo_master_osx_108_debug_5548dbb7a13936911b1b482ddd417cf5879e01b4_14_01_30_22_36_00_replicasets |
This file contains hidden or 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
ShardingTest.prototype.prettyPrint = function(){ | |
print("MONGOS instances"); | |
for(var i=0;i<this._mongoses.length;i++){ | |
print("\tmongos",this._mongoses[i].port, this._mongoses[i].getDB("admin").version()) | |
} | |
print("config servers"); | |
for(var i=0;i<this._configServers.length;i++){ | |
print("\tconfig",this._configServers[i].port, this._configServers[i].getDB("admin").version()) | |
} |
This file contains hidden or 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 | |
import fileinput | |
import getpass | |
import requests | |
import json | |
import re | |
import keyring | |
import sys | |
#SETUP: |
This file contains hidden or 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
{ | |
'groups': [ | |
{'groupkey': "ns1", | |
'points': [ | |
[Date("Fri Jul 12 2013 11:31:36 GMT-0400 (EDT)", 1245, "q"], | |
[Date("Fri Jul 12 2013 11:32:36 GMT-0400 (EDT)", 12426, "q"], | |
[Date("Fri Jul 12 2013 11:32:36 GMT-0400 (EDT)", 56, "i"], | |
..... | |
]}, | |
... |
This file contains hidden or 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
var base_url = 'https://groups.google.com/forum/'; | |
var forum_url = base_url + '#!forum/'; | |
var topic_url = base_url + '#!topic/'; | |
var group_url = forum_url + 'mongodb-user'; | |
var jquery_min = 'https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'; | |
var page = require('webpage').create(); | |
page.viewportSize = { width: 1600, height: 1000 }; |
This file contains hidden or 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
var mongodb = require('mongodb') | |
var microtime = require('microtime') | |
var HOW_OFTEN=1000; | |
MongoClient = mongodb.MongoClient | |
Server = mongodb.Server | |
var process_ipranges = function(err, ip_ranges) { | |
if (err) { | |
console.trace(err); | |
console.error('Setting timeout to reopen db in 10 sec...'); |
This file contains hidden or 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/sh | |
#Set your HADOOP_HOME directory here. | |
export HADOOP_HOME="/Users/mike/hadoop/hadoop-2.0.0-cdh4.3.0" | |
declare -a job_args | |
job_args=("jar" "examples/cohort/target/cohort_cdh4.3.0-1.1.0.jar") |