25 switch (pe__health_strategy(
data_set)) {
56 crm_debug(
"Values of node health scores: " 74 add_node_health_value(gpointer key, gpointer value, gpointer user_data)
78 int *health = (
int *) user_data;
97 g_hash_table_foreach(node->
details->
attrs, add_node_health_value,
115 const char *
name = NULL;
116 const char *value = NULL;
129 while (g_hash_table_iter_next(&iter, (gpointer *) &
name,
130 (gpointer *) &value)) {
#define PCMK__VALUE_GREEN
int char2score(const char *score)
Get the integer value of a score string.
int pe__node_health(pe_node_t *node)
pe_working_set_t * data_set
Cluster that this node is part of.
#define crm_debug(fmt, args...)
#define PCMK__OPT_NODE_HEALTH_RED
struct pe_node_shared_s * details
pe_working_set_t * data_set
#define PCMK__OPT_NODE_HEALTH_GREEN
int pe__sum_node_health_scores(const pe_node_t *node, int base_health)
Cluster status and scheduling.
#define PCMK__OPT_NODE_HEALTH_YELLOW
void pe__unpack_node_health_scores(pe_working_set_t *data_set)
#define PCMK__VALUE_YELLOW
int pcmk__add_scores(int score1, int score2)
bool pcmk__starts_with(const char *str, const char *prefix)
Check whether a string starts with a certain sequence.