Skip to content

Commit efa1561

Browse files
HA config dynamic flag changes and some improvements
1 parent d1e1aa5 commit efa1561

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

engine/components-api/src/main/java/com/cloud/ha/HighAvailabilityManager.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface HighAvailabilityManager extends Manager {
3939
"Force High-Availability to happen even if the VM says no.", true, Cluster);
4040

4141
ConfigKey<Integer> HAWorkers = new ConfigKey<>("Advanced", Integer.class, "ha.workers", "5",
42-
"The number of High-Availability worker threads.", true, Cluster);
42+
"The number of High-Availability worker threads.", false, Cluster);
4343

4444
ConfigKey<Integer> InvestigateRetryInterval = new ConfigKey<>("Advanced", Integer.class, "investigate.retry.interval",
4545
"60", "The time (in seconds) between VM pings when the agent is disconnected.", true, Cluster);
@@ -59,12 +59,6 @@ public interface HighAvailabilityManager extends Manager {
5959
+ "that were successful and is now ready to be purged from the database (table: op_ha_work).",
6060
true, Cluster);
6161

62-
ConfigKey<Integer> MaxRetries = new ConfigKey<>("Advanced", Integer.class, "max.retries",
63-
"5", "The number of times to try a restart for the different Work-Types: "
64-
+ "Migrating - VMs off of a host, Destroy - a VM, Stop - a VM for storage pool migration purposes,"
65-
+ " CheckStop - checks if a VM has been stopped, ForceStop - force a VM to stop even if the "
66-
+ "states don't allow it, Destroy - a VM and HA - restart a VM.", true, Cluster);
67-
6862
ConfigKey<Long> TimeToSleep = new ConfigKey<>("Advanced", Long.class, "time.to.sleep",
6963
"60", "The time in seconds to sleep before checking the database (table: op_ha_work) "
7064
+ "for new working types (Migration, Stop, CheckStop, ForceStop, Destroy and HA), if no work items are found.",
@@ -76,7 +70,7 @@ public interface HighAvailabilityManager extends Manager {
7670
true, Cluster);
7771

7872
ConfigKey<Boolean> KvmHAFenceHostIfHeartbeatFailsOnStorage = new ConfigKey<>("Advanced", Boolean.class, "kvm.ha.fence.on.storage.heartbeat.failure", "false",
79-
"Proceed fencing the host even the heartbeat failed for only one storage pool", false, ConfigKey.Scope.Zone);
73+
"Proceed fencing the host even the heartbeat failed for only one storage pool", true, ConfigKey.Scope.Zone);
8074

8175
enum WorkType {
8276
Migration, // Migrating VMs off of a host.

server/src/main/java/org/apache/cloudstack/ha/HAManager.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,43 +28,43 @@ public interface HAManager extends HAConfigManager {
2828
ConfigKey<Integer> MaxConcurrentHealthCheckOperations = new ConfigKey<>("Advanced", Integer.class,
2929
"ha.max.concurrent.health.check.operations",
3030
"50",
31-
"The number of concurrent health check operations per management server. This setting determines the size of the thread pool consuming the HEALTH CHECK queue.", true);
31+
"The number of concurrent health check operations per management server. This setting determines the size of the thread pool consuming the HEALTH CHECK queue.", false);
3232

3333
ConfigKey<Integer> MaxPendingHealthCheckOperations = new ConfigKey<>("Advanced", Integer.class,
3434
"ha.max.pending.health.check.operations",
3535
"5000",
36-
"The number of pending health check operations per management server. This setting determines the size of the HEALTH CHECK queue.", true);
36+
"The number of pending health check operations per management server. This setting determines the size of the HEALTH CHECK queue.", false);
3737

3838
ConfigKey<Integer> MaxConcurrentActivityCheckOperations = new ConfigKey<>("Advanced", Integer.class,
3939
"ha.max.concurrent.activity.check.operations",
4040
"25",
4141
"The number of concurrent activity check operations per management server. This setting determines the size of the thread pool consuming the ACTIVITY CHECK queue.",
42-
true);
42+
false);
4343

4444
ConfigKey<Integer> MaxPendingActivityCheckOperations = new ConfigKey<>("Advanced", Integer.class,
4545
"ha.max.pending.activity.check.operations",
4646
"2500",
47-
"The number of pending activity check operations per management server. This setting determines the size of the size of the ACTIVITY CHECK queue.", true);
47+
"The number of pending activity check operations per management server. This setting determines the size of the ACTIVITY CHECK queue.", false);
4848

4949
ConfigKey<Integer> MaxConcurrentRecoveryOperations = new ConfigKey<>("Advanced", Integer.class,
5050
"ha.max.concurrent.recovery.operations",
5151
"25",
52-
"The number of concurrent recovery operations per management server.", true);
52+
"The number of concurrent recovery operations per management server. This setting determines the size of the thread pool consuming the RECOVERY queue.", false);
5353

5454
ConfigKey<Integer> MaxPendingRecoveryOperations = new ConfigKey<>("Advanced", Integer.class,
5555
"ha.max.pending.recovery.operations",
5656
"2500",
57-
"The number of pending recovery operations per management server. This setting determines the size of the size of the RECOVERY queue.", true);
57+
"The number of pending recovery operations per management server. This setting determines the size of the RECOVERY queue.", false);
5858

5959
ConfigKey<Integer> MaxConcurrentFenceOperations = new ConfigKey<>("Advanced", Integer.class,
6060
"ha.max.concurrent.fence.operations",
6161
"25",
62-
"The number of concurrent fence operations per management server.", true);
62+
"The number of concurrent fence operations per management server. This setting determines the size of the thread pool consuming the FENCE queue.", false);
6363

6464
ConfigKey<Integer> MaxPendingFenceOperations = new ConfigKey<>("Advanced", Integer.class,
6565
"ha.max.pending.fence.operations",
6666
"2500",
67-
"The number of pending fence operations per management server. This setting determines the size of the size of the FENCE queue.", true);
67+
"The number of pending fence operations per management server. This setting determines the size of the FENCE queue.", false);
6868

6969
boolean transitionHAState(final HAConfig.Event event, final HAConfig haConfig);
7070

0 commit comments

Comments
 (0)