Commit 19c93c73 authored by Administrator's avatar Administrator

去掉PV、UV统计的定时任务,全库扫描redis,导致资源耗尽

parent 32759551
......@@ -55,9 +55,8 @@ public class CountJob {
return "micro_banner_hash:"+cmptId+":"+id+":"+ CountJob.KEY_DATE;
}
@Scheduled(cron = "0 0 0 */1 * ?")
//@Scheduled(fixedRate = 2*60*1000)
public void job() {
// @Scheduled(cron = "0 0 0 */1 * ?")
/*public void job() {
JedisClusterConnection clusterConnection = (JedisClusterConnection)redisTemplate.getConnectionFactory().getClusterConnection();
Collection<JedisPool> values = clusterConnection.getNativeConnection().getClusterNodes().values();
log.info("cluster size : "+values.size());
......@@ -109,6 +108,6 @@ public class CountJob {
KEY_DATE = new SimpleDateFormat("yyyyMMdd").format(new Date());
log.info("重置日期:"+KEY_DATE);
}
}*/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment