pacemaker  2.1.6-802a72226b
Scalable High-Availability cluster resource manager
Macros | Enumerations | Functions
pcmk_sched_instances.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_instances.c:

Go to the source code of this file.

Macros

#define pe__clear_action_summary_flags(flags, action, flag)
 

Enumerations

enum  instance_state {
  instance_starting = (1 << 0), instance_stopping = (1 << 1), instance_restarting = (1 << 2), instance_active = (1 << 3),
  instance_all
}
 

Functions

gint pcmk__cmp_instance_number (gconstpointer a, gconstpointer b)
 
gint pcmk__cmp_instance (gconstpointer a, gconstpointer b)
 
void pcmk__assign_instances (pe_resource_t *collective, GList *instances, int max_total, int max_per_node)
 
void pcmk__create_instance_actions (pe_resource_t *collective, GList *instances)
 
bool pcmk__instance_matches (const pe_resource_t *instance, const pe_node_t *node, enum rsc_role_e role, bool current)
 
pe_resource_tpcmk__find_compatible_instance (const pe_resource_t *match_rsc, const pe_resource_t *rsc, enum rsc_role_e role, bool current)
 
uint32_t pcmk__instance_update_ordered_actions (pe_action_t *first, pe_action_t *then, const pe_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pe_working_set_t *data_set)
 
enum pe_action_flags pcmk__collective_action_flags (pe_action_t *action, const GList *instances, const pe_node_t *node)
 
void pcmk__add_collective_constraints (GList **list, const pe_resource_t *instance, const pe_resource_t *collective, bool with_this)
 

Macro Definition Documentation

◆ pe__clear_action_summary_flags

#define pe__clear_action_summary_flags (   flags,
  action,
  flag 
)
Value:
do { \
flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \
"Action summary", action->rsc->id, \
flags, flag, #flag); \
} while (0)
#define LOG_TRACE
Definition: logging.h:37
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 1523 of file pcmk_sched_instances.c.

Enumeration Type Documentation

◆ instance_state

Enumerator
instance_starting 
instance_stopping 
instance_restarting 
instance_active 
instance_all 

Definition at line 799 of file pcmk_sched_instances.c.

Function Documentation

◆ pcmk__add_collective_constraints()

void pcmk__add_collective_constraints ( GList **  list,
const pe_resource_t instance,
const pe_resource_t collective,
bool  with_this 
)

Definition at line 1614 of file pcmk_sched_instances.c.

◆ pcmk__assign_instances()

void pcmk__assign_instances ( pe_resource_t collective,
GList *  instances,
int  max_total,
int  max_per_node 
)

Definition at line 718 of file pcmk_sched_instances.c.

◆ pcmk__cmp_instance()

gint pcmk__cmp_instance ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 386 of file pcmk_sched_instances.c.

◆ pcmk__cmp_instance_number()

gint pcmk__cmp_instance_number ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 337 of file pcmk_sched_instances.c.

◆ pcmk__collective_action_flags()

enum pe_action_flags pcmk__collective_action_flags ( pe_action_t action,
const GList *  instances,
const pe_node_t node 
)

Definition at line 1540 of file pcmk_sched_instances.c.

◆ pcmk__create_instance_actions()

void pcmk__create_instance_actions ( pe_resource_t collective,
GList *  instances 
)

Definition at line 905 of file pcmk_sched_instances.c.

◆ pcmk__find_compatible_instance()

pe_resource_t* pcmk__find_compatible_instance ( const pe_resource_t match_rsc,
const pe_resource_t rsc,
enum rsc_role_e  role,
bool  current 
)

Definition at line 1100 of file pcmk_sched_instances.c.

◆ pcmk__instance_matches()

bool pcmk__instance_matches ( const pe_resource_t instance,
const pe_node_t node,
enum rsc_role_e  role,
bool  current 
)

Definition at line 1006 of file pcmk_sched_instances.c.

◆ pcmk__instance_update_ordered_actions()

uint32_t pcmk__instance_update_ordered_actions ( pe_action_t first,
pe_action_t then,
const pe_node_t node,
uint32_t  flags,
uint32_t  filter,
uint32_t  type,
pe_working_set_t data_set 
)

Definition at line 1492 of file pcmk_sched_instances.c.