Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeepAlive方法性能问题 #9

Closed
renjingneng opened this issue Dec 30, 2020 · 2 comments
Closed

KeepAlive方法性能问题 #9

renjingneng opened this issue Dec 30, 2020 · 2 comments

Comments

@renjingneng
Copy link

	if _, err := cli.KeepAlive(context.TODO(), resp.ID); err != nil {
		return fmt.Errorf("grpclb: refresh service '%s' with ttl to clientv3 failed: %s", service, err.Error())
	}

cli.KeepAlive返回的<-chan *LeaseKeepAliveResponse 没有消费,会一直发送keep alive requests,虽然不影响功能但是影响性能

@wwcd
Copy link
Owner

wwcd commented Dec 30, 2020

不消费就是为了不断发心跳保活啊,性能我没有实测过,应该还好

@renjingneng
Copy link
Author

ok~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants