forked from etcd-io/etcd
-
Notifications
You must be signed in to change notification settings - Fork 1
grpc
Sam Batschelet edited this page Aug 25, 2018
·
6 revisions
etcd server flags:
--grpc-keepalive-min-time '5s' : Minimum duration interval that a client should wait before pinging server.
EnforcementPolicy is used to set keepalive enforcement policy on the server-side.
// Server will close connection with a client that violates this policy.
type EnforcementPolicy struct {
// MinTime is the minimum amount of time a client should wait before sending a keepalive ping.
MinTime time.Duration // The current default value is 5 minutes.
// If true, server expects keepalive pings even when there are no active streams(RPCs).
PermitWithoutStream bool // false by default.
}
--grpc-keepalive-interval
--grpc-keepalive-timeout