mirror of https://github.com/apache/cloudstack.git
Merge e1025a9095 into bce3e54a7e
This commit is contained in:
commit
6037a1532e
|
|
@ -3560,7 +3560,8 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
|
|||
|
||||
final List<Long> networkIds = _networksDao.findNetworksToGarbageCollect();
|
||||
final int netGcWait = NumbersUtil.parseInt(_configDao.getValue(NetworkGcWait.key()), 60);
|
||||
logger.info("NetworkGarbageCollector uses '{}' seconds for GC interval.", netGcWait);
|
||||
final int netGcInterval = NumbersUtil.parseInt(_configDao.getValue(NetworkGcInterval.key()), 60);
|
||||
logger.info("NetworkGarbageCollector uses '{}' seconds for GC wait and '{}' seconds for GC interval.", netGcWait, netGcInterval);
|
||||
|
||||
for (final Long networkId : networkIds) {
|
||||
if (!_networkModel.isNetworkReadyForGc(networkId)) {
|
||||
|
|
@ -4884,7 +4885,7 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
|
|||
public static final ConfigKey<Integer> NetworkGcWait = new ConfigKey<Integer>(Integer.class, "network.gc.wait", "Advanced", "600",
|
||||
"Time (in seconds) to wait before shutting down a network that's not in used", false, Scope.Global, null);
|
||||
public static final ConfigKey<Integer> NetworkGcInterval = new ConfigKey<Integer>(Integer.class, "network.gc.interval", "Advanced", "600",
|
||||
"Seconds to wait before checking for networks to shutdown", true, Scope.Global, null);
|
||||
"Seconds to wait before checking for networks to shutdown", false, Scope.Global, null);
|
||||
|
||||
@Override
|
||||
public ConfigKey<?>[] getConfigKeys() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue