With ~400 hosts, polling takes a very long time with default values.
Dropping the connect timeout to 0.1s speeds things way up.
Signed-off-by: Zack Cerza <zack@redhat.com>
pcp_probe: true
+To tell a ``pcp_manager`` host to use a larger timeout when attempting to
+connect to hosts that it monitors (in seconds)::
+
+ pmcd_connect_timeout: 1
+
To tell a ``pcp_manager`` host to run PCP's various web UIs::
pcp_web: true
pcp_use_avahi: false
# Whether or not to probe the local network to auto-discover hosts
pcp_probe: false
+# PMCD_CONNECT_TIMEOUT in /etc/pcp/pmmgr/pmmgr.options
+pmcd_connect_timeout: "0.1"
## PCP Web UI options
# Set up the web UI
group: "{{ pcp_user }}"
recurse: yes
+# This greatly speeds up polling for hosts
+- name: Set PMCD_CONNECT_TIMEOUT in pmmgr.options
+ lineinfile:
+ dest: /etc/pcp/pmmgr/pmmgr.options
+ regexp: "^PMCD_CONNECT_TIMEOUT="
+ line: "PMCD_CONNECT_TIMEOUT={{ pmcd_connect_timeout }}"
+ register: pmmgr_options
+
- name: Restart pmmgr
service:
name: "{{ pmmgr_service }}"
install_pmmgr_apt|changed or
install_pmmgr_yum|changed or
target_host|changed or
- target_discovery|changed
+ target_discovery|changed or
+ pmmgr_options|changed