08-27-2019 04:04 AM
Hi, team,
the devel.log belows:
<DEBUG> 27-Aug-2019::18:08:09.520 nso ncs[17242]: devel-c prepare request daemon id: 1 session id: 56055
<DEBUG> 27-Aug-2019::18:08:09.541 nso ncs[17242]: ncs commit progress db=running usid=2966 thandle=56055: ncs: device hk-huawei-ne40: calculating southbound diff...
<DEBUG> 27-Aug-2019::18:16:16.480 nso ncs[17242]: ncs commit progress db=running usid=2966 thandle=56055: ncs: device hk-huawei-ne40: calculating southbound diff ok
<DEBUG> 27-Aug-2019::18:16:16.483 nso ncs[17242]: ncs commit progress db=running usid=2966 thandle=56055: ncs: device hk-huawei-ne40: connect: device connect...
The NSO env runs in VM, which has 4 CPU cores and 8G memory. NED is huawei cli-ned. So, is it normal?
ps:
Can i config the nso's cpus and memory usage by ncs.conf?
08-27-2019 04:48 AM
The NSO env runs in VM, which has 4 CPU cores and 8G memory. NED is huawei cli-ned. So, is it normal?
Are you asking if it is normal for NSO to take 8 minutes to calculate southbound diff for a device? It depends on the amount of config in CDB, that NSO has to go through, to get the diff. Given that I have seen southbound diff times that are MUCH larger than 8 minutes, I would say it looks quite normal.
ps:
Can i config the nso's cpus and memory usage by ncs.conf?
No, it is not possible to control such resource usage from ncs.conf.
/Ram
08-27-2019 10:48 AM
To expand a little bit on what Ram is saying, the time you see depends heavily on the context and can very well take 8 minutes if you have the right (wrong) situation.
However, it is also a little bit too long for many use-cases and is a sign that it is worth making a deeper analysis of what is happening and looking at what diff is ultimately calculated. There might be ways to mitigate the situation, but if what you really want to do is something like change a single line in a huge ACL list on a CLI device or push a huge amount of config then those 8 minutes might be what is needed.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide