renamed storage.pool.host.connect.workers

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2024-10-21 17:04:03 +05:30
parent f6c16d9cfc
commit eaf17ddbb9
2 changed files with 4 additions and 4 deletions

View File

@ -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);
/**

View File

@ -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
};
}