CMAP_KEYS(8) | Corosync Cluster Engine Programmer's Manual | CMAP_KEYS(8) |
cmap_keys - Overview of keys stored in the Configuration Map
There are 3 main types of keys stored in CMAP:
* Mapping of values stored in the config file.
* Runtime statistics.
* Other user created values.
In this man page, wild-cards have the usual meaning.
These keys are in the icmap (default) map
Local node position is stored in local_node_pos key (RO), so it's easy to find out nodeid/ring addresses of the local node directly from cmap.
config_version Config version of the member node.
recovery Recovery policy of the process. Can be one of quit or restart.
poll_period Value passed in sam_initialize as a time_interval.
last_updated Last time SAM received a heartbeat from the client.
state State of the client. Can be one of failed, stopped, running and waiting for quorum.
These keys are in the stats map. All keys in this map are read-only. Modification tracking of individual keys is supported in the stats map, but not prefixes. Add/Delete operations are supported on prefixes though so you can track for new ipc connections or knet interfaces.
commit_entered Number of times the processor entered COMMIT state.
commit_token_lost Number of times the processor lost token in COMMIT state.
consensus_timeouts How many times the processor timed out forming a consensus about membership.
continuous_gather How many times the processor was not able to reach consensus.
firewall_enabled_or_nic_failure Set to 1 when processor was not able to reach consensus for long time. The usual reason is a badly configured firewall or connection failure.
gather_entered Number of times the processor entered GATHER state.
gather_token_lost Number of times the processor lost token in GATHER state.
mcast_retx Number of retransmitted messages.
mcast_rx Number of received multicast messages.
mcast_tx Number of transmitted multicast messages.
memb_commit_token_rx Number of received commit tokens.
memb_commit_token_tx Number of transmitted commit tokens.
memb_join_rx Number of received join messages.
memb_join_tx Number of transmitted join messages.
memb_merge_detect_rx Number of received member merge messages.
memb_merge_detect_tx Number of transmitted member merge messages.
orf_token_rx Number of received orf tokens.
orf_token_tx Number of transmitted orf tokens.
recovery_entered Number of times the processor entered recovery.
recovery_token_lost Number of times the token was lost in recovery state.
rx_msg_dropped Number of received messages which were dropped because they were not expected (as example multicast message in commit state).
token_hold_cancel_rx Number of received token hold cancel messages.
token_hold_cancel_tx Number of transmitted token hold cancel messages.
mtt_rx_token Mean transit time of token in milliseconds. In other words, time between two consecutive token receives.
avg_token_workload Average time in milliseconds of holding time of token on the current processor.
avg_backlog_calc Average number of not yet sent messages on the current processor.
connected Whether the link is connected or not
up_count Number of times this link has changed state to UP
down_count Number of times this link has changed state to DOWN
latency_ave / latency_max / latency_max Calculated latencies of this link. Note that if there has been no traffic on the link then latency_min will show a very large number.
latency_samples The number of samples used to calculate the latency figures, so you have some idea of their precision.
rx_data_packets / tx_data_packets The number of packets sent/received on this link
rx_data_bytes / tx_data_bytes The number of bytes sent/received on this link
rx_pmtu_packets / tx_pmtu_packets The number of packets sent/received by the PMTUd subsystem
rx_pmtu_bytes / tx_pmtu_bytes The number of bytes sent/received by the PMTUd subsystem
rx_ping_packets / tx_ping_packets The number of packets sent/received as pings
rx_ping_bytes / tx_ping_bytes The number of bytes sent/received as pings
rx_pong_packets / tx_pong_packets The number of packets sent/received as pongs
rx_pong_bytes / tx_pong_bytes The number of bytes sent/received as pongs
rx_total_packets / tx_total_packets The total number of packets sent/received. The aggregate of all of the above packet stats
rx_total_bytes / tx_total_bytes The total number of bytes sent/received. The aggregate of all of the above bytes stats
tx_data_retries / tx_pmtu_retries / tx_ping_retries / tx_pong_retries / tx_total_retries Number of times a transmit operation had to be retried due to the socket returning EAGAIN
Typical keys in this prefix are:
proc_name process name of connected process (unavailable on some platforms)
dispatched number of dispatched messages.
invalid_request number of requests made by IPC which are invalid (calling non-existing call, ...).
name contains short name of the IPC connection (unavailable on some platforms).
overload is number of requests which were not processed because of overload.
queue_size contains the number of messages in the queue waiting for send.
recv_retries is the total number of interrupted receives.
requests contains the number of requests made by IPC.
responses is the number of responses sent to the IPC client.
send_retries contains the total number of interrupted sends.
service_id contains the ID of service which the IPC is connected to.
totem Clears the pg & srp totem stats.
knet Clears the knet stats
ipc Clears the ipc stats
all Clears all of the above stats
Is the same as in the configuration file. eg: to add UID 500 use
# corosync-cmapctl -s uidgid.uid.500 u8 1
GID is similar, so to add a GID use
# corosync-cmapctl -s uidgid.gid.500 u8 1
For removal of permissions, simply delete the key
# corosync-cmapctl -d uidgid.gid.500
2018-10-08 | corosync Man Page |