pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_sched_colocation.c File Reference
#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"
Include dependency graph for pcmk_sched_colocation.c:

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 (pe_resource_t *rsc, pcmk__colocation_t *colocation)
 
void pcmk__add_with_this (pe_resource_t *rsc, pcmk__colocation_t *colocation)
 
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)
 

Macro Definition Documentation

◆ EXPAND_CONSTRAINT_IDREF

#define EXPAND_CONSTRAINT_IDREF (   __set,
  __rsc,
  __name 
)
Value:
do { \
if (__rsc == NULL) { \
pcmk__config_err("%s: No resource found for %s", __set, __name); \
return; \
} \
} while(0)
GList * resources
Definition: pe_types.h:165
pe_working_set_t * data_set
G_GNUC_INTERNAL pe_resource_t * pcmk__find_constraint_resource(GList *rsc_list, const char *id)

Definition at line 24 of file pcmk_sched_colocation.c.

◆ INFINITY_HACK

#define INFINITY_HACK   (INFINITY * -100)

Definition at line 33 of file pcmk_sched_colocation.c.

Function Documentation

◆ pcmk__add_colocated_node_scores()

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 1411 of file pcmk_sched_colocation.c.

◆ pcmk__add_this_with()

void pcmk__add_this_with ( pe_resource_t rsc,
pcmk__colocation_t colocation 
)

Definition at line 141 of file pcmk_sched_colocation.c.

◆ pcmk__add_with_this()

void pcmk__add_with_this ( pe_resource_t rsc,
pcmk__colocation_t colocation 
)

Definition at line 155 of file pcmk_sched_colocation.c.

◆ pcmk__apply_coloc_to_priority()

void pcmk__apply_coloc_to_priority ( pe_resource_t dependent,
const pe_resource_t primary,
const pcmk__colocation_t colocation 
)

Definition at line 1122 of file pcmk_sched_colocation.c.

◆ pcmk__apply_coloc_to_weights()

void pcmk__apply_coloc_to_weights ( pe_resource_t dependent,
const pe_resource_t primary,
const pcmk__colocation_t colocation 
)

Definition at line 1042 of file pcmk_sched_colocation.c.

◆ pcmk__block_colocation_dependents()

void pcmk__block_colocation_dependents ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 836 of file pcmk_sched_colocation.c.

◆ pcmk__colocation_affects()

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 932 of file pcmk_sched_colocation.c.

◆ pcmk__new_colocation()

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 225 of file pcmk_sched_colocation.c.

◆ pcmk__unpack_colocation()

void pcmk__unpack_colocation ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 734 of file pcmk_sched_colocation.c.