INNER CODE UNIT · Go

main

hb-chen/micro-starter · benchmark/_backup/micro_client.go:29

func main() {
	flag.Parse()
	n := *concurrency
	m := *total / n

	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)
	// log.Logf("message size: %d bytes\n\n", len(b))

	var wg sync.WaitGroup

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…