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
| This file contains any messages produced by compilers while | |
| running configure, to aid debugging if configure makes a mistake. | |
| It was created by HyperDex configure 1.0.dev, which was | |
| generated by GNU Autoconf 2.69. Invocation command line was | |
| $ ./configure CXXFLAGS=-O1 CC=gcc-4.7 --disable-docs --enable-python-bindings | |
| ## --------- ## | |
| ## Platform. ## |
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 | |
| # Guess values for system-dependent variables and create Makefiles. | |
| # Generated by GNU Autoconf 2.69 for HyperDex 1.0.dev. | |
| # | |
| # Report bugs to <escriva@cs.cornell.edu>. | |
| # | |
| # | |
| # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
| # | |
| # |
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
| a fix for os x to current MASTER: | |
| https://github.com/mreiferson/e/commit/5b6b369e8a334675c62232f58d291ea4ded243b0 | |
| libtoolize --force | |
| aclocal | |
| autoheader | |
| automake --force-missing --add-missing #needed to genereate install-sh | |
| autoconf | |
| ./configure |
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
| brew install autoconf leveldb automake python shtool glog libtool popt #maybe more | |
| prerequisites | |
| git clone https://github.com/rescrv/po6.git | |
| git clone https://github.com/rescrv/busybee.git | |
| git clone https://github.com/rescrv/Replicant.git | |
| wget http://cityhash.googlecode.com/files/cityhash-1.1.0.tar.gz | |
| a fix for os x to current MASTER: | |
| https://github.com/mreiferson/e/commit/5b6b369e8a334675c62232f58d291ea4ded243b0 |
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/bash | |
| kill -USR2 `cat tmp/pids/unicorn.pid` | |
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/bash | |
| kill -USR2 `cat tmp/pids/unicorn.pid` | |
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" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| ) | |
| type MovieCollector 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
| package main | |
| import ( | |
| "encoding/binary" | |
| "fmt" | |
| "github.com/jmhodges/levigo" | |
| ) | |
| func main() { | |
| fmt.Println("open db") |
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
| #caution, only use this script if you have no important data in your redis db with index 9 | |
| #idea: - create the most naive and simple foghorn implementation possible with redis. | |
| # - only create the server, not the clients who actually deliver the messages out, those can be scaled vertically | |
| # - only the messaging core, no http stuff | |
| # | |
| #reason: get a feeling for the problems and do a some benchmark | |
| #outcome: while you can make redis the bottleneck with multiple instances of this type of | |
| # Foghorn sever, it scales not that well. | |
| # - the set intersection to get users from a group is O(N). a btree + mergesort would be faster here (sql...) |
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 MongoClient = require('mongodb').MongoClient | |
| , format = require('util').format; | |
| MongoClient.connect('mongodb://127.0.0.1:27017/ricardo-crawler-2', function(err, db) { | |
| if(err) throw err; | |
| var items = db.collection('items'); | |
| items.count(function(err, count) { |