Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
micro_app
gk
Commits
19c93c73
Commit
19c93c73
authored
Aug 26, 2025
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉PV、UV统计的定时任务,全库扫描redis,导致资源耗尽
parent
32759551
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
CountJob.java
src/main/java/com/dlbridge/jadp/job/CountJob.java
+3
-4
No files found.
src/main/java/com/dlbridge/jadp/job/CountJob.java
View file @
19c93c73
...
...
@@ -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);
}
}
*/
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment