cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [cloudstack] weizhouapache commented on a change in pull request #3737: Add missing HA config keys
Date Tue, 03 Dec 2019 13:27:56 GMT
weizhouapache commented on a change in pull request #3737: Add missing HA config keys

 File path: engine/components-api/src/main/java/com/cloud/ha/
 @@ -16,18 +16,36 @@
 // under the License.
-import java.util.List;
+import static java.lang.String.valueOf;
+import org.apache.cloudstack.framework.config.ConfigKey;
+import java.util.List;
  * HighAvailabilityManager checks to make sure the VMs are running fine.
 public interface HighAvailabilityManager extends Manager {
+    ConfigKey<Integer> TimeBetweenCleanup = new ConfigKey<>("Advanced", Integer.class,
+        "time.between.cleanup", valueOf(3600 * 24), "Time in milliseconds to wait before
the cleanup thread runs.",
+        false, null);
+    ConfigKey<Integer> MaxRetries = new ConfigKey<>("Advanced", Integer.class,
+        valueOf(5), "Number of times to retry start.", false, null);
+    ConfigKey<Integer> TimeToSleep = new ConfigKey<>("Advanced", Integer.class,
+        valueOf(60 * 1000), "Time in seconds to sleep if no work items are found.", false,
+    ConfigKey<Integer> TimeBetweenFailures = new ConfigKey<>("Advanced", Integer.class,
+        "time.between.failures", valueOf(3600 * 1000), "Time in milliseconds before try to
cleanup all the VMs"
+        + " which are registered for the HA event that were successful and are now ready
to be purged.", false, null);
 Review comment:
   the value should be "3600" seconds, and "seconds" in description.
   Otherwise, you have to change line 855 in

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message