aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/MaintenanceTransitionConstraint.java
blob: e6d9ca92f124f58574534a9a2c4a2f0c43e51305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core;

/**
 * Implementations of this interface add constraints to when a node with
 * pending global merges may be implicitly transitioned to Maintenance
 * state in the default bucket space. This is to avoid flip-flopping nodes
 * between being available and in maintenance when merge statistics
 * change in a running system.
 */
public interface MaintenanceTransitionConstraint {

    boolean maintenanceTransitionAllowed(int contentNodeIndex);

}