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
序号 2的9次方 = 512
workid数 2的23次方 = 8388608
重启次数 68 乘上 365 乘上 12 天 = 297840
应用数 节点 除以 重启次数 = 8388608 / 297840 = 28
并发 28 乘上 512 = 14336
这个算的思路是对的吗?
The text was updated successfully, but these errors were encountered:
6哇,狗子
Sorry, something went wrong.
因为节点采取用完即弃的WorkerIdAssigner策略,所以总共可以重启的次数是2的23次方,即8388608。timeBits是31位,(2^31-1)/(3600x24x365) 约是68年。1个节点68年的重启次数是 68x365x12 = 297840,8388608/297840约是28,28的意思就是可支持28个节点68年里每天重启12次。那么每秒可提供的id数量就是 2^9*28=14336
No branches or pull requests
序号 2的9次方 = 512
workid数 2的23次方 = 8388608
重启次数 68 乘上 365 乘上 12 天 = 297840
应用数 节点 除以 重启次数 = 8388608 / 297840 = 28
并发 28 乘上 512 = 14336
这个算的思路是对的吗?
The text was updated successfully, but these errors were encountered: