ソースを参照

update 优化启动时间

18339543638 3 年 前
コミット
bc7295e8ac

+ 1 - 1
nb-service/web-service/src/main/java/com/nb/web/service/bus/hospital/HospitalManager.java

@@ -129,7 +129,7 @@ public class HospitalManager {
                     }
                 },
                 //启动间隔分开,避免数据库瞬时压力过大,最长有小时延迟
-                RandomUtil.randomInt(1,60),  Math.addExact(30, RandomUtil.randomInt(1,60)),TimeUnit.MINUTES);
+                RandomUtil.randomInt(1,60),  Math.addExact(6, RandomUtil.randomInt(1,12)),TimeUnit.HOURS);
     }
 
     private void init(ConfigStorageManager configStorageManager){