NFVO
NFVO copied to clipboard
[Suggestion] Launch process is slow (Initialize VDUs in parallel)
- Code is from AllocateresourceTask.java
- VDUs should be started in parallel (Unless they depend on each other). Each VDU should have independent initialization cycle. Failure of one VDU should not effect (abort) the initialization of other VDUs.
for (VirtualDeploymentUnit vdu : virtualNetworkFunctionRecord.getVdu()) {
List<Future<List<String>>> ids = new ArrayList<>();
VimInstance vimInstance = vims.get(vdu.getId());
if (vimInstance == null) {
throw new NullPointerException(
"Our algorithms are too complex, even for us, this is what abnormal IQ means :" + "(");
}
vimInstance = vimRepository.findFirstById(vimInstance.getId());
log.debug(
"Allocating VDU: "
+ vdu.getName()
+ " to vim instance: "
+ vimInstance.getName()
+ " - id: "
+ vimInstance.getId());
for (NFVImage image : vimInstance.getImages()) {
log.trace("Available image name: " + image.getName());
}
ids.add(
resourceManagement.allocate(
vdu, virtualNetworkFunctionRecord, vimInstance, userData, keys));
for (Future<List<String>> id : ids) {
id.get();
}
}
Hi,
I would like to change the content of this issue by splitting in two different.
- allocate vdu in parallel
- put vnfr to error if one / all vdu fail
so i will close this issue with regards to point 1 and i will open another one for what concerns point 2
if this ok? @mpauls ?
sounds fair
opened new one, @Rizwan-Qamar please follow the new one (#101). I will close this.
The fix was not working, need to reopen the enhancement