Skip to content

Instantly share code, notes, and snippets.

1341938784.370396802 src/CoordinatorService.cc:885 in CoordinatorService::verifyServerFailure default NOTICE[2476:2]: Verified host failure: id 1 ("infrc:host=192.168.1.122,port=12249")
1341938784.370421087 src/CoordinatorService.cc:434 in CoordinatorService::hintServerDown default NOTICE[2476:2]: Server id 1 has crashed, notifying the cluster and starting recovery
1341938784.372789723 src/MasterRecoveryManager.cc:469 in MasterRecoveryManager::restartMasterRecovery default NOTICE[2476:2]: Scheduling recovery of master 1
1341938784.372906364 src/CoordinatorService.cc:427 in CoordinatorService::hintServerDown default NOTICE[2476:2]: Spurious crash report on unknown server id 1
1341938784.372925556 src/CoordinatorService.cc:427 in CoordinatorService::hintServerDown default NOTICE[2476:2]: Spurious crash report on unknown server id 1
1341938784.373121881 src/MasterRecoveryManager.cc:193 in MasterRecoveryManagerInternal::MaybeStartRecoveryTask::performTask default NOTICE[2476:3]: Starting recovery of server 1 (now
Timer myTimer;
myTimer.start();
//check if we have one or two comparators
bool useSecondComparator = false;
if (secondComparator != NOTSET) {
useSecondComparator = true;
}
@tinnefeld
tinnefeld / gist:2629019
Created May 7, 2012 17:09
RAMCloud Hello World Pseudo-Code
#include "RamCloud.h"
#include <iostream>
int main(int argc, char const *argv[])
{
RAMCloud::RamCloud cloud("tcp:host=127.0.0.1,port=12246");
const char * kTableName = "test_table";
@tinnefeld
tinnefeld / clusterperf_no_statistics
Created April 25, 2012 23:43
Running clusterperf to determine the penalty introduced by having server statistics
Master client reading from all masters
Slave id 1 reading from all masters
Slave id 2 reading from all masters
Slave id 3 reading from all masters
Slave id 4 reading from all masters
Slave id 5 reading from all masters
Slave id 6 reading from all masters
Slave id 7 reading from all masters
Slave id 8 reading from all masters
Slave id 9 reading from all masters
@tinnefeld
tinnefeld / gist:2324599
Created April 7, 2012 02:32
Deichkind - Leider Geil / Unfortunately Awesome - Englisch lyrics / Englischer Songtext
I'm sorry, but I have to admit, there are things in this world, which are - unfortunately awesome.
Cars cause pollution, the environment suffers, but a fancy new ride is - unfortunately awesome.
I'm chewing on a crayon, mom tells me to 'Stop it!', but it relaxes me - unfortunately awesome.
Diagnosis: psychosis!, I don't care, a joint first thing in the morning - unfortunately awesome.
"Stop nuclear energy!" you hear them screaming and I charge my smartphone - unfortunately awesome.
Finally a new job, gotta' get up early in the morning, getting wasted in a pub - unfortunately awesome.
My teeth are rotten, but they don't hurt yet, I'm not going to the dentist - unfortunately awesome.
I'm decorating drunken friends, it's mean indeed, - but unfortunately awesome.
Bad for the offspring, bad for the North-sea, bad for your head - but unfortunately awesome.
@tinnefeld
tinnefeld / ScanBenchmark.cpp
Created February 23, 2012 11:08
ScanBenchmark // g++ -O2 Scanbenchmark.cc Timer.h
#include <iostream>
#include <stdlib.h>
#include "Timer.h"
using namespace std;
const long long size = 1024*1024*128; // 1GB
typedef bool(*boolfp)(int,int);
@tinnefeld
tinnefeld / ramcloud_increment.patch
Created February 15, 2012 12:23
Increment Operator for RAMCloud Patch file for 7d19140
From fa6b3028135f535393ea67ca4b6db9bec8bc48d0 Mon Sep 17 00:00:00 2001
From: Christian Tinnefeld <tinnefeld@gmail.com>
Date: Tue, 14 Feb 2012 12:17:02 -0500
Subject: [PATCH] Added increment operator
---
GNUmakefile | 2 +-
scripts/rawmetrics.py | 1 +
src/MasterClient.cc | 30 ++++++++++++++++++++++++
src/MasterClient.h | 3 ++
@tinnefeld
tinnefeld / MasterService.cc
Created January 3, 2012 14:57
ScanOperator in RAMCloud
...
MasterService::scan(const ScanRpc::Request& reqHdr,
ScanRpc::Response& respHdr,
Rpc& rpc)
{
LOG(NOTICE, "Running scan operation on master service!");
LOG(NOTICE, "Scan PARAMS: table=%i, column=%i, comaparator=%i, operand=%i",
(int)reqHdr.tableId, (int)reqHdr.id, (int)reqHdr.comparator, (int)reqHdr.operand);