Skip to content

Commit

Permalink
Update the default keep alive params for the grpc client (#20)
Browse files Browse the repository at this point in the history
* Update the default keep alive params for the grpc client
  • Loading branch information
dhurley authored Aug 22, 2022
1 parent bcb8b79 commit baf3723
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions sdk/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ To run the server example from this context:
```
go run server.go
INFO[0000] http listening at 54790
INFO[0000] grpc listening at 54789
INFO[0000] http listening
INFO[0000] grpc listening
```

The above command should show the following output in the application:
INFO[0000] http listening at 54790
INFO[0000] grpc listening at 54789
INFO[0000] http listening
INFO[0000] grpc listening

Configuring the Agent to run against the example server
### Agent Settings
Expand Down
2 changes: 1 addition & 1 deletion sdk/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var (
grpc.WithStreamInterceptor(grpc_retry.StreamClientInterceptor()),
grpc.WithUnaryInterceptor(grpc_retry.UnaryClientInterceptor()),
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: 10 * time.Second,
Time: 120 * time.Second,
Timeout: 60 * time.Second,
PermitWithoutStream: true,
}),
Expand Down
2 changes: 1 addition & 1 deletion src/core/metrics/sources/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (c *CPUTimes) Collect(ctx context.Context, wg *sync.WaitGroup, m chan<- *pr

if err != nil {
// linux impl returns zero length without error
log.Errorf("Failed to get CPU metrics %v", err)
log.Warnf("Error occurred getting CPU metrics, %v", err)
return
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/nginx/agent/sdk/v2/grpc/grpc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit baf3723

Please sign in to comment.