weizhouapache commented on a change in pull request #3737: Add missing HA config keys URL: https://github.com/apache/cloudstack/pull/3737#discussion_r353175188
########## File path: engine/components-api/src/main/java/com/cloud/ha/HighAvailabilityManager.java ########## @@ -16,18 +16,36 @@ // under the License. package com.cloud.ha; -import java.util.List; +import static java.lang.String.valueOf; import com.cloud.deploy.DeploymentPlanner; import com.cloud.host.HostVO; import com.cloud.host.Status; import com.cloud.utils.component.Manager; import com.cloud.vm.VMInstanceVO; +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, "max.retries", + valueOf(5), "Number of times to retry start.", false, null); + + ConfigKey<Integer> TimeToSleep = new ConfigKey<>("Advanced", Integer.class, "time.to.sleep", + valueOf(60 * 1000), "Time in seconds to sleep if no work items are found.", false, null); Review comment: the value should be "60" seconds ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services