fix(性能测试): 修复性能测试部署多个节点时出现time sync 的问题

This commit is contained in:
CaptainB 2024-08-28 14:05:36 +08:00
parent 253194935e
commit b41e86aaa4
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class JmeterFileController {
try {
// 保存当前节点状态到redis
String reportIdKey = "jmeter_ready:" + reportId;
stringRedisTemplate.opsForHash().put(reportIdKey, resourceIndex, 1);
stringRedisTemplate.opsForHash().put(reportIdKey, reportId + "_" + resourceIndex, "1");
// 设置30分钟过期
stringRedisTemplate.expire(reportIdKey, 30 * 60, TimeUnit.SECONDS);
// 返回当前已经准备好的节点数量