Added system memory/cpu and process mem/cpu information under NodeStatus hierarchy.
1. In current code, analytics, config and vrouter modules have duplicate code to send system cpu/mem info.
Moved the functionality to common codebase in nodemgr.
Now system cpu/mem info is send for all node types.
- NodeStatus >> system_mem_cpu_info
2. In current code, each process sends cpu/mem info individually.
Moved the functionality to common codebase in nodemgr to send cpu/mem info for all processes on the node.
- NodeStatus >> process_mem_cpu_info
3. Created new hierarchy under NodeStatus and added following fields for cpu info
sockets, cores_per_socket and threads_per_core.
These fields are sent only during nodemgr init for all node types.
- NodeStatus >> process_cpu_info
Obsolete hierarchy/duplicate code for the above will be deleted once UI moves to new hierarchy.
Reviewed: https:/ /review. opencontrail. org/20437 github. org/Juniper/ contrail- controller/ commit/ da7614fbc7dcbd6 52523543941e746 705e7336ef
Committed: http://
Submitter: Zuul
Branch: master
commit da7614fbc7dcbd6 52523543941e746 705e7336ef
Author: Santosh Gupta <email address hidden>
Date: Thu May 19 11:27:12 2016 -0700
Closes-Bug: 1467407
Added system memory/cpu and process mem/cpu information under NodeStatus hierarchy.
1. In current code, analytics, config and vrouter modules have duplicate code to send system cpu/mem info. mem_cpu_ info
Moved the functionality to common codebase in nodemgr.
Now system cpu/mem info is send for all node types.
- NodeStatus >> system_mem_cpu_info
2. In current code, each process sends cpu/mem info individually.
Moved the functionality to common codebase in nodemgr to send cpu/mem info for all processes on the node.
- NodeStatus >> process_
3. Created new hierarchy under NodeStatus and added following fields for cpu info
sockets, cores_per_socket and threads_per_core.
These fields are sent only during nodemgr init for all node types.
- NodeStatus >> process_cpu_info
Obsolete hierarchy/duplicate code for the above will be deleted once UI moves to new hierarchy.
Change-Id: Ib28f22eb855413 d88d928a26c4d50 2df9d975d2d