Note: This page is somewhat out of date, but the message formats are still useful.
Short Name |
|
|
t | type | The type of the message. |
src | node | The node originating this message |
ts | nodetime | This field is the time in the originating node when it was sent. It is a UNIX epoch timestamp, in hexadecimal. |
seq | - | The sequence number of the message, in hexadecimal. |
ld | loadavg | The load average as taken from /proc/loadavg. We currently send the entire line. |
ttl | - | The time to live for this packet. |
dest | dest | If this packet is intended for only node in the cluster, this field will be present and will indicate which node this message is intended for. This is an optional field. |
- | hbtime | The time at which the current message was received. Note that, by definition,this field never appears in a message sent over the wire. It is a pseudo-field added by the receiving system |
Short Name |
|
|
st | status | The status of the reporting node. This is currently either "dead", "up", or "active". When a system first comes up, it sets its status to "up". Once it knows its communication services are fully working, the status is set to "active". Status messages for "dead" nodes are artifically created by the system which detects the node as being dead. The message is made to appear as though it were coming from the dead machine ;-). |
info | reason | The reason why a node is marked dead. This is an optional field. It currently appears only when the status is set to dead. |
API clients normally only see T_STATUS messages for changes in status. The millions of boring "the status is the same" messages which heartbeat handles are filtered out and not presented to API clients.
Short Name |
|
|
ipaddr | ipaddr | The name of the resource group being requested. Note that this is not restricted to being an IP address, unlike what you might think from reading the name. |
Short Name | ||
ipaddr | ipaddr | The name of the resource group being requested. Note that this is not restricted to being an IP address, unlike what you might think from reading the name. |
ok | ok | This field has the value OK if the requested resource has been given up. The code currently assumes that the machine currently owning the resource will always give it up, hence this field is currently always set to OK. |
Short Name |
|
|
firstseq | firstseq | The lowest missing sequence number that corresponds to a missing packet. |
lastseq | lastseq | The highest missing sequence number. |
Short Name | ||
st | status | The status of the link as far as we can tell: "dead" (means no packets received on this link recently), or "up" meaning we can hear packets on this link. This field only relates to ability to receive packets, not to send them. |
Short Name | ||
reqtype | reqtype | The type of the API request (a message subtype). Possible values include: signon, signoff, setfilter, setsignal, nodelist, nodestatus, iflist, ifstatus. |
from_id | from_id | Originating client identification |
to_id | to_id | Destination client identification |
pid | pid | Client process ID |
fmask | fmask | Filter mask for setfilter API request |
signal | signal | signal for setsignal API request |
Short Name | ||
result | result | (F_APIRESULT) API result code. Possible values are "OK", "fail", "badreq" and "ok/more". |
node | node | node for nodelist API response |
nodelist-end | nodelist-end | End of nodelist API response field. |
ifname | ifname | interface for iflist API response |
iflist-end | iflist-end | End of interface list API response field. |
Short Name | ||
node | node | The name of the node which was reset |
result | result | "OK" if the Stonith operation succeeded, or "bad" if it didn't. |
Short Name | rsc_hold | rsc_hold |
The rsc_hold field declares what resources the current
node holds.
The possible values of the rsc_hold field in the message are:
|
isstable | isstable | TRUE/FALSE falue for whether we consider ourselves stable or are in the middle of negotiating resources, etc. |
Please send comments on this document to me <alanr@unix.sh> or to the linux-ha mailing list.