Skip to content

Instantly share code, notes, and snippets.

View erikdw's full-sized avatar
🏠
Working from home

Erik Weathers erikdw

🏠
Working from home
View GitHub Profile
@erikdw
erikdw / zook_grow.md
Created May 2, 2016 22:47 — forked from miketheman/zook_grow.md
Adding nodes to a ZooKeeper ensemble

Adding 2 nodes to an existing 3-node ZooKeeper ensemble without losing the Quorum

Since many deployments may start out with 3 nodes and so little is known about how to grow a cluster from 3 memebrs to 5 members without losing the existing Quorum, here is an example of how this might be achieved.

In this example, all 5 nodes will be running on the same Vagrant host for the purpose of illustration, running on distinct configurations (ports and data directories) without the actual load of clients.

YMMV. Caveat usufructuarius.

Step 1: Have a healthy 3-node ensemble

@erikdw
erikdw / build-mesos-within-scl.sh
Last active August 29, 2015 14:24
build.sh is invoked within CentOS 6.5 VM running on VirtualBox under the orchestration of Vagrant. This script sets up the system for doing the build, which is run under scl using build-mesos-within-scl.sh.
#!/bin/bash
set -u
set -e -o pipefail
version=${1:-}
# `g++ --version` should reveal that GCC is 4.8.2
gcc_version=`g++ --version`
echo "Building mesos version ${version} using g++ version ${gcc_version}"
# now download and build mesos

Tuning Storm+Trident

Tuning a dataflow system is easy:

The First Rule of Dataflow Tuning:
* Ensure each stage is always ready to accept records, and
* Deliver each processed record promptly to its destination
@erikdw
erikdw / Protos.java
Created April 16, 2015 01:41
org/apache/mesos/Protos.java
This file has been truncated, but you can view the full file.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: include/mesos/mesos.proto
package org.apache.mesos;
public final class Protos {
private Protos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}