neutron_lib.utils.host module

neutron_lib.utils.host.cpu_count()

Get the system CPU count.

Returns:

The number of CPUs on the system as an int. If there’s an issue fetching the CPU count on the system, a default value of 1 is returned.