57 crm_debug(
"Values of node health scores: "
75add_node_health_value(gpointer key, gpointer value, gpointer user_data)
79 int *health = (
int *) user_data;
82 crm_trace(
"Combined '%s' into node health score (now %s)",
100 g_hash_table_foreach(node->
details->
attrs, add_node_health_value,
118 const char *
name = NULL;
119 const char *value = NULL;
132 while (g_hash_table_iter_next(&iter, (gpointer *) &
name,
133 (gpointer *) &value)) {
@ pcmk__health_strategy_only_green
@ pcmk__health_strategy_none
@ pcmk__health_strategy_no_red
#define crm_debug(fmt, args...)
#define crm_trace(fmt, args...)
pcmk_scheduler_t * scheduler
#define PCMK_OPT_NODE_HEALTH_YELLOW
#define PCMK_OPT_NODE_HEALTH_RED
#define PCMK_OPT_NODE_HEALTH_GREEN
#define PCMK_VALUE_YELLOW
int pe__node_health(pcmk_node_t *node)
int pe__sum_node_health_scores(const pcmk_node_t *node, int base_health)
void pe__unpack_node_health_scores(pcmk_scheduler_t *scheduler)
const char * pcmk_readable_score(int score)
Return a displayable static string for a score value.
int char2score(const char *score)
Get the integer value of a score string.
#define PCMK_SCORE_INFINITY
Integer score to use to represent "infinity".
int pcmk__add_scores(int score1, int score2)
Cluster status and scheduling.
bool pcmk__starts_with(const char *str, const char *prefix)
Check whether a string starts with a certain sequence.
struct pe_node_shared_s * details
pcmk_scheduler_t * data_set