We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前发送RPC的时候每有一个其他节点都是猛起一个线程,一直等待RPC处理直到返回。 这样的话是不是不优雅, 1.对于起线程也许考虑更好的方式,可能是线程池。 2.对于RPC,也许设置一个超时返回时间比较合适。
参考: braft库 and so on.
braft
注意:要求加入的线程池需要有超时策略,即超时不阻塞。 而定时时间也是一个值得考量
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前发送RPC的时候每有一个其他节点都是猛起一个线程,一直等待RPC处理直到返回。
这样的话是不是不优雅,
1.对于起线程也许考虑更好的方式,可能是线程池。
2.对于RPC,也许设置一个超时返回时间比较合适。
参考:
braft
库 and so on.注意:要求加入的线程池需要有超时策略,即超时不阻塞。
而定时时间也是一个值得考量
The text was updated successfully, but these errors were encountered: