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 diff src/server/main.go | |
diff --git a/src/server/main.go b/src/server/main.go | |
index cec5daa..805f796 100644 | |
--- a/src/server/main.go | |
+++ b/src/server/main.go | |
@@ -4,7 +4,7 @@ import ( | |
"flag" | |
"fmt" | |
"grpcapi" | |
- "grpcapi/sender" |
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
panic: send on closed channel | |
goroutine 32069 [running]: | |
panic(0xb0b600, 0xc45dccb750) | |
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1 | |
github.com/DroiTaipei/mongo.getReadSess(0x7f6f7bc80000, 0x0, 0xc41fdf0e12) | |
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:85 +0xc1 | |
github.com/DroiTaipei/mongo.QueryAll(0xc4323bf400, 0x3, 0x4, 0xc4264496c0, 0x3d, 0xaad1c0, 0xc423d58d60, 0xb12900, 0xc4241e3d40, 0xb1290 | |
0, ...) | |
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/access.go:258 +0x5b |
acc 1
acc 2
acc 3
cpu
[memory available](http://10.10.20.60:30900/graph#%5B%7B%22range_input%22%3A%226h%22%2C%22end_input%22%3A%22%22%2C%22step_input%22%3A%22%22%2C%22stacked%22%3A%22%22%2C%22expr%22%3A%22(node_memory_MemFree%20%2B%20node_memory_Buffers%20%2B%20node_memory_Cached%7Bname%3D%5C%22node-exporter%5C%22%7D)%20%2F10
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 READY STATUS RESTARTS AGE | |
tpe-fu-memcached-master-rkggc 1/1 Running 1 106d | |
tpe-node-stat-collector-s16nx 1/1 Running 1 152d | |
sh-app-3c8umbzh-1972142799-v1831 2/2 Running 1 5d | |
sh-app-3q0umbzh-3443999981-g2gac 2/2 Running 1 5d | |
sh-app-lv3umbzh-3523626269-9rj14 2/2 Running 1 5d | |
sh-app-m49umbzh-2654029034-f285g 2/2 Running 1 5d | |
sh-app-marketold-3128978137-oxprb 1/1 Running 1 64d | |
tpe-inlake-domino-hello-36q2a 1/1 Running 1 98d | |
sh-app-5r4umbzh-3875490804-xijzu 3/3 Running 100 5d |
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
北京 workers 的 cpu 用量過去 6 小時沒有明顯的變化。 | |
https://goo.gl/i5GQ0e | |
流量變多比較明顯。 | |
https://goo.gl/NqOR9I | |
https://goo.gl/rTbRCg | |
tpe-go-buster 變多。 | |
https://goo.gl/NJnZCi | |
https://goo.gl/CjTl7Z |
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
// Use the protocol buffer compiler to generate client and server code. | |
// $ protoc --go_out=plugins=grpc:. mongo.proto | |
syntax = "proto3"; | |
package mongo; | |
service Mongo { | |
rpc echo(content) returns (content) {} | |
rpc entry(request) returns (response) {} |
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
package main | |
import ( | |
"flag" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" | |
pb "grpcapi/protobuf/mongo" | |
"log" | |
"os" | |
) |
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
上次分享 Bryan Cantrill 演講中,他用 'blades and sands' 形容傳統的企業架構。這個片語的意思有些難懂,嘗試的研究一下。 | |
演講中22秒的逐字稿。 | |
https://www.youtube.com/watch?v=xXWaECk9XqM#t=41m20s | |
On-prem computing doesn't necessarily mean blades and sands. And if... | |
What is blade or sand? Oh god bless you, let me preserve your innocence please. | |
Umm... That is so great. Umm... I love that and I'm not gonna... | |
I'm not gonna tell you about this filth that is these legacy enterprise architectures. | |
But that is not what on-prem computing has to mean. |