aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-07-09 10:59:17 +0200
committerJon Marius Venstad <venstad@gmail.com>2021-07-09 10:59:17 +0200
commit446c647ab432eda9e600d99fd90ad18a407cce05 (patch)
tree744488b8d78a23cae34b6c223ce8eb9044230c07 /controller-server
parent4b5ca059eda0ab6f3c1fa0c718980d7a6e978288 (diff)
Increase history to 256 last runs in CD systems
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java
index d9d82b41e71..b622fc0bd75 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java
@@ -76,9 +76,9 @@ import static java.util.stream.Collectors.toUnmodifiableList;
*/
public class JobController {
- public static final int historyLength = 64;
public static final Duration maxHistoryAge = Duration.ofDays(60);
+ private final int historyLength;
private final Controller controller;
private final CuratorDb curator;
private final BufferedLogStore logs;
@@ -88,6 +88,7 @@ public class JobController {
private final AtomicReference<Consumer<Run>> runner = new AtomicReference<>(__ -> { });
public JobController(Controller controller) {
+ this.historyLength = controller.system().isCd() ? 256 : 64;
this.controller = controller;
this.curator = controller.curator();
this.logs = new BufferedLogStore(curator, controller.serviceRegistry().runDataStore());