mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9569: add router.aggregation.command.each.timeout to agent.properties (#1933)
This commit is contained in:
parent
03aca885ae
commit
7ed3179bd1
|
|
@ -152,3 +152,7 @@ hypervisor.type=kvm
|
|||
# kvmclock.disable=false
|
||||
# Some newer linux kernels are incapable of reliably migrating vms with kvmclock
|
||||
# This is a workaround for the bug, admin can set this to true per-host
|
||||
#
|
||||
#router.aggregation.command.each.timeout=600
|
||||
#timeout value for aggregation commands send to virtual router
|
||||
#
|
||||
|
|
|
|||
|
|
@ -283,7 +283,10 @@ public class VirtualRoutingResource {
|
|||
_port = NumbersUtil.parseInt(value, 3922);
|
||||
|
||||
value = (String)params.get("router.aggregation.command.each.timeout");
|
||||
_eachTimeout = Duration.standardSeconds(NumbersUtil.parseInt(value, 10));
|
||||
_eachTimeout = Duration.standardSeconds(NumbersUtil.parseInt(value, (int)VRScripts.VR_SCRIPT_EXEC_TIMEOUT.getStandardSeconds()));
|
||||
if (s_logger.isDebugEnabled()){
|
||||
s_logger.debug("The router.aggregation.command.each.timeout in seconds is set to " + _eachTimeout.getStandardSeconds());
|
||||
}
|
||||
|
||||
if (_vrDeployer == null) {
|
||||
throw new ConfigurationException("Unable to find the resource for VirtualRouterDeployer!");
|
||||
|
|
@ -387,8 +390,8 @@ public class VirtualRoutingResource {
|
|||
ScriptConfigItem scriptConfigItem = new ScriptConfigItem(VRScripts.VR_CFG, "-c " + VRScripts.CONFIG_CACHE_LOCATION + cfgFileName);
|
||||
// 120s is the minimal timeout
|
||||
Duration timeout = _eachTimeout.withDurationAdded(_eachTimeout.getStandardSeconds(), answerCounts);
|
||||
if (timeout.isShorterThan(VRScripts.VR_SCRIPT_EXEC_TIMEOUT)) {
|
||||
timeout = VRScripts.VR_SCRIPT_EXEC_TIMEOUT;
|
||||
if (s_logger.isDebugEnabled()){
|
||||
s_logger.debug("Aggregate action timeout in seconds is " + timeout.getStandardSeconds());
|
||||
}
|
||||
|
||||
ExecutionResult result = applyConfigToVR(cmd.getRouterAccessIp(), fileConfigItem);
|
||||
|
|
|
|||
|
|
@ -439,7 +439,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
|
|||
@Override
|
||||
protected void runInContext() {
|
||||
try {
|
||||
s_logger.debug("HostOutOfBandManagementStatsCollector is running...");
|
||||
s_logger.trace("HostOutOfBandManagementStatsCollector is running...");
|
||||
List<OutOfBandManagementVO> outOfBandManagementHosts = outOfBandManagementDao.findAllByManagementServer(ManagementServerNode.getManagementServerId());
|
||||
if (outOfBandManagementHosts == null) {
|
||||
return;
|
||||
|
|
@ -469,7 +469,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
|
|||
@Override
|
||||
protected void runInContext() {
|
||||
try {
|
||||
s_logger.debug("VmStatsCollector is running...");
|
||||
s_logger.trace("VmStatsCollector is running...");
|
||||
|
||||
SearchCriteria<HostVO> sc = _hostDao.createSearchCriteria();
|
||||
sc.addAnd("status", SearchCriteria.Op.EQ, Status.Up.toString());
|
||||
|
|
|
|||
Loading…
Reference in New Issue