Optimize registration parameters 98/140398/1
authorhalil.cakal <halil.cakal@est.tech>
Fri, 7 Mar 2025 10:24:41 +0000 (10:24 +0000)
committerhalil.cakal <halil.cakal@est.tech>
Fri, 7 Mar 2025 10:24:46 +0000 (10:24 +0000)
- change internal batch size from 100 to 300
- change input batch size from 100 to 2000 in k6 tests

Issue-ID: CPS-2686

Change-Id: If9645facaee6c0d745a1e9dd12962a27e110f787
Signed-off-by: halil.cakal <halil.cakal@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/CmHandleRegistrationService.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/InventoryPersistenceImpl.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncWatchdog.java
k6-tests/ncmp/common/utils.js

index 75c52f3..ea8c3ca 100644 (file)
@@ -71,7 +71,7 @@ import org.springframework.stereotype.Service;
 @RequiredArgsConstructor
 public class CmHandleRegistrationService {
 
-    private static final int DELETE_BATCH_SIZE = 100;
+    private static final int DELETE_BATCH_SIZE = 300;
 
     private final CmHandleRegistrationServicePropertyHandler cmHandleRegistrationServicePropertyHandler;
     private final InventoryPersistence inventoryPersistence;
index e145c62..9240817 100644 (file)
@@ -59,7 +59,7 @@ import org.springframework.stereotype.Component;
 @Component
 public class InventoryPersistenceImpl extends NcmpPersistenceImpl implements InventoryPersistence {
 
-    private static final int CMHANDLE_BATCH_SIZE = 100;
+    private static final int CMHANDLE_BATCH_SIZE = 300;
 
     private final CpsModuleService cpsModuleService;
     private final CpsValidator cpsValidator;
index 6eefedb..8c9ec03 100644 (file)
@@ -44,7 +44,7 @@ public class ModuleSyncWatchdog {
     private final ModuleSyncTasks moduleSyncTasks;
     private final IMap<String, String> cpsAndNcmpLock;
 
-    private static final int MODULE_SYNC_BATCH_SIZE = 100;
+    private static final int MODULE_SYNC_BATCH_SIZE = 300;
     private static final String VALUE_FOR_HAZELCAST_IN_PROGRESS_MAP = "Started";
 
     /**
index ee3e9c7..57ab2ea 100644 (file)
@@ -27,7 +27,7 @@ export const DMI_PLUGIN_URL = testConfig.hosts.dmiStubUrl;
 export const CONTAINER_UP_TIME_IN_SECONDS = testConfig.hosts.containerUpTimeInSeconds;
 export const LEGACY_BATCH_TOPIC_NAME = 'legacy_batch_topic';
 export const TOTAL_CM_HANDLES = 50000;
-export const REGISTRATION_BATCH_SIZE = 100;
+export const REGISTRATION_BATCH_SIZE = 2000;
 export const READ_DATA_FOR_CM_HANDLE_DELAY_MS = 300; // must have same value as in docker-compose.yml
 export const WRITE_DATA_FOR_CM_HANDLE_DELAY_MS = 670; // must have same value as in docker-compose.yml
 export const CONTENT_TYPE_JSON_PARAM = {'Content-Type': 'application/json'};