pacemaker
2.1.6-802a72226b
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <stdbool.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/pengine/status.h>
#include <pacemaker-internal.h>
#include "crm/common/util.h"
#include "crm/common/xml_internal.h"
#include "crm/msg_xml.h"
#include "libpacemaker_private.h"
Go to the source code of this file.
Macros | |
#define | EXPAND_CONSTRAINT_IDREF(__set, __rsc, __name) |
#define | INFINITY_HACK (INFINITY * -100) |
Functions | |
void | pcmk__add_this_with (GList **list, const pcmk__colocation_t *colocation) |
void | pcmk__add_this_with_list (GList **list, GList *addition) |
void | pcmk__add_with_this (GList **list, const pcmk__colocation_t *colocation) |
void | pcmk__add_with_this_list (GList **list, GList *addition) |
void | pcmk__new_colocation (const char *id, const char *node_attr, int score, pe_resource_t *dependent, pe_resource_t *primary, const char *dependent_role, const char *primary_role, bool influence, pe_working_set_t *data_set) |
void | pcmk__unpack_colocation (xmlNode *xml_obj, pe_working_set_t *data_set) |
void | pcmk__block_colocation_dependents (pe_action_t *action, pe_working_set_t *data_set) |
enum pcmk__coloc_affects | pcmk__colocation_affects (const pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool preview) |
void | pcmk__apply_coloc_to_weights (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation) |
void | pcmk__apply_coloc_to_priority (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation) |
void | pcmk__add_colocated_node_scores (pe_resource_t *rsc, const char *log_id, GHashTable **nodes, const char *attr, float factor, uint32_t flags) |
void | pcmk__add_dependent_scores (gpointer data, gpointer user_data) |
GList * | pcmk__with_this_colocations (const pe_resource_t *rsc) |
GList * | pcmk__this_with_colocations (const pe_resource_t *rsc) |
#define EXPAND_CONSTRAINT_IDREF | ( | __set, | |
__rsc, | |||
__name | |||
) |
Definition at line 24 of file pcmk_sched_colocation.c.
#define INFINITY_HACK (INFINITY * -100) |
Definition at line 33 of file pcmk_sched_colocation.c.
void pcmk__add_colocated_node_scores | ( | pe_resource_t * | rsc, |
const char * | log_id, | ||
GHashTable ** | nodes, | ||
const char * | attr, | ||
float | factor, | ||
uint32_t | flags | ||
) |
Definition at line 1420 of file pcmk_sched_colocation.c.
void pcmk__add_dependent_scores | ( | gpointer | data, |
gpointer | user_data | ||
) |
Definition at line 1536 of file pcmk_sched_colocation.c.
void pcmk__add_this_with | ( | GList ** | list, |
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 143 of file pcmk_sched_colocation.c.
void pcmk__add_this_with_list | ( | GList ** | list, |
GList * | addition | ||
) |
Definition at line 168 of file pcmk_sched_colocation.c.
void pcmk__add_with_this | ( | GList ** | list, |
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 194 of file pcmk_sched_colocation.c.
void pcmk__add_with_this_list | ( | GList ** | list, |
GList * | addition | ||
) |
Definition at line 219 of file pcmk_sched_colocation.c.
void pcmk__apply_coloc_to_priority | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 1218 of file pcmk_sched_colocation.c.
void pcmk__apply_coloc_to_weights | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 1119 of file pcmk_sched_colocation.c.
void pcmk__block_colocation_dependents | ( | pe_action_t * | action, |
pe_working_set_t * | data_set | ||
) |
Definition at line 914 of file pcmk_sched_colocation.c.
enum pcmk__coloc_affects pcmk__colocation_affects | ( | const pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation, | ||
bool | preview | ||
) |
Definition at line 1009 of file pcmk_sched_colocation.c.
void pcmk__new_colocation | ( | const char * | id, |
const char * | node_attr, | ||
int | score, | ||
pe_resource_t * | dependent, | ||
pe_resource_t * | primary, | ||
const char * | dependent_role, | ||
const char * | primary_role, | ||
bool | influence, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 303 of file pcmk_sched_colocation.c.
GList* pcmk__this_with_colocations | ( | const pe_resource_t * | rsc | ) |
Definition at line 1589 of file pcmk_sched_colocation.c.
void pcmk__unpack_colocation | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 812 of file pcmk_sched_colocation.c.
GList* pcmk__with_this_colocations | ( | const pe_resource_t * | rsc | ) |
Definition at line 1570 of file pcmk_sched_colocation.c.