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;
81 crm_trace(
"Combined '%s' into node health score (now %s)",
99 g_hash_table_foreach(node->
details->
attrs, add_node_health_value,
117 const char *
name = NULL;
118 const char *value = NULL;
131 while (g_hash_table_iter_next(&iter, (gpointer *) &
name,
132 (gpointer *) &value)) {
const char * pcmk_readable_score(int score)
Return a displayable static string for a score 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
#define crm_trace(fmt, args...)
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.