The following processes participate in Citrix ADM HA operations:
/usr/local/bin/python /mps/mas_hb_monit.py
This process is run by both nodes. It is responsible for sending and receiving heartbeats and healthchecks. By default, it uses UDP port 5005.
The configuration file for this process is: /mpsconfig/mas_hb_monit.conf
The log file for this process: /var/mps/mas_hb_monit.py.log
If the configuration file does not exist or is corrupted – the process will not start.
postgres: mpsroot mpsdb 127.0.0.1(nnnnnn) idle (postgres)Primary only runs the following processes (please note that those are examples, so the exact outputs may be slightly different):
postgres: wal writer process (postgres) postgres: wal sender process masrepuser ip_of_standby_ha_node(number) streaming AF/EC1D96C8 (postgres)
postgres: wal receiver process streaming 97/C4BAF798 (postgres)
"config_parameters": { "app_failover_timeout": 180, "db_slave_conf_file": "/var/mps/db_pgsql/data/recovery.conf", "ha_conf_file": "/mpsconfig/cluster.conf", "ha_recovery_time": 300, "healthcheck_frequency": 10, "heartbeat_frequency": 1, "node_failover_timeout": 180, "peer_ip": "192.168.200.212", "peer_port": 5005, "stay_as_secondary": "false", "virtual_ip_alias": "192.168.200.213", "wal_file_sync_lag": 10, "wal_xlog_poll_interval": 300
2019-06-03 10:20:05:receiveHeartbeat:312: [DEBUG] Received proc health status. Sender: '192.168.200.212', Status: {"readyForFailover": "T", "uptime": 879645, "H": "T", "P": "F", "role": "F", "V": "F"} 2019-06-03 10:20:05:monitorHeartbeat:535: [DEBUG] Last HB received was 0.0603921413422 seconds ago 2019-06-03 10:20:05:sendHeartbeat:179: [DEBUG] Current process status from cache: {u'mas_abdp': True, u'mas_afdecoder': True, u'postgres': True, u'mas_sysop': True, u'mas_config': True, u'mas_event': True, u'mas_perf': True, u'mas_service': True, u'mas_control': True, u'mas_agentmsgrouter': True, u'mas_afanalytics': True, u'mas_inventory': True} 2019-06-03 10:20:05:sendHeartbeat:265: [DEBUG] No information for interface: pflog0 2019-06-03 10:20:05:sendHeartbeat:265: [DEBUG] No information for interface: lo0 2019-06-03 10:20:05:sendHeartbeat:282: [DEBUG] Current status to send: {'readyForFailover': 'T', 'uptime': 879278, 'H': 'T', 'P': 'T', 'role': 'T', 'V': 'T'}
2019-05-27 19:47:37:monitorHeartbeat:535: [DEBUG] Last HB received was 0.869044065475 seconds ago 2019-05-27 19:47:37:sendHeartbeat:240: [DEBUG] Current process status from cache: {u'wal receiver process': True, u'postgres': True} 2019-05-27 19:47:37:sendHeartbeat:265: [DEBUG] No information for interface: pflog0 2019-05-27 19:47:37:sendHeartbeat:265: [DEBUG] No information for interface: lo0 2019-05-27 19:47:37:sendHeartbeat:265: [DEBUG] No information for interface: 1/1 2019-05-27 19:47:37:sendHeartbeat:282: [DEBUG] Current status to send: {'readyForFailover': 'T', 'uptime': 863495, 'H': 'T', 'P': 'F', 'role': 'F', 'V': 'F'} 2019-05-27 19:47:37:receiveHeartbeat:312: [DEBUG] Received proc health status. Sender: '192.168.200.211', Status: {"readyForFailover": "T", "uptime": 863128, "H": "T", "P": "T", "role": "T", "V": "T"}