Skip to content

Instantly share code, notes, and snippets.

View tleyden's full-sized avatar

Traun Leyden tleyden

View GitHub Profile
This file has been truncated, but you can view the full file.
2015-09-17T00:24:00.871Z DCache+: Change Index: Adding Entry with Key [_sync:user:user-493], VbNo [10]
2015/09/17 00:24:00 go-couchbase: call to Do("_idx_user:user-271") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 5.311227123s
2015-09-17T00:24:00.871Z DCache+: Change Index: Adding Entry with Key [_sync:user:user-271], VbNo [10]
2015/09/17 00:24:00 go-couchbase: call to Do("_idx_user:user-589") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 5.311421315s
2015-09-17T00:24:00.871Z DCache+: Change Index: Adding Entry with Key [_sync:user:user-589], VbNo [6]
2015/09/17 00:24:00 go-couchbase: call to Do("_idx_user:user-419") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 5.311588657s
2015-09-17T00:24:00.871Z DCache+: Change Index: Adding Entry with Key [_sync:user:user-419], VbNo [6]
2015/09/17 00:24:00 go-couchbase: call to Do("_idx_user:user-54") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 5.311771734s
2015-09-17T00:24:00.871Z DCache+: Change Index: Adding
@tleyden
tleyden / README.md
Last active August 29, 2015 14:23
sg-collectinfo

Collecting

  1. Clone this gist
  2. chmod *.sh
  3. ./collect.sh

Sending

  1. zip up the output directory
  2. Send/upload zipfile
{
"cmdline":[
"/opt/gocode/bin/gateload",
"-workload",
"/root/gateload_config.json"
],
"memstats":{
"Alloc":228121768,
"TotalAlloc":4333493544,
"Sys":344564984,
{
"log": ["HTTP", "HTTP+", "CRUD"],
"adminInterface": ":4985",
"maxIncomingConnections": {{conn_in}},
"maxCouchbaseConnections": {{conn_db}},
"maxFileDescriptors": 90000,
"slowServerCallWarningThreshold": 500,
"compressResponses": {{compression}},
"databases": {
"db": {
{
"syncGateway_changeCache":{
"lag-queue-0000ms":1,
"lag-total-9223372036800ms":1,
"maxPending":0
},
"syncGateway_db":{
"sequence_gets":14,
"sequence_reserves":27
},
{
"cb":{
"ops":{
},
"pools":{
}
},
"cmdline":[
{
"cb":{
"ops":{
},
"pools":{
}
},
"cmdline":[
@tleyden
tleyden / gist:70bac20b093f1e92f389
Last active August 29, 2015 14:14
go tool pprof bin/sync_gateway profile/master_branch/run640/profile_heap_1.prof
root@core-01:/opt/sync_gateway# go tool pprof bin/sync_gateway profile/master_branch/run640/profile_heap_2.prof
Entering interactive mode (type "help" for commands)
(pprof) top25
786.80MB of 846.25MB total (92.98%)
Dropped 501 nodes (cum <= 4.23MB)
Showing top 25 nodes out of 86 (cum >= 118.45MB)
flat flat% sum% cum cum%
376.11MB 44.44% 44.44% 376.11MB 44.44% compress/flate.(*compressor).initDeflate
161.56MB 19.09% 63.54% 161.56MB 19.09% net/http.newBufioWriterSize
118.45MB 14.00% 77.53% 118.45MB 14.00% bufio.NewReaderSize
@tleyden
tleyden / gist:b05b0be961e6d1cd1f50
Created February 4, 2015 19:47
changes feed todolite
{"results":[
{"seq":"40:39","id":"18C310FC-0D24-46EB-A2EF-BEFE02EC22E3","changes":[{"rev":"1-44ef16838352ee93d81d8365927e2402"}]}
,{"seq":40,"id":"874F540A-4DAA-4D6E-A7A0-FB4F4D03F1AB","changes":[{"rev":"1-37087a35558bbdb4c6a605c996f82384"}]}
,{"seq":"41:36","id":"27EF107B-B369-4992-8E60-0D0D0AC7020E","changes":[{"rev":"2-d84c36c4142bdede238dd0ddf5f23b9d"}]}
,{"seq":41,"id":"4F09DD50-19FE-4628-854B-6560D985121F","changes":[{"rev":"1-71778b41cb86458d615f7429b894de18"}]}
,{"seq":42,"id":"5cbee5d4-3220-4cfe-a795-618310c27018","changes":[{"rev":"3-e1d7ba0d-4191-4358-80d1-86b30abe53bf"}]}
,{"seq":"43:2","id":"CAC7FE8E-9018-4E6F-A6C5-96D53137F7A3","changes":[{"rev":"2-bf1130659b9c6969bce29c724b743135"}]}
,{"seq":"43:20","id":"EBBDC0EB-8389-4A5E-8568-26CC3AAA187B","changes":[{"rev":"2-4b1da782d32f9dbf1ae3f55835a5870c"}]}
,{"seq":"43:31","id":"DAB33721-AEBD-486A-B65D-4A799D0828F1","changes":[{"rev":"2-0794c0a674306e8a27688872fe05f210"}]}
,{"seq":43,"id":"C5DA6F23-1E9D-4110-8FB3-E5CB7DA3086D","changes":[{"rev":"1-189f
@tleyden
tleyden / gist:5873c480a6c574be3423
Created February 3, 2015 22:12
call to ViewCustom
2015/02/03 14:09:57 go-couchbase: call to ViewCustom("sync_gateway", "access") in github.com/couchbaselabs/sync_gateway/db.(*DatabaseContext).ComputeChannelsForPrincipal took 519.222968ms
2015/02/03 14:10:30 go-couchbase: call to ViewCustom("sync_gateway", "access") in github.com/couchbaselabs/sync_gateway/db.(*DatabaseContext).ComputeChannelsForPrincipal took 530.825028ms
2015/02/03 14:10:30 go-couchbase: call to ViewCustom("sync_gateway", "access") in github.com/couchbaselabs/sync_gateway/db.(*DatabaseContext).ComputeChannelsForPrincipal took 532.343884ms
2015/02/03 14:10:30 go-couchbase: call to ViewCustom("sync_gateway", "access") in github.com/couchbaselabs/sync_gateway/db.(*DatabaseContext).ComputeChannelsForPrincipal took 530.857592ms
2015/02/03 14:10:30 go-couchbase: call to ViewCustom("sync_gateway", "access") in github.com/couchbaselabs/sync_gateway/db.(*DatabaseContext).ComputeChannelsForPrincipal took 531.198ms
2015/02/03 14:10:30 go-couchbase: call to ViewCustom("sync_gateway", "access") in githu