You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (hostLbCheckExecutor != null && !hostLbCheckExecutor.isShutdown()) {
459
+
logger.info("Shutting down the preferred host checker task {}", name);
459
460
hostLbCheckExecutor.shutdown();
460
461
try {
461
462
if (!hostLbCheckExecutor.awaitTermination(1, TimeUnit.SECONDS)) {
462
463
hostLbCheckExecutor.shutdownNow();
463
464
}
464
465
} catch (InterruptedExceptione) {
465
-
logger.debug("Forcing {} shutdown as it did not shutdown in the desired time due to: {}",
466
+
logger.debug("Forcing the preferred host checker task {} shutdown as it did not shutdown in the desired time due to: {}",
466
467
name, e.getMessage());
467
468
hostLbCheckExecutor.shutdownNow();
468
469
}
469
470
}
470
471
if (checkInterval > 0L) {
471
-
logger.info("Scheduling preferred host task with host.lb.interval={}ms", checkInterval);
472
+
if ("shuffle".equalsIgnoreCase(lbAlgorithm)) {
473
+
logger.info("Scheduling the preferred host checker task to trigger once (to apply lb algorithm '{}') after host.lb.interval={} ms", lbAlgorithm, checkInterval);
Copy file name to clipboardExpand all lines: api/src/main/java/com/cloud/kubernetes/cluster/KubernetesCluster.java
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ enum Event {
44
44
AutoscaleRequested,
45
45
ScaleUpRequested,
46
46
ScaleDownRequested,
47
+
AddNodeRequested,
48
+
RemoveNodeRequested,
47
49
UpgradeRequested,
48
50
OperationSucceeded,
49
51
OperationFailed,
@@ -59,6 +61,8 @@ enum State {
59
61
Stopped("All resources for the Kubernetes cluster are destroyed, Kubernetes cluster may still have ephemeral resource like persistent volumes provisioned"),
60
62
Scaling("Transient state in which resources are either getting scaled up/down"),
61
63
Upgrading("Transient state in which cluster is getting upgraded"),
64
+
Importing("Transient state in which additional nodes are added as worker nodes to a cluster"),
65
+
RemovingNodes("Transient state in which additional nodes are removed from a cluster"),
62
66
Alert("State to represent Kubernetes clusters which are not in expected desired state (operationally in active control place, stopped cluster VM's etc)."),
63
67
Recovering("State in which Kubernetes cluster is recovering from alert state"),
64
68
Destroyed("End state of Kubernetes cluster in which all resources are destroyed, cluster will not be usable further"),
0 commit comments