INNER CODE UNIT · Go

n

hb-chen/micro-starter · benchmark/_backup/micro_mclient.go:32

	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,
	})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…