I was trying to utilize all my cpu cores for confd, according to the user guide. So the server is started with --smp 4 because my computer have 4 cores. What I expected is to utilize more than one cpu core to handle traffic. however I can only observer maximum “100%” of cpu, which means one cpu is used.
When ConfD is started the number of cores utilized is the number of cores that the CPU has. The ConfD 7.x --smp flag allows you to limit the number of cores to fewer than the maximum number of cores.
ConfD will balance the load when for example reading data over northbound interfaces, e.g. NETCONF, RESTCONF, CLI, etc.
For example, the ConfD CDB and DP API work cannot be handled by more than one core.
What type of work are you looking to balance across cores?
Ok, The CDB API work will not be load balanced across cores.
A write transaction from a northbound interface, such as a NETCONF , will load balance the reading done as part of the transaction, but writing to the DB will not be load balanced across multiple cores either