Enable connection pooling and selector caching by default
This commit is contained in:
parent
53554d98cd
commit
8fd8d9bd35
@ -70,7 +70,8 @@ var (
|
|||||||
cli.IntFlag{
|
cli.IntFlag{
|
||||||
Name: "client_pool_size",
|
Name: "client_pool_size",
|
||||||
EnvVar: "MICRO_CLIENT_POOL_SIZE",
|
EnvVar: "MICRO_CLIENT_POOL_SIZE",
|
||||||
Usage: "Sets the client connection pool size. Default: 0",
|
Usage: "Sets the client connection pool size. Default: 1",
|
||||||
|
Value: 1,
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "client_pool_ttl",
|
Name: "client_pool_ttl",
|
||||||
@ -132,6 +133,7 @@ var (
|
|||||||
Name: "selector",
|
Name: "selector",
|
||||||
EnvVar: "MICRO_SELECTOR",
|
EnvVar: "MICRO_SELECTOR",
|
||||||
Usage: "Selector used to pick nodes for querying",
|
Usage: "Selector used to pick nodes for querying",
|
||||||
|
Value: "cache",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "server",
|
Name: "server",
|
||||||
@ -181,7 +183,7 @@ var (
|
|||||||
defaultServer = "rpc"
|
defaultServer = "rpc"
|
||||||
defaultBroker = "http"
|
defaultBroker = "http"
|
||||||
defaultRegistry = "consul"
|
defaultRegistry = "consul"
|
||||||
defaultSelector = "default"
|
defaultSelector = "cache"
|
||||||
defaultTransport = "http"
|
defaultTransport = "http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user