Skip to content

Commit

Permalink
use config.GRPCClient.ConnectionPool.ResolveDNS
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
  • Loading branch information
kmrmt authored and actions-user committed Sep 9, 2020
1 parent a6c3d8f commit f31bd51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/tools/cli/loadtest/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ dataset: fashion-mnist
concurrency: 100
batch_size: 10
progress_duration: 3s
resolve_dns: false
addr: "localhost:8082"
client:
addrs: []
Expand All @@ -45,6 +44,8 @@ client:
max_retry_rpc_buffer_size: 0
max_send_msg_size: 0
wait_for_ready: true
connection_pool:
enable_dns_resolver: true
dial_option:
enable_backoff: false
initial_connection_window_size: 0
Expand Down
1 change: 0 additions & 1 deletion pkg/tools/cli/loadtest/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ type Data struct {
Concurrency int `json:"concurrency" yaml:"concurrency"`
BatchSize int `json:"batch_size" yaml:"batch_size"`
ProgressDuration string `json:"progress_duration" yaml:"progress_duration"`
ResolveDNS bool `json:"resolve_dns" yaml:"resolve_dns"`
Client *config.GRPCClient `json:"client" yaml:"client"`
}

Expand Down
1 change: 0 additions & 1 deletion pkg/tools/cli/loadtest/usecase/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func New(cfg *config.Data) (r runner.Runner, err error) {
cfg.Client.Opts(),
grpc.WithAddrs(cfg.Addr),
grpc.WithErrGroup(run.eg),
grpc.WithResolveDNS(cfg.ResolveDNS),
)
run.client = grpc.New(clientOpts...)

Expand Down

0 comments on commit f31bd51

Please sign in to comment.