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
instructions: | |
find out which vbuckets are active on node X by running | |
opt/couchbase/bin/cbstats localhost:11210 checkpoint | grep active | |
vb_10:state: active | |
vb_11:state: active | |
vb_12:state: active | |
vb_13:state: active |
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
import os | |
import sys | |
import getopt | |
import exceptions | |
import struct | |
from optparse import OptionParser | |
from couchbase.rest_client import RestConnection | |
parser = OptionParser() |
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/sh | |
vgcreate VolGroup01 /dev/sdb | |
lvcreate --extents 100%VG --name Data VolGroup01 | |
mkfs -t ext3 -m 0 /dev/VolGroup01/Data | |
#echo "/dev/VolGroup01/Data /data ext3 defaults 0 0" >> /etc/fstab | |
mkdir -p /data | |
mount /data |
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/couchbase/" name="couchbase" review="review.couchbase.org"/> | |
<remote fetch="git://github.com/couchbaselabs/" name="couchbaselabs" review="review.couchbase.org"/> | |
<default remote="couchbase" revision="master"/> | |
<project name="CouchCocoa" remote="couchbaselabs" revision="7041bfdd6b16ba600a5c6c3d6529d4f710928ba8"/> | |
<project name="couchdb" path="vendor/couchdb" revision="312b1528b7e5fb143ccc2cbd81f7388a728d211a"/> | |
<project name="geocouch" path="vendor/geocouch" revision="1cc3251fecd75ffaae32c509716f9415fb6c5a0d"/> |
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
{"name":"default","bucketType":"membase","authType":"sasl","saslPassword":"","proxyPort":0,"uri":"/pools/default/buckets/default","streamingUri":"/pools/default/bucketsStreaming/default","flushCacheUri":"/pools/default/buckets/default/controller/doFlush","nodes":[{"systemStats":{"cpu_utilization_rate":0.5414410662224073,"swap_total":11814912000.0,"swap_used":0},"interestingStats":{"curr_items":11177939,"curr_items_tot":22368795,"vb_replica_curr_items":11190856},"uptime":"194492","memoryTotal":67545075712.0,"memoryFree":1611206656,"mcdMemoryReserved":51532,"mcdMemoryAllocated":51532,"replication":1.0,"clusterMembership":"active","status":"healthy","hostname":"10.80.72.238:8091","clusterCompatibility":1,"version":"1.8.0r-55-g80f24f2-enterprise","os":"x86_64-unknown-linux-gnu","ports":{"proxy":11211,"direct":11210}},{"systemStats":{"cpu_utilization_rate":0.41649312786339027,"swap_total":11814912000.0,"swap_used":0},"interestingStats":{"curr_items":11190748,"curr_items_tot":22386216,"vb_replica_curr_items":111954 |
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
import os | |
find = "1.8.0r-55-g80f24f2" | |
replace = "1.8.0" | |
files = os.listdir(".") | |
for f in files: | |
if f.index(find) != -1: | |
newf = f.replace(find,replace) | |
print newf | |
os.rename(f,newf) |
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
make do-hard-clean-xfd-couchdb | |
make do-hard-clean-xfd-ep_engine | |
make do-hard-clean-xfd-ep-engine | |
make do-hard-clean-xfd-ns-server | |
make do-hard-clean-xfd-ns_server | |
make do-hard-clean-xfd-memcached | |
make do-hard-clean-xfd-libmemcched | |
make do-hard-clean-xfd-libmemcached | |
make do-hard-clean-xfd-bucket_engine | |
make do-hard-clean-xfd-membase-cli |
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
rm -rf ~/capture.out | |
while [ 1 ] | |
do | |
date >> ~/capture.out | |
./sqlite3_analyzer /mnt/ebs/default-data/default-1.mb >> ~/capture.out | |
sleep 1800 | |
done | |
for 1 hr change sleep to 3600 |
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
rm -rf ~/capture.out | |
while [ 1 ] | |
do | |
date >> ~/capture.out | |
/opt/couchbase/bin/cbstats localhost:11210 timings >> ~/capture.out | |
sleep 1800 | |
done | |
for 1 hr change sleep to 3600 |
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
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_225:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_496:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_497:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_124:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_309:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_380:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_381:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_412:num_checkpoints: 3 | |
tapcheckpointstats-umami-201111232025/checkpointstats.umami.201111232025.txt: vb_490:num_checkpoints: 3 | |
tapchec |