mirror of https://github.com/apache/cloudstack.git
renamed storage.pool.host.connect.workers
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
f6c16d9cfc
commit
eaf17ddbb9
|
|
@ -213,8 +213,8 @@ public interface StorageManager extends StorageService {
|
|||
"when resize a volume upto resize capacity disable threshold (pool.storage.allocated.resize.capacity.disablethreshold)",
|
||||
true, ConfigKey.Scope.Zone);
|
||||
|
||||
ConfigKey<Integer> PrimaryStorageHostConnectWorkers = new ConfigKey<>("Storage", Integer.class,
|
||||
"primary.storage.host.connect.workers", "1",
|
||||
ConfigKey<Integer> StoragePoolHostConnectWorkers = new ConfigKey<>("Storage", Integer.class,
|
||||
"storage.pool.host.connect.workers", "1",
|
||||
"Number of worker threads to be used to connect hosts to a primary storage", true);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1171,7 +1171,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
boolean handleStorageConflictException, boolean errorOnNoUpHost) throws CloudRuntimeException {
|
||||
CopyOnWriteArrayList<Long> poolHostIds = new CopyOnWriteArrayList<>();
|
||||
ExecutorService executorService = Executors.newFixedThreadPool(Math.max(1, Math.min(hostIds.size(),
|
||||
PrimaryStorageHostConnectWorkers.value())));
|
||||
StoragePoolHostConnectWorkers.value())));
|
||||
List<Future<Void>> futures = new ArrayList<>();
|
||||
AtomicBoolean conflictSeen = new AtomicBoolean(false);
|
||||
for (Long hostId : hostIds) {
|
||||
|
|
@ -3610,7 +3610,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
VmwareAllowParallelExecution,
|
||||
DataStoreDownloadFollowRedirects,
|
||||
AllowVolumeReSizeBeyondAllocation,
|
||||
PrimaryStorageHostConnectWorkers
|
||||
StoragePoolHostConnectWorkers
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue