summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-07 22:31:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-07 22:31:57 +0900
commit938c4ca45300bef32517c0b694a955b44057332b (patch)
tree68bc9b5b4842bf47ad1765dd0aab26d75e60aab4 /server/grpc_server.go
parent4f000d78206a3ea926e616d6ea2b50f5d8b2e04c (diff)
grpc: disable tracing to avoid consuming massive memory
By default, grpc traces rpc events. GoBGP sends a load of data (e.g. showing global rib, injecting via mrt, etc). As a result, GoBGP consumes huge memory if you send/receive data via RPC. Let's disable tracing. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 73d0ba01..cff759ff 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -483,6 +483,7 @@ func (r *GrpcResponse) Err() error {
}
func NewGrpcServer(port int, bgpServerCh chan *GrpcRequest) *Server {
+ grpc.EnableTracing = false
grpcServer := grpc.NewServer()
server := &Server{
grpcServer: grpcServer,