Skip to content

Instantly share code, notes, and snippets.

View Jun-5 pods
sh-app-zone-1002-754358727-1k1fz
Started: Mon, 05 Jun 2017 16:15:37 +0800
Finished: Mon, 05 Jun 2017 16:15:29 +0800
sh-app-zone-1002-754358727-drw8w
Started: Mon, 05 Jun 2017 16:15:29 +0800
Finished: Mon, 05 Jun 2017 16:15:21 +0800
sh-app-zone-1002-754358727-r9590
Started: Mon, 05 Jun 2017 16:15:30 +0800
Finished: Mon, 05 Jun 2017 16:15:24 +0800
sh-app-zone-1002-754358727-sjn36
@gosharplite
gosharplite / graph.md
Last active May 26, 2017
Prometheus 5-26 22:18
View graph.md

MEM graph
MEM 增長比較慢的 pods.
sh-app-zone-6978-1362485141-fdllx
sh-app-zone-6978-1362485141-15pcw

CPU graph
CPU 用量特別少的 pods.
sh-app-zone-6978-1362485141-tl7zh

@gosharplite
gosharplite / README.md
Last active Mar 15, 2017
owen-duck + Prometheus + Grafana
View README.md
View keybase.md

Keybase proof

I hereby claim:

  • I am gosharplite on github.
  • I am gosharplite (https://keybase.io/gosharplite) on keybase.
  • I have a public key whose fingerprint is 74D6 E3D8 83C0 5E78 BAC2 DF9C 2313 C6FA E1A3 1BE5

To claim this, I am signing this object:

View mongo func signature - req
BulkInsert (ctx droictx.Context, collection string, documents []interface{})
CollectionCount (ctx droictx.Context, collection string)
CreateCollection (ctx droictx.Context, collection string, info *mgo.CollectionInfo)
CreateIndex (ctx droictx.Context, collection string, key []string, sparse, unique bool, name string)
DBRun (ctx droictx.Context, cmd interface{}, result interface{})
DropCollection (ctx droictx.Context, collection string)
DropIndex (ctx droictx.Context, collection string, keys []string)
EnsureIndex (ctx droictx.Context, collection string, index mgo.Index)
GetCollectionNames (ctx droictx.Context)
Indexes (ctx droictx.Context, collection string)
View mongo api error
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a98c9]
goroutine 11174 [running]:
panic(0xb10d00, 0xc42000c0c0)
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1
github.com/DroiTaipei/mongo.getReadSess(0x7fd2ed085e10, 0x0, 0xc41fb81026, 0x0, 0xc42ad83850)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:99 +0x69
github.com/DroiTaipei/mongo.QueryAll(0xc4276a6a00, 0x3, 0x4, 0xc42ac42bc0, 0x3d, 0xab2360, 0xc4276a9b40, 0xb18180, 0xc428fdfad0, 0xb18180, ...)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/access.go:300 +0x5b
View mongo api error log
2016/11/15 18:25:19 mongos 10.128.112.181:7379 : connnections: 10
2016/11/15 18:25:19 mongos 10.128.112.181:7380 : connnections: 10
2016/11/16 11:16:44 mongos 10.128.112.181:7379 : connnections: 10
2016/11/16 11:16:44 mongos 10.128.112.181:7380 : connnections: 10
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a9259]
goroutine 273 [running]:
panic(0xb0fd00, 0xc42000c0c0)
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1
View mongo package error
Req: headers:<key:"X-Droi-AppID" value:"bf8umbzhigY-zYLSzOhEifAD91gTRXU2lQAAGsIK" > headers:<key:"_Id" value:"01e9d0188edee524cff7d101" > headers:<key:"body" value:"{\"db\": \"DroiObjectApi\", \"role\":\"56cea1d8c9922205b5bdfab7\", \"uid\":\"test\", \"pwd\":\"test\"}" > headers:<key:"collection" value:"DroiObjectApi" > headers:<key:"path" value:"unitest" > headers:<key:"role" value:"56cea1d8c9922205b5bdfab7" > headers:<key:"version" value:"1" >
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a93b9]
goroutine 18166 [running]:
panic(0xb0fd00, 0xc42000c0c0)
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1
github.com/DroiTaipei/mongo.getReadSess(0x7f761d80b960, 0x0, 0xc41fa2fd05)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:96 +0x69
github.com/DroiTaipei/mongo.QueryAll(0xc4278ecf80, 0x3, 0x4, 0xc42f435e40, 0x3d, 0xab1360, 0xc429597ea0, 0xb17180, 0xc42ba05e00, 0xb17180, ...)