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

使用zookeeper作为注册中心时,超时策略如何配置? #307

Open
lexburner opened this issue Dec 2, 2016 · 1 comment
Open

Comments

@lexburner
Copy link

服务使用方需要调用服务提供方的一个比较耗时的操作,已知默认超时配置会报错。
There was an unexpected error (type=Internal Server Error, status=500). error_message: NettyResponseFuture request timeout: serverPort=192.168.0.231:6945 requestId=1552625239635001359 interface=jd.api.service.product.ProductService method=getCategorys(jd.api.request.product.CategorysEntity) cost=201, status: 503, error_code: 10003,r=null
应该如何配置才最科学?

@rayzhang0603
Copy link
Collaborator

一般根据server的平均处理时间和client端可以容忍的超时时间来设置basicreferer或者referer的requestTimeout属性,单位是ms。例如requestTimeout=2000

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