INNER CODE UNIT · Go
m
hb-chen/micro-starter · benchmark/_backup/micro_mclient.go:33
m := *total / n
selected := -1
servers := strings.Split(*host, ",")
sNum := len(servers)
log.Logf("Servers: %+v\n\n", servers)
log.Logf("concurrency: %d\nrequests per client: %d\n\n", n, m)
args := prepareArgs()
// Hystrix配置
hystrix.ConfigureCommand("hello.Hello.Say", hystrix.CommandConfig{
MaxConcurrentRequests: hystrix.DefaultMaxConcurrent * 2,
})
// b, _ := proto.Marshal(args)