This file contains 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
2016-08-19T22:38:24.191756-07:00 WARNING Breakpad caught crash in memcached. Writing crash dump to /opt/couchbase/var/lib/couchbase/crash/16698145-7e03-a81d-263f3ef4-65733701.dmp before terminating. | |
2016-08-19T22:38:24.192010-07:00 WARNING Stack backtrace of crashed thread: | |
2016-08-19T22:38:24.192604-07:00 WARNING /opt/couchbase/bin/memcached() [0x426e14] | |
2016-08-19T22:38:24.192795-07:00 WARNING /opt/couchbase/bin/memcached(_ZN15google_breakpad16ExceptionHandler12GenerateDumpEPNS0_12CrashContextE+0x3d4) [0x460a14] | |
2016-08-19T22:38:24.192944-07:00 WARNING /opt/couchbase/bin/memcached() [0x460c15] | |
2016-08-19T22:38:24.193110-07:00 WARNING /opt/couchbase/bin/memcached(_ZN15google_breakpad16ExceptionHandler13SignalHandlerEiP7siginfoPv+0x97) [0x460d57] | |
2016-08-19T22:38:24.193265-07:00 WARNING /lib64/libpthread.so.0() [0x7fc967a21710] | |
2016-08-19T22:38:24.193409-07:00 WARNING /lib64/libpthread.so.0(pthread_mutex_lock+0) [0x7fc967a1b3a0] | |
2016-08-19T22:38:24.193548-07:00 WARNING /opt/couchba |
This file contains 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
Because I was having a similar issue I thought I'd put this here for posterity's sake. | |
To 'login' (attach to a screen session) in docker for mac you do, | |
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
login with 'root' no password. | |
set whatever sysctl setting you need to modify. I had to set max_user_watches for inotify. |
This file contains 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 | |
set -e | |
# Ensure we kill all processes in our group on unclean failure | |
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM | |
pillowfight_args="-U couchbase://127.0.0.1:12000/default --json --min-size 1000 --max-size 1000 --num-items 10000 --batch-size 1" | |
This file contains 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
#include <errno.h> | |
#include <netinet/in.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
void die(const char *f) | |
{ | |
printf("%s: %s\n", f, strerror(errno)); |
This file contains 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
Ubuntu 16.04: | |
sud apt-get install -y libc++-dev libc++abi-dev |
This file contains 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
# Overall container usage: | |
docker stats $(docker ps --format="{{.Names}}") | |
# Inside a given container: | |
docker exec ubuntu12-cv-02 ps aux |
This file contains 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
if (label == "windows") { | |
// Skip running unit tests on Windows due to CBD-1740 | |
return [ "SKIP_UNIT_TESTS": 1 ] | |
} |
This file contains 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
perf report -g 'graph,0.5,caller' | |
# graph: Absoute overhead rates | |
# 0.5: | |
# caller: inverted caller based call graph | |
From: https://www.youtube.com/watch?v=nXaxk27zwlk |
This file contains 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
‡ git show --stat 7c8aa164|grep \| | cut -f 2 -d ' ' | xargs -n1 git blame -M -C | grep 7c8aa164 | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 138) src/dcp/dcpconnmap.cc | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 169) src/tapconnmap.cc | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 198) src/dcp/dcpconnmap.cc | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 225) src/tapconnmap.cc | |
7c8aa164 src/backfill.h (Daniel Owen 2016-03-02 15:31:34 +0000 34) #include "tapconnmap.h" | |
7c8aa164 src/checkpoint_remover.cc (Daniel Owen 2016-03-02 15:31:34 +0000 21) #include "dcp/dcpconnmap.h" | |
7c8aa164 src/checkpoint_remover.cc (Daniel Owen 2016-03-02 15:31:34 +0000 26) #include "tapconnmap.h" | |
7c8aa164 src/connmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 38) * A Callback task for connection notifier | |
7c8aa164 src/connmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 18) #pragma once |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote fetch="git://github.com/daverigby/" name="daverigby"/> | |
<!-- <remove-project name="build" /> --> | |
<project name="build" path="djr-cbbuild" remote="daverigby" revision="watson" groups="kv" /> | |
</manifest> |