Hi All,
I'm trying to deploy with Ansible an haproxy.cfg config that will
automatically render to the bellow :
#/etc/haproxy.cfg
"""
nbproc 11
cpu-map 1 0
cpu-map 2 1
cpu-map 3 2
cpu-map 4 3
cpu-map 5 4
cpu-map 6 5
cpu-map 7 6
cpu-map 8 7
cpu-map 9 8
cpu-map 10 9
cpu-map 11 10
"""
This will use all system CPU cores but leave 1 free to the operating
system. I know I can use ansible_processor_vcpus
fact to get the number of cores but I'm having trouble regarding the logic
of the "cpu-map" lines..
Any ideas ?
Regards,
N.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/aaaec67e-1f1c-4a61-a5a7-02e3650e3d1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.