start new:
tmux
start new with session name:
tmux new -s myname
import logging | |
import uuid | |
import time | |
from mesos.interface import Scheduler | |
from mesos.native import MesosSchedulerDriver | |
from mesos.interface import mesos_pb2 | |
logging.basicConfig(level=logging.INFO) |
Kubernetes is complex software and setting up a new cluster can be difficult. While there are easy approaches like Google Container Engine, you may want to customize your cluster in various ways, or simply understand how it all works. A great way to do this is to define your cluster as code using Terraform. In this talk, you'll learn how to use Terraform to deploy Kubernetes on CoreOS and EC2.
Terraform and CoreOS are a great combination for deploying Kubernetes clusters.
First, you have to enable profiling
> db.setProfilingLevel(1)
Now let it run for a while. It collects the slow queries ( > 100ms) into a capped collections, so queries go in and if it's full, old queries go out, so don't be surprised that it's a moving target...
This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.
#!/usr/bin/env bash | |
if [ $# -eq 0 ]; then | |
DEFAULT_USER=clouduser | |
else | |
DEFAULT_USER=$1 | |
fi | |
echo $DEFAULT_USER | |
if [ -f /bin/tempfile ]; then # is Ubuntu/Debian | |
SSH_KEYFILE=`tempfile` |