pacemaker  2.1.2-ada5c3b36
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 "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)
 

Functions

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_colocated_starts (pe_action_t *action, pe_working_set_t *data_set)
 
enum pcmk__coloc_affects pcmk__colocation_affects (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, bool preview)
 
void pcmk__apply_coloc_to_weights (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint)
 
void pcmk__apply_coloc_to_priority (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint)
 

Macro Definition Documentation

◆ EXPAND_CONSTRAINT_IDREF

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

Definition at line 21 of file pcmk_sched_colocation.c.

Function Documentation

◆ pcmk__apply_coloc_to_priority()

void pcmk__apply_coloc_to_priority ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint 
)

Definition at line 1021 of file pcmk_sched_colocation.c.

◆ pcmk__apply_coloc_to_weights()

void pcmk__apply_coloc_to_weights ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint 
)

Definition at line 943 of file pcmk_sched_colocation.c.

◆ pcmk__block_colocated_starts()

void pcmk__block_colocated_starts ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 773 of file pcmk_sched_colocation.c.

◆ pcmk__colocation_affects()

enum pcmk__coloc_affects pcmk__colocation_affects ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
bool  preview 
)

Definition at line 834 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 191 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 688 of file pcmk_sched_colocation.c.