#include <stdbool.h>
#include <stdint.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/ipc.h>
#include <crm/cluster.h>
Go to the source code of this file.
|
const char * | pcmk__cluster_get_xml_id (pcmk__node_status_t *node) |
|
char * | pcmk__cluster_node_name (uint32_t nodeid) |
|
const char * | pcmk__cluster_local_node_name (void) |
|
const char * | pcmk__node_name_from_uuid (const char *uuid) |
|
pcmk__node_status_t * | crm_update_peer_proc (const char *source, pcmk__node_status_t *peer, uint32_t flag, const char *status) |
|
pcmk__node_status_t * | pcmk__update_peer_state (const char *source, pcmk__node_status_t *node, const char *state, uint64_t membership) |
| Update a node's state and membership information.
|
|
void | pcmk__update_peer_expected (const char *source, pcmk__node_status_t *node, const char *expected) |
|
void | pcmk__reap_unseen_nodes (uint64_t ring_id) |
|
void | pcmk__corosync_quorum_connect (gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer)) |
|
bool | pcmk__cluster_send_message (const pcmk__node_status_t *node, enum pcmk_ipc_server service, const xmlNode *data) |
|
bool | pcmk__cluster_has_quorum (void) |
|
void | pcmk__cluster_init_node_caches (void) |
|
void | pcmk__cluster_destroy_node_caches (void) |
|
void | pcmk__cluster_set_autoreap (bool enable) |
|
void | pcmk__cluster_set_status_callback (void(*dispatch)(enum pcmk__node_update, pcmk__node_status_t *, const void *)) |
|
bool | pcmk__cluster_is_node_active (const pcmk__node_status_t *node) |
|
unsigned int | pcmk__cluster_num_active_nodes (void) |
|
unsigned int | pcmk__cluster_num_remote_nodes (void) |
|
pcmk__node_status_t * | pcmk__cluster_lookup_remote_node (const char *node_name) |
|
void | pcmk__cluster_forget_cluster_node (uint32_t id, const char *node_name) |
|
void | pcmk__cluster_forget_remote_node (const char *node_name) |
|
pcmk__node_status_t * | pcmk__search_node_caches (unsigned int id, const char *uname, const char *xml_id, uint32_t flags) |
|
void | pcmk__purge_node_from_cache (const char *node_name, uint32_t node_id) |
|
void | pcmk__refresh_node_caches_from_cib (xmlNode *cib) |
|
pcmk__node_status_t * | pcmk__get_node (unsigned int id, const char *uname, const char *xml_id, uint32_t flags) |
|
◆ pcmk__election_t
◆ pcmk__node_status_t
Node status data (may be a cluster node or a Pacemaker Remote node)
◆ crm_proc_flag
Enumerator |
---|
crm_proc_none | |
crm_proc_cpg | |
Definition at line 31 of file internal.h.
◆ pcmk__node_search_flags
Enumerator |
---|
pcmk__node_search_none | Does not affect search.
|
pcmk__node_search_cluster_member | Search for cluster nodes from membership cache.
|
pcmk__node_search_remote | Search for remote nodes.
|
pcmk__node_search_any | Search for cluster member nodes and remote nodes.
|
pcmk__node_search_cluster_cib | Search for cluster nodes from CIB (as of last cache refresh)
|
Definition at line 58 of file internal.h.
◆ pcmk__node_status_flags
Enumerator |
---|
pcmk__node_status_remote | Node is a Pacemaker Remote node and should not be considered for cluster membership
|
pcmk__node_status_dirty | Node's cache entry is dirty.
|
Definition at line 46 of file internal.h.
◆ pcmk__node_update
Enumerator |
---|
pcmk__node_update_name | Node name updated.
|
pcmk__node_update_state | Node connection state updated.
|
pcmk__node_update_processes | Node process group membership updated.
|
Definition at line 80 of file internal.h.
◆ crm_update_peer_proc()
◆ pcmk__cluster_destroy_node_caches()
void pcmk__cluster_destroy_node_caches |
( |
void | | ) |
|
◆ pcmk__cluster_forget_cluster_node()
void pcmk__cluster_forget_cluster_node |
( |
uint32_t | id, |
|
|
const char * | node_name ) |
◆ pcmk__cluster_forget_remote_node()
void pcmk__cluster_forget_remote_node |
( |
const char * | node_name | ) |
|
◆ pcmk__cluster_get_xml_id()
◆ pcmk__cluster_has_quorum()
bool pcmk__cluster_has_quorum |
( |
void | | ) |
|
◆ pcmk__cluster_init_node_caches()
void pcmk__cluster_init_node_caches |
( |
void | | ) |
|
◆ pcmk__cluster_is_node_active()
◆ pcmk__cluster_local_node_name()
const char * pcmk__cluster_local_node_name |
( |
void | | ) |
|
◆ pcmk__cluster_lookup_remote_node()
◆ pcmk__cluster_node_name()
char * pcmk__cluster_node_name |
( |
uint32_t | nodeid | ) |
|
◆ pcmk__cluster_num_active_nodes()
unsigned int pcmk__cluster_num_active_nodes |
( |
void | | ) |
|
◆ pcmk__cluster_num_remote_nodes()
unsigned int pcmk__cluster_num_remote_nodes |
( |
void | | ) |
|
◆ pcmk__cluster_send_message()
◆ pcmk__cluster_set_autoreap()
void pcmk__cluster_set_autoreap |
( |
bool | enable | ) |
|
◆ pcmk__cluster_set_status_callback()
◆ pcmk__corosync_quorum_connect()
void pcmk__corosync_quorum_connect |
( |
gboolean(* | dispatch )(unsigned long long, gboolean), |
|
|
void(* | destroy )(gpointer) ) |
◆ pcmk__get_node()
pcmk__node_status_t * pcmk__get_node |
( |
unsigned int | id, |
|
|
const char * | uname, |
|
|
const char * | xml_id, |
|
|
uint32_t | flags ) |
◆ pcmk__node_name_from_uuid()
const char * pcmk__node_name_from_uuid |
( |
const char * | uuid | ) |
|
◆ pcmk__purge_node_from_cache()
void pcmk__purge_node_from_cache |
( |
const char * | node_name, |
|
|
uint32_t | node_id ) |
◆ pcmk__reap_unseen_nodes()
void pcmk__reap_unseen_nodes |
( |
uint64_t | ring_id | ) |
|
◆ pcmk__refresh_node_caches_from_cib()
void pcmk__refresh_node_caches_from_cib |
( |
xmlNode * | cib | ) |
|
◆ pcmk__search_node_caches()
pcmk__node_status_t * pcmk__search_node_caches |
( |
unsigned int | id, |
|
|
const char * | uname, |
|
|
const char * | xml_id, |
|
|
uint32_t | flags ) |
◆ pcmk__update_peer_expected()
void pcmk__update_peer_expected |
( |
const char * | source, |
|
|
pcmk__node_status_t * | node, |
|
|
const char * | expected ) |
◆ pcmk__update_peer_state()
Update a node's state and membership information.
- Parameters
-
[in] | source | Caller's function name (for log messages) |
[in,out] | node | Node object to update |
[in] | state | Node's new state |
[in] | membership | Node's new membership ID |
- Returns
- NULL if any node was reaped, value of node otherwise
- Note
- If this function returns NULL, the supplied node object was likely freed and should not be used again. This function should not be called within a cache iteration if reaping is possible, otherwise reaping could invalidate the iterator.
Definition at line 1341 of file membership.c.
◆ pcmk__peer_cache
GHashTable* pcmk__peer_cache |
|
extern |
◆ pcmk__remote_peer_cache
GHashTable* pcmk__remote_peer_cache |
|
extern |