A required prefix to identify that this is a string in the standard connection format.
username:password@
Optional. Authentication credentials. Username is a user name for authentication. Password is a password for authentication.
host[:port]
The hosts of etcd servers
/defaultPrefix
Optional. etcd prefix key, default '/'
?options
etcd clientv3 connect other configures
Connection Options
Component
Description
auto-sync-interval
AutoSyncInterval is the interval to update endpoints with its latest members. 0 disables auto-sync. By default auto-sync is disabled.
dial-timeout
DialTimeout is the timeout for failing to establish a connection.
dial-keep-alive-time
DialKeepAliveTime is the time after which client pings the server to see if transport is alive.
dial-keep-alive-timeout
DialKeepAliveTimeout is the time that the client waits for a response for the keep-alive probe. If the response is not received in this time, the connection is closed.
max-send-msg-size
MaxCallSendMsgSize is the client-side request send limit in bytes. If 0, it defaults to 2.0 MiB (2 * 1024 * 1024).
max-recv-msg-size
MaxCallRecvMsgSize is the client-side response receive limit.If 0, it defaults to "math.MaxInt32", because range response can easily exceed request send limits.