Ansible - procesor_count vs processor_cores vs processor_vcpus

I was puzzled by the server setup with the following facts:

"ansible_processor": [
    "GenuineIntel", 
    "Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz", 
    "GenuineIntel", 
    "Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz"
], 
"ansible_processor_cores": 1, 
"ansible_processor_count": 2, 
"ansible_processor_threads_per_core": 1, 
"ansible_processor_vcpus": 2, 

It seems that he correctly reports the number of processors, but on what should I base the number of my workers (threads)? I was sure that I would use ansible_processor_coresit, but it seems that it reports only one thing (1 - so!) Despite the message about two processors! How do you get the number of threads available for workflows?

+11
source share
1 answer

ansible_processor_vcpus .
/proc/cpuinfo ( ).

+12

Source: https://habr.com/ru/post/1654861/


All Articles