INNER CODE UNIT · Go
main
hb-chen/micro-starter · benchmark/_backup/micro_mclient.go:30
func main() {
flag.Parse()
n := *concurrency
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,