类 DatabaseProperties.CacheId

java.lang.Object
top.tangyh.basic.database.properties.DatabaseProperties.DefaultId
top.tangyh.basic.database.properties.DatabaseProperties.CacheId
封闭类:
DatabaseProperties

public static class DatabaseProperties.CacheId extends DatabaseProperties.DefaultId
参数说明参考:https://github.com/baidu/uid-generator 长期运行:重启频率为12次/天, 那么配置成{"workerBits":23,"timeBits":31,"seqBits":9}时, 可支持28个节点以整体并发量14400 UID/s的速度持续运行68年 长期运行+集群数量少+并发稍高:{"workerBits":20,"timeBits":31,"seqBits":12}这样的配置可以68年,100W次重启,单机每秒4096个并发的情况 频繁重启:重启频率为24*12次/天, 那么配置成{"workerBits":27,"timeBits":30,"seqBits":6}时, 可支持37个节点以整体并发量2400 UID/s的速度持续运行34年.
  • 构造器详细资料

    • CacheId

      public CacheId()