Skip to content

Commit

Permalink
etcd client health
Browse files Browse the repository at this point in the history
  • Loading branch information
s.rajendran committed Dec 10, 2024
1 parent 39d9cd7 commit ff88f14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/v3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ func (c *Client) dial(creds grpccredentials.TransportCredentials, dopts ...grpc.
if c.authTokenBundle != nil {
opts = append(opts, grpc.WithPerRPCCredentials(c.authTokenBundle.PerRPCCredentials()))
}
serviceConfig := `{
"loadBalancingPolicy": "round_robin",
"healthCheckConfig": {
"serviceName": ""
}
}`
opts = append(opts, grpc.WithDefaultServiceConfig(serviceConfig))

opts = append(opts, c.cfg.DialOptions...)

Expand Down

0 comments on commit ff88f14

Please sign in to comment.